Kbase P93913: Errors when trying to change the FORMAT of a browse column dynamically.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  12/01/2005 |
|
Status: Unverified
FACT(s) (Environment):
OpenEdge 10.0X
Progress 9
SYMPTOM(s):
Trying to change the FORMAT of a browse column dynamically.
Browse widget must be realized before this method is used. (373)
Invalid use of browse method FORM. There are no selected rows. (382)
CAUSE:
Enhancement Request 20040908-004
CAUSE:
Known limitation. For the Browse widget, FORMAT is a valid attribute for cells only, not for columns, although it can be defined for static columns in static browsers.
An Enhancement Request has been logged to introduce a kind of new DEFAULT-FORMAT attribute for browse columns.
FIX:
At the time of writing, there are two options:
1) Refine the format at the cell level in the ROW-DISPLAY trigger:
or
2) Modify the format of the buffer-field linked to the column before creating the column, as illustrated bellow: BUFFER customer:BUFFER-FIELD("name"):FORMAT = "XXXXXXXXXXXXXXXXX".
hBrowse:ADD-COLUMN-LIKE(customer.name).Note that modifying the BUFFER-FIELD:FORMAT after the column has been realized has no effect on the Browse.