Frank
Posts: 0
Joined: Wed Feb 01, 2012 4:10 pm

Howto call dialog programmatically by name

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Howto call dialog programmatically by name

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.

Return to “Issues”