Open Drawer when another row action is activated

  • 1
  • Question
  • Updated 3 years ago
  • Answered
Does anyone know how to open a draw in a row when another row action is triggered.

For example: I have a drawer and a pop up row action. When I click the pop up action button I would like the drawer in that row to open as well.

Thanks!
Photo of Tami Lust

Tami Lust

  • 5,280 Points 5k badge 2x thumb

Posted 3 years ago

  • 1
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Haven't tried it, but how about in one action framework:
  • Set UI Only field drawerOpened to True on Row
  • Open Drawer
  • Open Popup
Then conditionally render another row action for closing the drawer using the drawerOpened field.
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Tammy,

There's not really a good way to do this, unless you want to add an "open drawer" action to the sequence for your popup, and copy+paste the XML for your drawer into the new drawer definition. You'd have to maintain two identical versions of your drawer.

This post may have some help as well: https://community.skuidify.com/skuid/topics/javascript-to-open-drawer-and-or-conditionally-render-ro...
Photo of Tami Lust

Tami Lust

  • 5,280 Points 5k badge 2x thumb
Thanks for the suggestions.

Pat - I am not sure I follow your suggestion. How does the drawer automatically open?
Matt - I took a look at that tutorial and I think that is the best option I've come across.
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Setup the row action as if it was meant for a drawer. Than tack on to the end a action for the popup.

This would be a great scenario for Barry's "Action Runner Component".