Aaron Young
|
|
Group: StrataFrame Users
Posts: 277,
Visits: 1.1K
|
I have a test form with textboxes and a combobox. I notice that the combobox is always enabled regardless of the BO.EditingState. Not a big problem as I know it can be handled in our own code, but I think it would be good if all editable controls respected the BO.EditingState. Thanks.
|
|
|
Aaron Young
|
|
Group: StrataFrame Users
Posts: 277,
Visits: 1.1K
|
Interesting, I am using a SF combobox and have checked your points:- 1. IgnoreManageReadOnlyState = false 2. ManageUIReadOnlyState = true for both the main form BO and the lookup BO However, I can open the dropdown and select an item when the form is not in edit mode.
|
|
|
Trent Taylor
|
|
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
|
Well, then you have something else in the mix...this is a very basic control and basic functionality. I know for a 100% fact that this control follows the editing state of the BO when bound...oh, that would be a 4th point  (and the most basic one) Do you have the control bound to a BO and binding field?
|
|
|
Aaron Young
|
|
Group: StrataFrame Users
Posts: 277,
Visits: 1.1K
|
Binding to a BO field may be the most basic point but guess which dummy didn't do it?  I really didn't know what I was doing and originally bound to the field and ran the form without realising I had to setup the PopulationDataSourceSettings. It threw an error so I removed the binding and setup the PopulationDataSourceSettings. Of course the drop-down worked but it wasn't bound to the BO. Now that I have bound to a field, guess what is working now? 10 points to you and a "fail" for me
|
|
|
Aaron Young
|
|
Group: StrataFrame Users
Posts: 277,
Visits: 1.1K
|
By the way, is there anyway to show two fields when the drop-down is opened but only one field with the drop-down is closed? I tried using the "Drop-Down Display Format String (Combo Only)" option but it didn't appear to do anything. Thanks.
|
|
|
Ivan George Borges
|
|
Group: StrataFrame MVPs
Posts: 1.9K,
Visits: 21K
|
Hi Aaron. Try something like this:
|
|
|
Aaron Young
|
|
Group: StrataFrame Users
Posts: 277,
Visits: 1.1K
|
Hi Ivan, I tried that and it doesn't work for me. All I see is whatever I have in the Display Member Format String box. If I do {1}{0} in Display Member then I see the two columns when the combobox is both open and closed. The Drop-Down Display Format String doesn't appear to do anything for me. Maybe I am missing a property on the combobox to make this work? Thanks anyway.
|
|
|
Greg McGuffey
|
|
Group: Forum Members
Posts: 2K,
Visits: 6.6K
|
I believe the format for the multi-column is:
{0}|{1}
Don't forget that vertical bar!
|
|
|
Trent Taylor
|
|
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
|
You have to set the UseMultiColumns property to True and define the columns in the columns collection. If you are looking at teh property sheet in category mode, it should be the last category of the combo towards at the vert bottom. If you use the category view instead of the alphabetical view, it might help you learn more quickly what the SF properties are and find the SF categories versus the standard properties.
|
|
|
Aaron Young
|
|
Group: StrataFrame Users
Posts: 277,
Visits: 1.1K
|
Thanks everybody for your help. I now have a multi-column combobox
|
|
|
Greg McGuffey
|
|
Group: Forum Members
Posts: 2K,
Visits: 6.6K
|
Cool!
|
|
|
Trent Taylor
|
|
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
|
Glad you got it working!
|
|
|
Aaron Young
|
|
Group: StrataFrame Users
Posts: 277,
Visits: 1.1K
|
The combobox or my brain?
|
|
|
Trent Taylor
|
|
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
|
LOL....the combobox...I think that your brain is functioning very nicely!
|
|
|