I’m using the Invoke BO Method widget.
It all executes great!
But the user still has to refresh the Dashboard to see the item go away.
I want to take care of that step.
Is there another widget in the BPM Directives Configuration that I can use in-line after the Invoke BO Method to essentially “Get List” in the BAQ after my DeleteByID is finished?
Or is that something I need to take care of in the Dashboard?
My dashboard is using this Action Buttons to trigger the Delete in the “Run Custom” in the UBAQ, FYI.
Any help to get this to the finish line is appreciated.
Thanks,
Ben
I do this in the dashboard customization. In the custom code, you can call this function to refresh the dashboard just like clicking the refresh button.
private void RefreshPage()
{
MainController.AppControlPanel.HandleToolClick("RefreshTool", new Infragistics.Win.UltraWinToolbars.ToolClickEventArgs(MainController.MainToolManager.Tools["RefreshTool"], null));
}
I have also used this one to refesh all the BAQs on a dash in case ther are more than one.
void RefreshAllBAQs()
{
oTrans.PushStatusText("Refreshing all views. Please be patient...", false);
MainController.AppControlPanel.HandleToolClick("RefreshAllTool", new
Infragistics.Win.UltraWinToolbars.ToolClickEventArgs(MainController.MainToolManager.Tools["RefreshAllTool"], null));
oTrans.PushStatusText("Done!", false);
}
Yes, I think so. You would do that in the dashboard customization. You should be able to find button click events. I use some code like this to trigger my custom action, then I would trigger the refresh after this.
It works, but for every toolclick, not the specific one I am targeting.
Any idea how I can target the one I looking for?
It is from the “Action Buttons” I added.
I see what you are showing by adding an EpiButton and that custom code. I get that. I know you are showing me a solution.
I’m hoping to add to the action I have already trained on.
Now THAT is a good question. I have tried to link into the custom action on the menu, but I didn’t have any luck. I think that is why I went with my own button to execute the custom action, and then execute the refresh. I would love to hear anyone else’s solutions for this! Good luck!
This should show you the name of the tool you clicked on. You can then use that name to set your criteria. When I ran this, my custom action tool in the menu came up as “ViewButton1”. So I would set up something like this:
I am not sure about the timing of this. Not sure if the custom action will run before the refresh code, or after. If the custom action runs after the refresh then you may be stuck with making your own button.