12-08-2010 09:26 AM - edited 12-08-2010 09:58 AM
will I know that if you do a ShowViewforRecord that the form get's refreshed upon it's return...like an F5 kind of refresh and your tab goes through an AXFormChange. AutoMagically. So if you do a
Application.BasicFunctions.ShowViewforRecord.....
Grid.Refresh
that you end up refreshing your grid SEVERAL times.
However, I didn't know that
Application.BasicFunctions.DoInvoke "FORM","family:myform"
Posted the Main View data first, then launched the form.
this is for a Data Form. If you DoInvoke a Managed form, then all is well.
Button on the Opportunity Detail view
OnClick event is the DoInvoke.
Make some changes to the ODV, Save Icon is enabled.
Click on the Button, Save icon is disabled (and the SLX Profiler.exe shows the update statement being fired off).
Wonderful.
Interesting that if you launch the data form as a Main View object, then the Form Post does NOT occur.
Of course, many of us run an Application.BasicFunctions.RefreshMainView after firing off the Main View object, and that of course does a Form.Post first prior to refreshing the Detail, Middle, Tab, and Group Panes.