Combobox: SuggestAppend and IgnoreManageReadOnlyState


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
Hi,

Not for the first time I am a little confused Smile

I have a combobox with autocomplete settings set to SuggestAppend. However, the "append" part of the functionality doesn't work unless IgnoreManageReadOnlyState is set to true. However, setting this property to true obviously means the combobox is not enabled/disabled based on the BO editingstate. If IgnoreManageReadOnlyState is set to false (the default state and in my case the desired state) then the append functionality stops working.

It would be great if it was possible to have the append functionality without needing IgnoreManageReadOnlyState to true.

Thanks

Aaron

Replies
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
Aaron, though I generally do not use the SuggestAppend, the two should not be related.  The IgnoreReadonlyManageState is used, through binding, to simply enable or disable the field based on the state of the BO.  Now in all of our applications, we never allow the fields to be disabled unless there is a security restrictions (like the StrataFlix sample).  So if this is causing an issue, more than likely there is an order of events that is causing the issue.  I will add this to a list to look at, or you could create a quick sample, but in either case, this sounds to be more related to the combo versus the binding states.  Also, just FYI, this is an inherited feature of the standard .NET combo that has not been enhanced or modified by SF (in regards to the SuggestAppend).
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 default, our forms are in "Idle" state and the controls are disabled to prevent users from accidently changing data. The Edit button is then used to enable the controls for data entry. This is why I like to leave IgnoreReadOnlyManageState to the default of false.

I was struggling as I couldn't get the combobox append functionality to work. After searching through the forums I found this thread:-

http://forum.strataframe.net/Topic18580-7-1.aspx

I downloaded Dustin's AutoCompleteTest.zip and it was only then I noticed he had IgnoreReadOnlyManageState to true. I tried it in my application and the append functionality suddenly starting working. When I set it to false append stops working.

On paper it looks like IgnoreReadOnlyManageState should have nothing to do with SuggestAppend but something in this setting is causing it to work.

The "suggest" part of the feature always works. It is the "append" part that is affected. Maybe the "append" feature is turned off when the control is disabled and it is not turned on again when the control is enabled?

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
Trent, attached is a sample project linked to your sample database.

The form is a standard maintenance form with a products dropdown from the order item table. The products dropdown has SuggestAppend as autocomplete.

If you run the form without modification, IgnoreManageReadOnlyState is false. Click the Edit button and then type HL into the products combination box. Note that the "append" functionality doesn't work. Now close the form and change the combobox's IgnoreManageReadOnlyState to true. Run again and repeat the process. This time the append functionality works.

I suspect the append functionality is turned off when the control is initially disabled and is not turned back on again when the control is enabled?

Hope this helps.

Attachments
WindowsApplication1.zip (118 views, 740.00 KB)
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
Just giving this a bump just in case my double posting side by side may have caused the sample application posting to be missed.

Aaron

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