Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EIP - How do I prime other fields in the browse? 1

Status
Not open for further replies.

rleiman

Programmer
May 3, 2006
258
US
Hi Everyone,

In the EIP manager take excepted embed can you tell me how to prime the fields in the browse?

I tried this but it did not populate any values:

Code:
SalDet:Description = INV:Description
SalDet:Category = INV:Category

SalDet:Description is in the browse and I would like to prime it with INV:Description.

Thanks.
Emad
 
Hi Emad,

Always remember that with EIP you are working with the Browse Queue fields. So, maybe <BrowseQ>.SalDet:Description and <BrowseQ>.SalDet:Category might work. Replace <BrowseQ> with the name of your Browse Queue or <Browse Object>.Q.

Regards
 
Hi ShankarJ,

In the Browse Box Behavior screen I called the browse SalesItemsList under the object name. So I tried this code:

Code:
SalesItemsList.SalDet:Description = INV:Description

But I get a "field not found" error.

I found the queue in the source code. Can you check this to see what I did wrong in the above line of code?

Thanks.
Emad

Code:
! Browse View & Queue for SalesDetails
BRW7::View:Browse    VIEW(SalesDetails)
                       PROJECT(SalDet:sku)
                       PROJECT(SalDet:Description)
                       PROJECT(SalDet:Quantity)
                       PROJECT(SalDet:RegularPrice)
                       PROJECT(SalDet:SellPrice)
                       PROJECT(SalDet:DiscountAmount)
                       PROJECT(SalDet:DiscountPercent)
                       PROJECT(SalDet:LineTotal)
                       PROJECT(SalDet:CustNumber)
                     END
Queue:Browse         QUEUE                            !Queue declaration for browse/combo box using ?SalesItemsList
SalDet:sku             LIKE(SalDet:sku)               !List box control field - type derived from field
SalDet:sku_NormalFG    LONG                           !Normal forground color
SalDet:sku_NormalBG    LONG                           !Normal background color
SalDet:sku_SelectedFG  LONG                           !Selected forground color
SalDet:sku_SelectedBG  LONG                           !Selected background color
SalDet:Description     LIKE(SalDet:Description)       !List box control field - type derived from field
SalDet:Description_NormalFG LONG                      !Normal forground color
SalDet:Description_NormalBG LONG                      !Normal background color
SalDet:Description_SelectedFG LONG                    !Selected forground color
SalDet:Description_SelectedBG LONG                    !Selected background color
SalDet:Quantity        LIKE(SalDet:Quantity)          !List box control field - type derived from field
SalDet:Quantity_NormalFG LONG                         !Normal forground color
SalDet:Quantity_NormalBG LONG                         !Normal background color
SalDet:Quantity_SelectedFG LONG                       !Selected forground color
SalDet:Quantity_SelectedBG LONG                       !Selected background color
SalDet:RegularPrice    LIKE(SalDet:RegularPrice)      !List box control field - type derived from field
SalDet:RegularPrice_NormalFG LONG                     !Normal forground color
SalDet:RegularPrice_NormalBG LONG                     !Normal background color
SalDet:RegularPrice_SelectedFG LONG                   !Selected forground color
SalDet:RegularPrice_SelectedBG LONG                   !Selected background color
SalDet:SellPrice       LIKE(SalDet:SellPrice)         !List box control field - type derived from field
SalDet:SellPrice_NormalFG LONG                        !Normal forground color
SalDet:SellPrice_NormalBG LONG                        !Normal background color
SalDet:SellPrice_SelectedFG LONG                      !Selected forground color
SalDet:SellPrice_SelectedBG LONG                      !Selected background color
SalDet:DiscountAmount  LIKE(SalDet:DiscountAmount)    !List box control field - type derived from field
SalDet:DiscountAmount_NormalFG LONG                   !Normal forground color
SalDet:DiscountAmount_NormalBG LONG                   !Normal background color
SalDet:DiscountAmount_SelectedFG LONG                 !Selected forground color
SalDet:DiscountAmount_SelectedBG LONG                 !Selected background color
SalDet:DiscountPercent LIKE(SalDet:DiscountPercent)   !List box control field - type derived from field
SalDet:DiscountPercent_NormalFG LONG                  !Normal forground color
SalDet:DiscountPercent_NormalBG LONG                  !Normal background color
SalDet:DiscountPercent_SelectedFG LONG                !Selected forground color
SalDet:DiscountPercent_SelectedBG LONG                !Selected background color
SalDet:LineTotal       LIKE(SalDet:LineTotal)         !List box control field - type derived from field
SalDet:LineTotal_NormalFG LONG                        !Normal forground color
SalDet:LineTotal_NormalBG LONG                        !Normal background color
SalDet:LineTotal_SelectedFG LONG                      !Selected forground color
SalDet:LineTotal_SelectedBG LONG                      !Selected background color
SalDet:CustNumber      LIKE(SalDet:CustNumber)        !Browse key field - type derived from field
Mark                   BYTE                           !Entry's marked status
ViewPosition           STRING(1024)                   !Entry's view position
                     END
 
Hi Emad,

Simple. The name of your queue is Queue:Browse and so it should be :

[red]Queue:Browse.[/red]SalDet:Description = INV:Description

or

SalesItemsList.[red]Q.[/red]SalDet:Description = INV:Description
(this might not work except in a BrowseClass embed as Q is a PRIVATE property)

You can change your Queue Name if you want to SalesItemsQueue in the List Box Properties.

Regards

 
Hi ShankarJ,

Queue:Browse.SalDet:Description = INV:Description worked.

Thanks for your help.

Truly,
Emad

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top