Hello,
I try to change READ-ONLY status of BROWSE online. I define browse:
then before show browse in frame I set READ-ONLY property for it:
when user press INS button I change status READY-ONLY to FALSE:
After user created new record, I want to save changes and change browse READ-ONLY status to TRUE:
but after this I get this message:
How I can solve this problem? 
I try to change READ-ONLY status of BROWSE online. I define browse:
Code:
[LEFT]DEFINE BROWSE BProperty QUERY QProperty DISPLAY
ttblObjects_prp.PropertyID FORMAT ">>9"
ttblObjects_prp.PropertyName FORMAT "x(25)"
ttblObjects_prp_val.PropertyValue FORMAT "x(8)"
ENABLE ttblObjects_prp_val.PropertyValue [/LEFT]
[SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]WITH [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]SIZE [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]45 [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]BY [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]5 [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]TITLE[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"Object Properties"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]. [/SIZE]
Code:
BProperty:READ-ONLY = TRUE
Code:
[LEFT]vhBProperty:SENSITIVE = FALSE.
BProperty:READ-ONLY IN FRAME FRAME-1 = FALSE.
vhBProperty:SENSITIVE = TRUE.
IF vhBProperty:NUM-SELECTED-ROWS = 0 THEN DO:
APPLY "END" TO vhBProperty.
vhBProperty:SELECT-FOCUSED-ROW().
END.
vhBProperty:INSERT-ROW ("AFTER"). [/LEFT]
Code:
[LEFT]ON "ROW-LEAVE" OF BROWSE BProperty DO:
...[/LEFT]
BProperty:READ-ONLY IN FRAME FRAME-1 = TRUE.
[LEFT]END.[/LEFT]
Code:
You cannot change the READ-ONLY attribute for BROWSE BProperty while that browser has focus. (4517)
