Great product. It took no time to get fmSearchResults integrated and tweaked. The one detail that would be helpful is an example of how to get the "and xx more results Contacts" to show up in a portal rather than a list view. Since my app uses a side navigation bar I only use forms and portals. My portals have fairly elaborate relationships for user filtering.
Thanks
WB
"and xxx more results Contacts" working with porta
5 posts
• Page 1 of 1
Posts: 35
Joined: Tue Nov 25, 2008 11:49 am |
|
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am |
Hey Will.
The script "Navigate to Result" performs a find to build a found set that matches the search you've run. In this script you'll see a pair of comments: Search is complete, now show list Go to layout After those comments you can hijack the script (may for certain contexts by testing for $table equalling 01 or 02, etc.) and use the found set to populate one of your portal filters, gathering the keys for the found set by using a loop or a recursive Get (NthRecord) custom function. Let me know if you need more. John John Sindelar
SeedCode |
Posts: 35
Joined: Tue Nov 25, 2008 11:49 am |
John,
Still a wee bit in the dark. I understand that I could go to my portal and set the filters to what I searched on, say Name="Bob", but what is confusing is that fmSearchResults does some sophisticated search routines (Bob also pulls up Robert with $$sr Close Name Match =1) so I don't see how I could come up with 88 results in my portal when fmSearchResults shows "and 88 more results Contacts" counting the Roberts. I suppose the trick to that lies in your suggestion "gathering the keys for the found set by using a loop or a recursive get (NthRecord) custom function" but I'm not clear where the keys are. A wee bit more light would help. Thanks, W |
Posts: 35
Joined: Tue Nov 25, 2008 11:49 am |
I figured it out.
Thanks, W |
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am |
Excellent W! Sorry for not replying sooner.
John Sindelar
SeedCode |
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 3 guests