Skip to Content
avatar image
Former Member

'BACK' and 'EXIT' button getting disabled after Custom code for TMG Event gets triggered.

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.

Capture.PNG (53.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jan 13, 2015 at 06: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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 13, 2015 at 06: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.

    Add comment
    10|10000 characters needed characters exceeded