Consultor Eletrônico



Kbase 15097: display table in BROWSE and FILL-IN widgets on same FRAME
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
display table in BROWSE and FILL-IN widgets on same FRAME

In the UIB, if you first add db fields to a frame then try to create
a browse that accesses the same table as the fields, you'll discover
that the browse query-builder forces you to consider that table as
an "external" table (as in a JOIN.) The way around this is to:

(1) Create the browse *first*.

(2) Add the database fields.

(3) Create a VALUE-CHANGED trigger for the browse:

ON VALUE-CHANGED OF browse-1 DO:

DISPLAY <tablename> WITH FRAME <framename>.

END.

(4) In the Main Block, immediately after the RUN ENABLE_UI statement
include the following:

APPLY "VALUE-CHANGED" TO browse-1 IN FRAME <framename>.


Step (4) will assure that the first record is displayed in the
fill-ins upon application startup.

Progress Software Technical Support Note # 15097