Kbase 15386: Changing browse column appearance using ROW-DISPLAY trigger
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  03/12/1998 |
|
Changing browse column appearance using ROW-DISPLAY trigger
With the Version 8 editable browse, it is now possible to modify the
appearance of a single cell based on the value of the data in the
cell. For example, if you wanted to change the background color of
the cell if the customer's discount is greater than 0, you could
add the following code to the ROW-DISPLAY trigger:
IF customer.discount > 0 THEN
customer.discount:BGCOLOR IN BROWSE {&BROWSE-NAME} = 12.
Note that the ROW-DISPLAY trigger will only fire the first time the
row is brought into the viewport. Once the row has been displayed,
the ROW-DISPLAY trigger logic will not be executed again unless the
row scrolls out of the viewport and then scrolls back in.
This is documented on the Programming Handbook
V8.1 September 1996 page 9-24
V8.2 May 1997 page 9-24
V8.3 EDOC August 1998 Section 9.4.1 Browse-events
Progress Software Technical Support Note # 15386
ebi (3/Dec/98)