StrataFrame Forum

Opening browsedialog with previous search results

http://forum.strataframe.net/Topic31470.aspx

By Marcel Heitlager - 9/25/2012

Is there any way to do that?  I did do a search in the forum on that topic but nothing popped up. 

Thanks,

Marcel
By Ivan George Borges - 9/25/2012

Hi Marcel.

I thought of doing that a while ago and then changed my mind. The idea was to give the user a way to go back to the list of records he had fetched to the form main BO at any time to be able to navigate through them.

I ended up creating a base "List" button to be added to all my form's toolbars, which will list that same content. Since I was more in control of this, I could create features to let the user group, sort, etc., using an Infragistics grid.

I guess you could also use the BrowseDialog BeforeSearching event which will expose the complete search criteria and save it, this way you could populate your search fields with the same criteria once you entered the BrowseDialog again, but that would require another trip to the database to fetch the records all over.
By Edhy Rijo - 9/26/2012

Hi Marcel,

As Ivan, I also had that need a year or two ago, and end up creating my own list but using DevExpress grid:
  • For regular maintenance forms like Customers, Vendors, etc. I have a list on the left side, fill all the records, and allow some filters like Active, Inactive, All, etc.
  • For transactions, I created and donated to the SF community, a Date Range User Control which triggers an event you can use to just show those records using a Stored Procedure or something else.
This approach has been broadly accepted by my users and they are very happy with it.  Before I had all kind of complains as to why they could not go back to the Dialog Browser record list. BigGrin
By Marcel Heitlager - 9/26/2012

Thanks Ivan and Edhy for those suggestions!  I'll look into those approaches.

Marcel
By Ivan George Borges - 9/27/2012

You're welcome Marcel. Wink