Browse Dialog


Author
Message
Ger Cannoll
Ger Cannoll
Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)
Group: StrataFrame Users
Posts: 430, Visits: 507
I've started to use the Browse Dialog and its working fine.

Can the following be done:

1. On the form in which the Browse Button is , I have  a Text Box

2. I want the user to enter Text in here

3. Then Call the Browse Dialog (With the TextBox.Text as a parameter) and get it to do the search, so that the results browse is displayed

(In other words , I want the user to be able to enter the text to be searched on the Calling screen rather than the Browse Screen and get the  Search done right away)

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. First, you can manually launch the browse dialog by calling the "ShowDialog()" on the browse dialog class. Second, you can initialize search values a number of ways. But in this case, I would just use the InitialValue property in the SearchFields collections. So to combine the two and force the search to happen automatically, you would do this:



Me.BrowseDialog1.SearchFields("FieldName").InitialValue = "MySearchValue"

Me.BrowseDialog1.ShowDialog(True)




From what I recall, you were using VB.NET. If not let me know and I can post a C# sample if necessary.

Ger Cannoll
Ger Cannoll
Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)
Group: StrataFrame Users
Posts: 430, Visits: 507
Hi Trent.

That has worked great... I use C# but was able to translate the code.

Many thanks

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
Ah...I will file that in the back of my mind for next time Wink Glad it worked! 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