Browse row not highlighting

LBiddiscombe

New Member
Hello,

I have an updateable browse with one enabled column. Only certain rows are updateable, so on the value-changed event I set the column read-only flag based on a db logical field set on the table.

If I use the mouse to click each record in turn everything works perfectly. The updateable fields open for data entry and the read-only fields are locked with the selected row highlighted.

If I cursor up/down through the browse records, the readonly rows do not get highlighted.

I have tried applying a left-mouse-click to the field (and another read-only column) in value-changed without success. I have also tried select-focused-row.

Any suggestions?! Thanks in advance!!!!

I am using v9.1C (Patched to 23). A copy on my browse value-changed event is included...

IF table.updateable THEN DO:
table.datafield:READ-ONLY IN BROWSE {&browse-name} = FALSE.
APPLY "entry" TO table.datafield IN BROWSE {&browse-name}.
END.
ELSE DO:
APPLY "mouse-left-click" TO table.datafield IN BROWSE {&browse-name}.
table.datafield:READ-ONLY IN BROWSE {&browse-name} = TRUE.
END.
 
Top