rajesh.lch
8th June 2019, 21:49
Hi Team,

While i am trying to Disable one standard form command of type Session(Activate a - Session), using IS ENABLED hook is not working. Whereas same hook is working for Form command of type Function(Activate a - Function).

I have also tried using BEFORE.COMMAND hook with disable.command() it also Not Working.

Please suggest, where exactly i need to place the code to Disable Session type Form command using Extensions

Thanks in advance.

Regards,
Rajesh

rahul ingale
10th June 2019, 12:49
Try command.super()

JaapJD
14th June 2019, 13:32
It depends on how the form command has been defined in standard. If it runs for all selected records, you can not use the Is Enabled. Use the Before Command with the choice.again() function to prevent the session being started.