Create a link to Block in a pop up
Question

Hi all,


I want an icon on my page and when you click on the icon, a webblock should open in a popup.


I searched documentation on popups, but I still have difficulties to implement.


Hope the question is clear.

Thanks!

Erwin

mvp_badge
MVP
Solution

Hi Erwin,

If you are working on Reactive web you can use the Popup widget for this use-case. Introduce the block within the popup widget and on the click of the icon link just toggle the show Boolean value of the popup widget.

Hope this helps you!


Kind regards,

Benjith Sam

mvp_badge
MVP

Hi Erwin, 

Look the example in attachment.

Hope this helps .

Regards.

ExamplePopUp.oml

Hello Ervin,


In addition to Benjith's post, here is the logic flow :

Step1: Create a local var of type Boolean like below-

Step2: Create an action , which will change boolen var's value :

Cheers!


Sanjay

I cannot mark more answers as a solution? But I fixed it. I created 2 actions, 1 to open the popup and 1 to close. In the popup I added a button for the close action.

Probably very stupid but I didn't get the .oml file open... It is a Outsystems file right?


Thanks!

Erwin

mvp_badge
MVP

Erwin van Hal wrote:

I cannot mark more answers as a solution? But I fixed it. I created 2 actions, 1 to open the popup and 1 to close. In the popup I added a button for the close action.

Probably very stupid but I didn't get the .oml file open... It is a Outsystems file right?


Thanks!

Erwin

Hi Erwin,

Exactly, it's an Outsystms file.

The solution in OML is:

Regards.

 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.