Browsedialog and SearchFields


Author
Message
fansanitis
fansanitis
StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)
Group: Forum Members
Posts: 45, Visits: 103
I have BrowseDialog that allows the user to alter which search fields they want displayed and in what order by leaving the AllowSearchFieldsButton value set to True.  This works fine but is there anyway to save the settings and pass them into the browse the next time the user calls it?  As it stands now, the user has to alter the search field setting
fansanitis
fansanitis
StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)
Group: Forum Members
Posts: 45, Visits: 103
This is the continuation of the previous post.  I hit the wrong key...oops. 

Each time the user initiates a browse they have to alter the search fields if they don't want the default setup.  Is there anyway to save the settings and pass them into the browse?

Thanks!!

StrataFrame Team
S
StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
There is a registry key property on the BrowseDialog that allows the settings to be saved to the registry... however, this is done on a per-computer basis, not a per-user basis.  If you want to save off the settings into the database on a per-user basis, then you can inherit the BrowseDialog and override the RetrieveUserSettings method.  The method returns a BrowseDialogUserSettings object that defines the size of the browse dialog as well as the search fields in the browse dialog.  You'll also want to override the SaveUserSettings method to save the data back to the database.  By default, those methods read and write all of the data to the registry if the registry key property is set.
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