Page 1 of 1

Howto call dialog programmatically by name

Posted: Fri Feb 03, 2012 4:07 pm
by Frank

Hi there,

We have to switch in a workflow between calling a service or popup a dialog. Therefore we use custom javascript.

Calling the service is straight forward by calling the service by name:

myservice.execute({});
(no idea what could be entered in the {}...)

To open the dialog, we only see that it is internally called by its wrapper id:

showMobilePageAsPopup('j_8');

How can we call the dialog by its name like

showMobilePageAsPopup('myDialog');

Thx for your help

Kind Regards
Frank


Howto call dialog programmatically by name

Posted: Fri Feb 03, 2012 6:25 pm
by maxkatz

It will be much simpler, we are working on updating/refactoring a lot of the JavaScript. The id is generated right now. Look for a div element that's hidden, it's id will be in 'id_popup' format. Then invoke showMobilePageAsPopup('id'), without the '_popup' part.

I know it should be simpler, and we are going to make ti simpler. You give popup a name, and then just use the name to show it.