litrax
15th October 2009, 09:53
I have a problem with disable.commands().
In a program script i use the following code (excerpt):
field.cprj:
before.display:
enable.modify()
if not check_input.vamb() then
disable.modify()
endif
functions:
function enable.modify()
{
enable.fields( "formfield1")
enable.fields( "formfield2")
enable.fields( "formfield3")
enable.commands( "somefunction1",
"somefunction2",
ADD.SET,
UPDATE.DB,
DUPL.OCCUR,
RECOVER.SET,
MARK.DELETE,
MODIFY.SET,
GLOBAL.DELETE,
GLOBAL.COPY
)
}
function disable.modify()
{
disable.fields( "formfield1")
disable.fields( "formfield2")
disable.fields( "formfield3")
disable.commands( "somefunction1",
"somefunction2",
ADD.SET,
UPDATE.DB,
DUPL.OCCUR,
RECOVER.SET,
MARK.DELETE,
MODIFY.SET,
GLOBAL.DELETE,
GLOBAL.COPY
)
}
Some explanation:
cprj is the first view field
in some cases ( if not check_input.vamb() ) I want to make it a "display session" for that record/set.
Now the error:
All commands in the given list are disabled correctly EXCEPT mark.delete and dupl.occur!?
What is wrong? :o Is it a spelling error?
Where can I look up what ID is mapped to MARK.DELETE, ADD.SET and so on?
I looked in the session ttadv4571m000 and copied the commands from there.
Has anyone an explanation for that "misbehavior" of ERPLN? :confused:
Can anyone help me to disallow all modifying (disable commands mentioned above) in a session, in case of a certain circumstance.
So many questions. I hope some of them can be answered.
In a program script i use the following code (excerpt):
field.cprj:
before.display:
enable.modify()
if not check_input.vamb() then
disable.modify()
endif
functions:
function enable.modify()
{
enable.fields( "formfield1")
enable.fields( "formfield2")
enable.fields( "formfield3")
enable.commands( "somefunction1",
"somefunction2",
ADD.SET,
UPDATE.DB,
DUPL.OCCUR,
RECOVER.SET,
MARK.DELETE,
MODIFY.SET,
GLOBAL.DELETE,
GLOBAL.COPY
)
}
function disable.modify()
{
disable.fields( "formfield1")
disable.fields( "formfield2")
disable.fields( "formfield3")
disable.commands( "somefunction1",
"somefunction2",
ADD.SET,
UPDATE.DB,
DUPL.OCCUR,
RECOVER.SET,
MARK.DELETE,
MODIFY.SET,
GLOBAL.DELETE,
GLOBAL.COPY
)
}
Some explanation:
cprj is the first view field
in some cases ( if not check_input.vamb() ) I want to make it a "display session" for that record/set.
Now the error:
All commands in the given list are disabled correctly EXCEPT mark.delete and dupl.occur!?
What is wrong? :o Is it a spelling error?
Where can I look up what ID is mapped to MARK.DELETE, ADD.SET and so on?
I looked in the session ttadv4571m000 and copied the commands from there.
Has anyone an explanation for that "misbehavior" of ERPLN? :confused:
Can anyone help me to disallow all modifying (disable commands mentioned above) in a session, in case of a certain circumstance.
So many questions. I hope some of them can be answered.