Workflow Soluiton

 View Only
  • 1.  Refresh Grid on button Click

    Posted Jul 28, 2015 04:39 PM

    I have a workflow that I'm building that has two grids, one that lists all the software that is available and one for the software that the user adds.  I have two embedded action buttons that control the adding and removal functionality.  Everything works except for the refreshing of the two grids.  I know that I can use the Post Back checkbox on the two grids but the only dilemma with this is that it constantly refreshes the grid when your selecting an item.  Is there a way to have the grids update/refresh after the workflow in the embedded action button runs?  Using Workflow 7.6.



  • 2.  RE: Refresh Grid on button Click

    Posted Jul 28, 2015 05:07 PM

    There may be a better option out there, but in the past what i've done to get around that issue is to use a subdialog button instead.  just move all your embedded components into the subdialog, give it the same image/button/text or whatever and it'll look just like your embedded button.  the only caveat is that the virtual window flashes up, but the required "terminate and close" component will refresh the page for you when the virtual window closes after a second.  usually i put something in the virtual window popup like "adding to cart" or something similar.

    of course, this is assuming you don't want to use the ListSelect component, which can be used to easily exit and return to the form with only a short flash to give it away.  

    Hopefully this helps, and if it doesn't, hopefully someone else will have something that does!



  • 3.  RE: Refresh Grid on button Click
    Best Answer

    Posted Jul 29, 2015 04:32 PM

    Thanks once again.  I was hoping there was some sort of javascript method that I could have used to achieve this.  The dilemma with the subdialog component was that I could never get the data from the grid to pass through to the workflow inside the subdialog component.  What I ended up doing is using a normal button component and putting my add/remove routines outside the form.  Worked wonderfully and I don't know why I didn't think of that before.

    Thanks once again for your help.



  • 4.  RE: Refresh Grid on button Click

    Posted Jul 29, 2015 10:23 PM

    If you ever try to keep it in-form again, ensure you've declared your variables prior to the form component, and then ensure the SubDialog component is set to post form on open, as well as close.  The "terminate and close window" component inside the subdialog is where you set the exit refresh.

    Glad you got it sorted out.