MaintenanceToolStrip Problem/Question


Author
Message
fansanitis
fansanitis
StrataFrame Novice (63 reputation)StrataFrame Novice (63 reputation)StrataFrame Novice (63 reputation)StrataFrame Novice (63 reputation)StrataFrame Novice (63 reputation)StrataFrame Novice (63 reputation)StrataFrame Novice (63 reputation)StrataFrame Novice (63 reputation)StrataFrame Novice (63 reputation)
Group: Forum Members
Posts: 45, Visits: 103
I've created a form whose purpose is to maintain a number of tables.  I'm using a ThemedLinkMenu for table selection and a PanelManager with a separate page for each table.  On each page I placed a MaintenanceToolStrip control.  For the 1st page it works fine but all subsequent page's toolstrips are also "bound" to the primary business object.  Is there anyway to bind each MaintenaceFormToolStrip to a separate business object?  Or is there a better way to design the app where each "page" would be it's own form and thus have it's own primary business object?  Displaying child forms in the area now occupied by the panelmanager?

Thanks!!

Replies
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
We also do not use the "edit" mode in many cases. There is an event called IsDirtyChanged that is raised when any data within the BO is changed. When this fires, we have a method called SetToolstrip (or something of that nature) that updates the toolstrip buttons accordingly (in this case Save/Undo we become enabled).




Are you saying that the form is just automatically in edit mode? How do you do this? Set the Ignore(BO State...can't remember the property name) to True on the controls? Or do you just automatically turn on editing, then manage it? Sounds intriguing, but I'm confused....Blink
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Whoa there....it isn't that complicated BigGrin  To play with this, create a sample application that talks to the StrataFrameSample database (or something).  Create a BO (CustomersBO) and drop it on the form and set it up as though you would any other BO and bind it to your text boxes, etc.

Set the ManageUIReadOnlyState of the BO to False...this will leave the bound controls in an editable state.  Then add a handler to the IsDirtyChanged event of the BO....when it changes, set your Save/Undo buttons enabled state based off of the CustomersBO.IsDirty property.  It is pretty much that simple Smile

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
So, because the controls are bound to the BO, any changes to them affect the underlying datatable? Which would mean that the editing state is more about the UI than the data? (just trying to learn more about my favorite framework) BigGrin
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
So, because the controls are bound to the BO, any changes to them affect the underlying datatable?

You got it Wink

Which would mean that the editing state is more about the UI than the data?

Now you've got the picture!

(just trying to learn more about my favorite framework)

Ahhh...you're making me blush Blush

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Cool! Thanks!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
fansanitis - 17 Years Ago
Greg McGuffey - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Greg McGuffey - 17 Years Ago
Trent L. Taylor - 17 Years Ago
                         So, because the controls are bound to the BO, any changes to them...
Greg McGuffey - 17 Years Ago
                             [quote] So, because the controls are bound to the BO, any changes to...
Trent L. Taylor - 17 Years Ago
                                 Cool! Thanks!
Greg McGuffey - 17 Years Ago
fansanitis - 17 Years Ago
Greg McGuffey - 17 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search