sam291091
7th October 2015, 14:20
Hi,
I had create one maintain session, in which user can insert data but once it was saved, it is not allowed to modify record. for this i disable modify set command in standard command but still it is allowing me to modify records.

Any solution, why it allowing me to modify record after disable modify set commands in standard commands?

benito
7th October 2015, 23:23
try to use disable.fields after the field is populated.

sam291091
8th October 2015, 06:58
Hi benito,
I know we can do this thru coding but thru standard command disabled why it is not working that is my question.

bhushanchanda
8th October 2015, 09:46
Hi,

Add this to your program script.

#include<bic_4gl2>

function extern boolean modify.set.is.allowed()
{
return(false)
}

sam291091
8th October 2015, 10:02
Hi bhushanchanda,
I already resolve this issue thru script as you posted but what i am asking that i disable modify set standard command at session level but it is not working.

benito
8th October 2015, 16:30
first of all, i haven't done it that way because i automatically go to the script. secondly, i assume that you mean "modify record" in the standard commands. i don't have modify set in my 8.2.1 system. anyway, looks like the commands "modify record" and "display record" works on synchronized sessions only so i guess the way to do this is to have your main list session on display only and if they wish to modify it they double-click to open your sync session, which will open for modification if you enable the modify record.