Maint Form Undo Button

Author Message
 Posted 1/18/2006 2:35:18 PM
Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: Awaiting Activation
Last Login: 2 days ago @ 6:40:24 AM
Posts: 595, Visits: 3,790

On a SF Maint Form, does clicking the Undo button call the Maint form’s undo method or the primary business object’s undo method? I have a Maint form with two business objects that have a parent-child relationship. Undo is working on the parent but not the child and I believe it’s because the Undo button only calls the parent’s (primary object) undo method. If so I know how to get the behavior I want, I just want to make sure I understand what is going on.

-Larry

Post #454
Add to Twitter Add to Facebook
 Posted 1/19/2006 1:30:53 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: Forum Members
Last Login: 7/21/2008 2:17:34 AM
Posts: 26, Visits: 236
Hi Larry

Take a look at the "IncludeInFormUndoType" property on the form. This can be combined with a counterpart property on the BO called "IncludeInFormUndo". Basically, you can have the "Undo" action applied to the PrimaryBO, AllBOs or determined by BOs that have their IncludeInFormUndo property set true.

This logic can be applied to all other "actions" like Save, Edit, Delete, New, Navigate etc.,

HTH

-=Gary

 

 

Post #455
Add to Twitter Add to Facebook
 Posted 1/19/2006 2:32:13 AM
StrataFrame Developer

StrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame Developer

Group: StrataFrame Developers
Last Login: 5/16/2018 3:20:37 AM
Posts: 2,982, Visits: 2,482
Larry,

Once again, Gary is correct Smile

If your form doesn't have the IncludeInFormType options, you'll have to download the latest version.
Post #456
Add to Twitter Add to Facebook
 Posted 1/19/2006 4:49:43 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: Forum Members
Last Login: 7/21/2008 2:17:34 AM
Posts: 26, Visits: 236
Hey Ben

The "states" enhancement sure is resolving quite a few issues Wink

What a great idea ! Cool

Post #458
Add to Twitter Add to Facebook
 Posted 1/19/2006 8:01:58 AM
Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: Awaiting Activation
Last Login: 2 days ago @ 6:40:24 AM
Posts: 595, Visits: 3,790

Gary,

 

Thanks for the info. I was aware of the BO property “IncludeInFormUndo” but missed its counterpart  ‘IncludeInFormUndoType” at the form level. I gave this combination a try but it didn’t produce the exact result I was looking for. My child object is being displayed in a ListView on the maint form and is being refreshed in the ‘EditingStateChanged” event handler for the form. When I click Undo on the form the old values are not being reflected in the ListView and I’m assuming that is due to the order in which events are raised. “EditingStateChanged” is probably being raised before “Undo” on the child object.  I can get the desired result by calling Undo on the child object in the “BeforeUndo” event handler on the form or refreshing the ListView in the “EditingStateChaged” event handler of child object.

 

StrataFrame provides a lot of options and therefore presents a definite learning curve, but I’m finding the more I work with it the more I like it.

 

-Larry

Post #459
Add to Twitter Add to Facebook
 Posted 1/19/2006 8:59:27 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: Forum Members
Last Login: 7/21/2008 2:17:34 AM
Posts: 26, Visits: 236

Hi Larry,

 

>Thanks for the info.

 

No problem.

 

>I was aware of the BO property “IncludeInFormUndo” but missed its counterpart  ‘IncludeInFormUndoType” at the form level. I gave this combination a try but it didn’t produce the exact result I was looking for.

 

Well, it should allow the Undo to occur on the child BO. As to the list not reflecting the changes, it needs refreshing, as you have established.

 

>or refreshing the ListView in the “EditingStateChaged” event handler of child object.

 

I would have thought that the logical place to refresh the List is in the AfterUndo event handler (for either the BO in question or the form). Refreshing in the "EditingStateChanged" event will mean some kind of conditional testing to ensure that you only refresh the list when you can detect an Undo action has occured. If you use AfterUndo, particularly using a BO specific handler, you can safely Refresh the list and know that you are doing it at exactly the right time/place/right BO.

 

>StrataFrame provides a lot of options and therefore presents a definite learning curve,

 

There is a learning curve with most tools but its fun learning Smile

 

>but I’m finding the more I work with it the more I like it.

 

That's all that matters. I find SF intuitive and very productive.

 

HTH

 

Best

 

-=Gary

Post #460
Add to Twitter Add to Facebook
 Posted 10/11/2011 6:49:07 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 8/16/2016 5:47:40 AM
Posts: 9, Visits: 131
I would like to put a check box on the SF browse dialogue to allow the filter of only records with a true or false in a bit type field.  Can't seem to make it work.

Tags:
Post #30412
Add to Twitter Add to Facebook
 Posted 10/12/2011 3:19:15 AM
Strategic Support Team Member

Strategic Support Team MemberStrategic Support Team MemberStrategic Support Team MemberStrategic Support Team MemberStrategic Support Team MemberStrategic Support Team MemberStrategic Support Team MemberStrategic Support Team MemberStrategic Support Team Member

Group: StrataFrame MVPs
Last Login: 6/15/2019 1:08:46 AM
Posts: 1,920, Visits: 21,109
Hi Michael.

Choose the Combo-Enum tab in the Search Field Criteria dialog and set it to an enum that you will create with your False/True statements.


Edited: 10/12/2011 3:22:14 AM by Ivan George Borges
Post #30423
Add to Twitter Add to Facebook


Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.