Hi,
I have recorded a script for "Attachment List" option of General Object Services (GOS) menu in ME54N. The script simply contains two lines:
// The script recorder will ignore event 'MenuAccess' for control object type 'GuiButton'.
session.findById("wnd[0]/titl/shellcont/tbar[0]/dropmenuGOS_TOOLBOX/shell/itemGOS_VIEW_ATTA").select();
when i execute the script, i get following error:
Received "control not found" on batch step: {"post":"action/4/wnd[0]/titl/shellcont/tbar[0]/dropmenuGOS_TOOLBOX/shell/itemGOS_VIEW_ATTA"}
The complete batch was:
[{"post":"action/4/wnd[0]/titl/shellcont/tbar[0]/dropmenuGOS_TOOLBOX/shell/itemGOS_VIEW_ATTA"},{"get":"state/ur/"}]
After a lot of analyses, i have figured out that the script fails because the script recorder is not recording the click of the GOS menu button. Instead, it says that "MenuAccess" event is ignored (as stated in the first line of the script). I have searched a lot in the forums, but i could not find a way to trigger this "MenuAccess" event. if i first click on GOS menu and then execute the script, it does not give any error!
It is also noteworthy that i had a script in Personas 2.0 (in a different server) for the same requirement and it is working like a charm.
System is ECC 6.0 with EHP 7. Personas 3.0 SP02.
Snapshot of the personas script editor is attached.
Looking forward for helpful responses.
Salman