ComboBox doesn't respect EditingState


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

Aaron Young
Aaron Young
StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)
Group: StrataFrame Users
Posts: 277, Visits: 1.1K
Oops - I spoke too soon. I haven't bound the combobox to a field yet!
Aaron Young
Aaron Young
StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)
Group: StrataFrame Users
Posts: 277, Visits: 1.1K
Sorry, it is still doing it after I have setup the combobox. It looks like the combobox is always enabled regardless of BO.EditingState.
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
The combobox does follow the EditingState.  The only reason it wouldn't is if:

  1. You have the IgnoreReadonlyState property set to True on the ComboBox
  2. Have the ManageReadonlyState property set to False on the BO
  3. Aren't using an SF combobox.

Aaron Young
Aaron Young
StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)
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
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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 BigGrin (and the most basic one)

Do you have the control bound to a BO and binding field?

Aaron Young
Aaron Young
StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)
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? Smile

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 Smile

Aaron Young
Aaron Young
StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 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 (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Hi Aaron.

Try something like this:


Aaron Young
Aaron Young
StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 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.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search