IncludeInFormSave


Author
Message
Larry Caylor
Larry Caylor
StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)
Group: Awaiting Activation
Posts: 592, Visits: 3.7K

I have three BOs on a SF maintenance form. One of the BOs is used to populate a listview and while it will be modified during the life of the form, it will never need to be saved. The form’s IncludeInFormSaveType property is set to DeterminedByBusinessObject and the BO that should not be saved IncludeInFormSave property is set to False. When I select Save on the form the two BOs that I want saved are but the form doesn’t automatically close. When I attempt to close it I get a “Do you want to save changes message?” The form's AutoShowSaveChangesMessage property = True.

 

Looking at the source code for BaseForm.OnFormClosing I see that it cycles through the BOs on the form and sets SaveNeeded if the BO is dirty. It seems to me that it should also check to see if the BO's IncludeInFormSave = False and if so, don’t mark it as SaveNeeded regardless of whether it is dirty or not.

 

Although I can work around the issue by using the form’s before save event and undoing the changes on the BO that shouldn’t be saved, it seems that the form shouldn’t be marking it as SaveNeeded in the first place.

 

-Larry

 

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search