ComboBox doesn't respect EditingState


Author
Message
Aaron Young
Aaron Young
Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)
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.

Replies
Aaron Young
Aaron Young
Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)
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
Ivan George Borges
Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Hi Aaron.

Try something like this:


Aaron Young
Aaron Young
Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)
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
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
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
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
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
Aaron Young
Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)
Group: StrataFrame Users
Posts: 277, Visits: 1.1K
Thanks everybody for your help. I now have a multi-column combobox Smile
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Cool! 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
Glad you got it working! Wink
Aaron Young
Aaron Young
Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)
Group: StrataFrame Users
Posts: 277, Visits: 1.1K
The combobox or my brain? Smile
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
LOL....the combobox...I think that your brain is functioning very nicely! BigGrin
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Aaron Young - 17 Years Ago
Aaron Young - 17 Years Ago
Aaron Young - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Aaron Young - 17 Years Ago
                         Well, then you have something else in the mix...this is a very basic...
Trent L. Taylor - 17 Years Ago
                             Binding to a BO field may be the most basic point but guess which...
Aaron Young - 17 Years Ago
                                 By the way, is there anyway to show two fields when the drop-down is...
Aaron Young - 17 Years Ago
                                     Hi Aaron. Try something like this:
Ivan George Borges - 17 Years Ago
                                         Hi Ivan, I tried that and it doesn't work for me. All I see is...
Aaron Young - 17 Years Ago
                                             I believe the format for the multi-column is:

{0}|{1}
...
Greg McGuffey - 17 Years Ago
                                             You have to set the UseMultiColumns property to True and define the...
Trent L. Taylor - 17 Years Ago
                                                 Thanks everybody for your help. I now have a multi-column combobox :)
Aaron Young - 17 Years Ago
                                                     Cool! :D
Greg McGuffey - 17 Years Ago
                                                         Glad you got it working! ;)
Trent L. Taylor - 17 Years Ago
                                                             The combobox or my brain? :)
Aaron Young - 17 Years Ago
                                                                 LOL....the combobox...I think that your brain is functioning very...
Trent L. Taylor - 17 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search