popup inside a form or an application page

Can i create a popup inside a form or an application page to display my bdm object ?

I use Bonita BPM Community version 7.2.2.

regards

Yassine

yes, of course you can

regards
Seán

PS: If this reply answers your question, please mark as resolved.

Thank you for your answer.

regards

Yassine

Please could you tell how to do it in the UI Designer ?

regards

Yassine

Ahhh, I was waiting for this.

The way we do pop-ups is as follows:

We have a button on the form that is linked to some JavaScript code.

This java script code can then make a REST call to get the BDM data and using a window.open call open your pop-up, see here for window.open http://www.w3schools.com/jsref/met_win_open.asp

To do rest from JavaScript see here: http://rest.elkstein.org/2008/02/using-rest-in-javascript.html

Regards

Hello Sean,

Just a little question :

  • How do you link the button to a JS file? I mean that in UI Designer, elements have no id… So how can you call for this button in your JS file (I’ve tried getElementsByClassName(), it’s not working)?

Thanks!

Create your own widget.

Add a button in the template than add the script into the script area…you can add external JS as an asset to the widget also to call brought in functionality.

that’s what we did.

regards

Glad to help,
regards