Store Browse Dialog Entries


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

Is it possible to retain previous browse dialog search field entries if a browse is re-opened? For example, user opens the initial browse window, enters some search values, closes the browse window and later re-opens the browse window. Instead of starting with a cleared browse dialog, is it possible to retain the previously entered search values?

Thanks in advance,

Aaron

Russell Scott Brown
Russell Scott Brown
StrataFrame User (278 reputation)StrataFrame User (278 reputation)StrataFrame User (278 reputation)StrataFrame User (278 reputation)StrataFrame User (278 reputation)StrataFrame User (278 reputation)StrataFrame User (278 reputation)StrataFrame User (278 reputation)StrataFrame User (278 reputation)
Group: Forum Members
Posts: 124, Visits: 597
I searched for keyword "save browse settings" and found some good suggestions but not a lot of helpful detail or examples.

Russ Brown (Using C#2010/SQL Server 2008)
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
Yes. You will want to use the InitializeSearchFields event to set the initial search values. That is actually the purpose of this event. It is called before the BrowseDialog is shown allowing you to initialize any search fields. You will set the InitialValue property of a search field:



InitializeSearchFields Event

Me.BrowseDialog1.SearchFields(0).InitialValue = "Smith"




Then you can save off the values in the SearchValueChanged event. The purpose of this event is to give you access directly to the editor control as well as the search field element. You may need to add a test on the type of object (i.e. MaskedTextBox, Date control, etc.). But if you are entering a string value, it will be a MaskedTextBox and you would retrieve the value like this:



SearchValueChanged Event

Dim x As String = e.SourceControl.Text

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
Thanks guys Smile
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