Dashboard updatable

Hello,
if I want to abort changes in the updatable dashboard, how to do it. i tried rejectchanges and it not work. I still receive popup for the save changes.

thanks,

Eddy

If you are in the BAQ designer, once you hit Update, that record gets updated. If you are using a dashboard, once the update method is triggered, the record gets updated. You can’t stop it once that Update method fires off.

but, i did not click update button, i just modify the value in the grid and then the popup displayed.

Are you working in a deployed dashboard or int he BAQ designer?

Did it actually change anything? Just because you got the popup, doesn’t mean that anything changed. Once you make a row dirty (make it think there was a change) it will stay that way whether there was a change or not. The “dirty” row is what makes that “Do you want to save your changes” box pop up.

1 Like

deployed dashboard but the baq is updatable baq

I am with Brandon here. I expect that the change isn’t actually being made. Perhaps a more detailed problem statement, some code examples, and some screenshots could help clear this up.

Hello Nate,
i put edvview.data.table.RejectChanges() before MainController.Close(), it worked it now. the popup for saving is not displayed.

regards,

Eddy

Well, now if someone makes changes and forgets to save, they won’t be reminded.
The work will just be lost.

Keep that it mind.

1 Like

yes, thanks. i know that. i just don’t want user to save it because we have a customized save button.

regards,

Eddy

1 Like

Ok good. The comment is also there to benefit others in the future before they copy and paste code.

i see. thanks.