Trigger Updateable Embedded Dashboard Functions with a Button

Sure thing.

There’s some code in this post for refreshing a dashboard. Not 100% sure this would work with an embedded dashboard, but it’s a good place to start. You’ll just need to add a button in customization mode to your form, then add an on click event to that button using the event wizard, then copy the refresh code into the event. The DynamicQueryAdapter’s GetList method may be another way (according to a trace when I refresh a dashboard) if this doesn’t work.

Here’s a way to delete records in an updateable dashboard. It involves invoking BPM’s/custom code in your dashboard’s update method. There’s many different ways this could be done. I think the easiest is to call some BPM with code in your button event (probably one on an arbitrary UD table), pass the record’s info you want to delete, then use the BPM widgets to do the rest (less code). Rather than a checkbox like in the post, you could also look at whatever row is currently selected for a different user experience.

As for the new row, I wasn’t able to find a post that outlined that exactly. But after running a trace on clicking the “new” button on an updateable dashboard, you may be able to do it with a DynamicQueryAdapter and its GetNew method.

Definitely not going to be a straightforward solution/customization, but I think these buttons should be possible. Again, those user guides I mentioned previously will help fill in any blanks.