StrataFrame Forum

Suggestion/Request: EditingState on MaintenanceForm ToolStrip

http://forum.strataframe.net/Topic9290.aspx

By Ben Hayat - 6/4/2007

It'd be helpful for the user to see the EditingState on the toolstrip. You can make a property "Show EditingState" to True or False, and we can check it to show or not.



Secondly, is it possible to have a Sort Drop-Down Button box on toolstrip that sisplays all the fields of the BO that the user can sort by?

Thanks!
By Trent L. Taylor - 6/4/2007

You can make a property "Show EditingState" to True or False, and we can check it to show or not.

You don't have to wait for an enhancement.  You can do this in minutes Wink .  If this will be common you can inherit the MaintenanceFormToolstrip and add this logic to the control and then use your inherited toolstrip. 

In short, just add a label to the end of the toolstrip and in the EditingStateChanged event of the BO you can set the label text to the Editing State:

lblToolstripLabel.Text = MyBO.EditingState.ToString()

Secondly, is it possible to have a Sort Drop-Down Button box on toolstrip that sisplays all the fields of the BO that the user can sort by?

The only issue with this is that the MaintenanceFormToolstrip does not represent a single BO.  The MaintenanceFormToolstrip respects the settings of the IncludeInForm properties on the form and the BOs.  All SF forms have a property called BusinessObjects that is a collection of all of the BOs that are dropped on that form.  The MaintenanceFormToolstrip represents them all according to the IncludeInForm settings.  So the primary problem is that you really do not know which BO represent in the Sort.

By Ben Hayat - 6/4/2007

You don't have to wait for an enhancement. You can do this in minutes [Wink] . If this will be common you can inherit the MaintenanceFormToolstrip and add this logic to the control and then use your inherited toolstrip.



In short, just add a label to the end of the toolstrip and in the EditingStateChanged event of the BO you can set the label text to the Editing State:



lblToolstripLabel.Text = MyBO.EditingState.ToString()


I actually thought about that after posting... Seriously! Wink



The only issue with this is that the MaintenanceFormToolstrip does not represent a single BO. The MaintenanceFormToolstrip respects the settings of the IncludeInForm properties on the form and the BOs. All SF forms have a property called BusinessObjects that is a collection of all of the BOs that are dropped on that form. The MaintenanceFormToolstrip represents them all according to the IncludeInForm settings. So the primary problem is that you really do not know which BO represent in the Sort.


I understand your explanation and and the restriction that exists.



However (with all due respect), I don't like the way the toolstrip gets it's BO.

Can you give us an additional Toolstrip that allows us hookup BO? Man that would solve several of my problems? Come on, I'll buy you a Beer! Smile



Please give it some thought!