Skip to Content
Former Member
Jun 23, 2015 at 04:04 PM

How to Save a created BO Instance Without Saving The Main Instance?


Hi everyone,

I have a custom BO, called TimeSheet that holds an EmployeeID and a MonthYear date.

In the UI, I have a "PreviousMonth" button and a "PreviousMonth" BO Action where I create a new instance of the BO with another date. Up until recently, just after the PreviousMonth button was clicked I just saved and closed the window and both instances were in the list when I was back in the OWL. But now, there are cases when I don't want to save the first instance because it is already in the database, but I always want to save the previousMonth instance. If I save and close, it creates a duplicated timesheet and a new one for the previous month. If I just close without saving, the previoiusmonth instance is not created.

I am missing a Save method to force save the previousmonth instance and then close without saving.

How can I do to solve this ?

Best Regards