01-12-2015 6:23 AM
Hello Fellow SCNers ,
I have coded a TMG Event code for Event 05 ( Create New Entries ) in a Maintenance View , it is getting triggered while saving .
I have coded an ERROR message inside it .
But the Issue is that as soon as the error message gets triggered its disabling Standard Buttons of 'BACK' and 'EXIT'.
Can any workaround be suggested to make them enable.
Thanks ,
Sijin.
01-13-2015 6:53 AM
Hi Sijin,
TMG is a Module Pool program, so if error message is triggering for any of the fields, it should be based on the Field. if not then all screen will be disable.
Use .
Field FIELD_NAME Moduel MOD_VALIDATION.
or can use,
CHAIN.
END CHAIN.
to validate Multiple Fields.
Reagrds.
Praveer.
01-13-2015 6:46 AM
You cannot raise Error message in that event.
You should prevent the saving using the below code :
"Prevent saving
MESSAGE 'Cant save' TYPE 'S' DISPLAY LIKE 'E'.
vim_abort_saving = 'X'
EXIT.
01-13-2015 6:53 AM
Hi Sijin,
TMG is a Module Pool program, so if error message is triggering for any of the fields, it should be based on the Field. if not then all screen will be disable.
Use .
Field FIELD_NAME Moduel MOD_VALIDATION.
or can use,
CHAIN.
END CHAIN.
to validate Multiple Fields.
Reagrds.
Praveer.
01-13-2015 7:01 AM
I would try both of these solutions.
But I would like to stick with Adithya's suggestion.
Reason being I don't want to mess up the Generated Standard Module Pool code.
Thanks both of you for valuable suggestions.
01-21-2015 6:04 AM