Close form and ask for save


Author
Message
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.3K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Are you expecting the BO on the menu form to be dirty? Did you manipulate it or the CurrentDataTable? If so, you could just either save it or undo the changes, to save or loose those changes, programmatically. Do this in the FormClosing event (I pretty sure Ermm ).



Or you could just set the AutoAskSaveChanges property on the form to not prompt to save the changes. I'm guessing that it would either just always save or always undo or that you can set what it does if you don't ask to save changes.
Fabian R Silva, -
Fabian R Silva, -
StrataFrame User (267 reputation)StrataFrame User (267 reputation)StrataFrame User (267 reputation)StrataFrame User (267 reputation)StrataFrame User (267 reputation)StrataFrame User (267 reputation)StrataFrame User (267 reputation)StrataFrame User (267 reputation)StrataFrame User (267 reputation)
Group: StrataFrame Users
Posts: 153, Visits: 1.2K
Greg McGuffey (09/04/2007)
Are you expecting the BO on the menu form to be dirty? Did you manipulate it or the CurrentDataTable? If so, you could just either save it or undo the changes, to save or loose those changes, programmatically. Do this in the FormClosing event (I pretty sure Ermm ).



Or you could just set the AutoAskSaveChanges property on the form to not prompt to save the changes. I'm guessing that it would either just always save or always undo or that you can set what it does if you don't ask to save changes.




You're right, I not see before that I edit the currentDataTable and add a new column next to the fill method on the business object Blush



Question:

I can´t find the AutoAskSaveChanges property on the form, not in designer, not via "me.AutoAskSaveChanges = false", where I can find this?



Thanks for you reply



- Fabian
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
where I can find this?

This is a property on the form.  If you created a standard .NET form and are not using the SF Standard form or inheriting from the SF BaseForm, you will not have this property....and you will have some other problems down the road as it relates to "normal" functionality.  If you select the form in the designer and go to the property sheet, you should see this property.


Fabian R Silva, -
Fabian R Silva, -
StrataFrame User (267 reputation)StrataFrame User (267 reputation)StrataFrame User (267 reputation)StrataFrame User (267 reputation)StrataFrame User (267 reputation)StrataFrame User (267 reputation)StrataFrame User (267 reputation)StrataFrame User (267 reputation)StrataFrame User (267 reputation)
Group: StrataFrame Users
Posts: 153, Visits: 1.2K
Trent L. Taylor (09/05/2007)
where I can find this?





This is a property on the form. If you created a standard .NET form and are not using the SF Standard form or inheriting from the SF BaseForm, you will not have this property....and you will have some other problems down the road as it relates to "normal" functionality. If you select the form in the designer and go to the property sheet, you should see this property.







Sorry I not thinked that AutoAskSaveChanges = AutoShowSaveChangesMessage, I utilized AutoShowSaveChangesMessage on my tests but I supposed that AutoAskSaveChanges have another purpose or something else w00t woops



again I have to say thanks for your great response and sorry for my mistake Smile



- Fabian



StrataFrame Team
S
StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
No problem.  All of the automation on the form can be both customized to show a different message or turned off completely.  You just have to fish around until you find the property that does what you want it to.  Sometimes the descriptions of the properties help, too (if you can see the description at the bottom of the property sheet, sometimes it's hidden).
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