Hi,
I'm writing a flavor for an ECC transaction (REBDPR), that has the transaction code for create/edit/display modes (unlike for example VA01 for create, VA02 for edit & VA03 for display).
I've created a number of script buttons that do various things. But I need to grey out the buttons if screen is loaded in display mode.
I thought I would use a new script button, configured to be triggered upon screen load (using main user area's onCreateHandler property).
But I'm struggling to figure out how to identify if the screen is being loaded in CREATE or CHANGE or DISPLAY mode, using script's IF condition.
There is a button on the screen, that changes it's IconID property from B_CREA to B_CHNG to B_DISP, depending upon mode. But I don't know how to write an IF condition that exploits this IconID property of this control.
I tried with control.IconID & control/IconID with "equals to" condition, but it didn't work.
Has anyone every tried or achieved this with Personas 2.0?
Or is there any other option that I can try?
Any help or guidance much appreciated!