Nested Modals in Configurable Workspace

CarlJSchmidt
Tera Expert

Hi experts,

 

I was looking into nested modals in the UI Builder, where I want to open a second modal from an existing modal.
Hopefully, the screenshots and description below clarify, what I want to achieve:

Parent Modal: This should be the origin of the child modalParent Modal: This should be the origin of the child modal

The main page contains a parent table, for which I created a declarative action "Open Parent Modal", which is implemented as a UXF Client Action. The DA opens the parent modal which contains a child table. Again, I created a declarative action "Open Child Modal", which is also implemented as a UXF Client Action.

 

Disclaimer: This does not work.


When I set a breakpoint at the correct location in the browser, I can see that the child modal is rendered for a brief instance before the view returns to the parent modal. Also, when the child modal is rendered, the parent modal is not visible anymore. Without setting a breakpoint, you only see a short flash on the screen, but it looks like the child  modal is never being rendered.

Child Modal: Only visible while debuggingChild Modal: Only visible while debugging

So I assume that the DAs are working perfectly fine, but there is some code preventing to have two (or more) modals at the same time.

 

As an alternative, one could probably also use g_modal and implement the DAs as client scripts instead.

 

I'd really appreciate your support with these questions:

  • Is there anything that could be done in the described setup with UXF Client Actions to implement nested modals?
  • What are the differences between the two approaches of using UXF Client Actions or g_modal?
    Are these two approaches equal, or should one of the approaches be preferred?

 

Thank you in advance for your help!

 

0 REPLIES 0