[Stackoverflow] [Progress OpenEdge ABL] Getting the name of a column in a static browser

Status
Not open for further replies.
A

Adam

Guest
I need to disable 2 buttons whenever the user clicks on an editable cell of a static browser. This needs to happen in 4 columns (there are other non-editable columns). For this I need to get the column name. I tried placing the code in the browser's ROW-ENTRY trigger, and this works well, EXCEPT for the FIRST time I click into an editable cell, when I get a 10068 error (Load attribute in a chained-attribute expression (a:b:c) must be type handle or a user-defined type and valid 9not UNKNOWN). I have tried using a handle instead of the browsers name, but didn't make any difference. After the first time, the code works and I can get the columns' name without any errors.

The code inside the ROW-ENTRY trigger is as per below:

Code:
IF br-people:CURRENT-COLUMN:LABEL = "Name"    OR
   br-people:CURRENT-COLUMN:LABEL = "Surname" OR
   br-people:CURRENT-COLUMN:LABEL = "Age"     OR
   br-people:CURRENT-COLUMN:LABEL = "Gender" THEN DO:
       
        bUp:SENSITIVE = FALSE.
        bDown:SENSITIVE = FALSE.
END.

I'm using OpenEdge 11.4. Any insights will be greatly appreciated.

Continue reading...
 
Status
Not open for further replies.
Top