Kbase P6730: CURRENT-COLUMN property returns a wrong value
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/15/2008 |
|
Status: Verified
FACT(s) (Environment):
Progress 9.x
SYMPTOM(s):
Browse CURRENT-COLUMN property returns the unknown value
CURRENT-COLUMN property returns a wrong value
CURRENT-COLUMN property does not work when is used outside the browse
START-SEARCH trigger returns the right CURRENT-COLUMN value
CAUSE:
When a browse column header is pressed the CURRENT-COLUMN property is set with the column handle. If this property is used inside a browse trigger like START-SEARCH the CURRENT-COLUMN will return the right value but, if the focus is changed to another object, the column header will be unselected and the CURRENT-COLUMN will return the unknown value.
If one or more fields are enabled, the CURRENT-COLUMN property will return the last enabled field that was used, NOT the last selected column.
FIX:
Define a variable and store the CURRENT-COLUMN handle in this variable. The assignment should be done in the START-SEARCH trigger.