After performing a search which results in no records found.
Then I want to re-enter find mode and reload whatever texts were entered in the previous search.
I would like this feature be added.
Thanks!
After performing a search which results in no records found.
Then I want to re-enter find mode and reload whatever texts were entered in the previous search.
I would like this feature be added.
Thanks!
Can do this in 3.0.
can you please give me a quick snippet?
Thanks!
faheemhameed:
can you please give me a quick snippet?Thanks!
What I was looking is to remember what the user entered in find mode.
If search failed I want the system to re-enter what the user entered in the find mode so that the user can modify the previously entered criteria and work on.
Hi Hameed,
You can only achieve this by retrieving the filled in data just before the find and store that in some global array.
Then when you want to redo the find you can fill in all the fields in your find screen with the data stored in that array.
I.e. you have to code this functionality yourself.
I have done it this way before on a project where they wanted to have their searches (the criteria, not the foundset) saved.
Hope this helps.
Thanks for your advice.
Can I do this without naming each and every fields in the layout?
I do want to spend time on naming a lots of fields in a lots of layouts.
How did you do that?
I want it to make it simple that after I have written this global script it works for all layouts.
Thanks!
The easiest (code wise) is to use named field objects where you can grab all named form objects and get/set the data.
Else you have to use the dataprovider names. But probably not all dataproviders are on your form(s).
In that case you need to use an array with the dataprovider names where you get/set the data.
It’s a bit of a work but it’s doable.