![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, FM8.5 FM Server 8 After the user performs a find, you have a found set. I would like to show the user, in the same layout: - An sorted record by record view with arrows to allow the user to advance to the next record or move to the previous record. - A portal showing the found set, sorted in the same order as the record view. - Clicking a button in the portal would take the user to the selected record, in the record by record view (the layout is the same, the found set is the same, the sort order remains; just the displayed record changes). How can this be achieved? Thanks |
#3
| |||
| |||
|
|
Create a new field. PortalRel, which is normally empty. So the script starts with finding ALLL records and emptying this field After the script has done it's business add a step to set this field to something (it is set to something in the found set only) Create a self-relationship using this field And use this for your portal. It is slow, because you need to do a replace twice. As your solution gets bigger, this will make it slower and slower. But I think it will be perfect to work with using up to about 100.000 records (on my system anyway). Keep well, Ursus "Carlos Pereira" <carlosp- (AT) nnhotmail (DOT) com> schreef in bericht news:951jt2dh8t1omv2qjishocmvubkkmopvp3 (AT) 4ax (DOT) com... Hello, FM8.5 FM Server 8 After the user performs a find, you have a found set. I would like to show the user, in the same layout: - An sorted record by record view with arrows to allow the user to advance to the next record or move to the previous record. - A portal showing the found set, sorted in the same order as the record view. - Clicking a button in the portal would take the user to the selected record, in the record by record view (the layout is the same, the found set is the same, the sort order remains; just the displayed record changes). How can this be achieved? Thanks |
#4
| |||
| |||
|
|
Thanks Ursus, I have tried what you mention, using either a loop Set field > Go to next record, and alternatively using a Replace (slower than Set field). In either case it is just too slow. I have more than 100.000 records, but this is not exactly the problem, because I tried with 20.000 and it is still slow for my needs. It should be instantaneous, no delay for the user at all. Besides, there might be record locking issues while emtying and replacing the field, and I would like to avoid that possibility completely. |
#5
| |||
| |||
|
|
Hello, FM8.5 FM Server 8 After the user performs a find, you have a found set. I would like to show the user, in the same layout: - An sorted record by record view with arrows to allow the user to advance to the next record or move to the previous record. - A portal showing the found set, sorted in the same order as the record view. - Clicking a button in the portal would take the user to the selected record, in the record by record view (the layout is the same, the found set is the same, the sort order remains; just the displayed record changes). How can this be achieved? Thanks |
#6
| |||
| |||
|
|
Hello, FM8.5 FM Server 8 After the user performs a find, you have a found set. I would like to show the user, in the same layout: - An sorted record by record view with arrows to allow the user to advance to the next record or move to the previous record. - A portal showing the found set, sorted in the same order as the record view. - Clicking a button in the portal would take the user to the selected record, in the record by record view (the layout is the same, the found set is the same, the sort order remains; just the displayed record changes). How can this be achieved? Thanks |
#7
| |||||
| |||||
|
|
One way of doing this is to toss the idea of a portal. Set your records to display in table or a minimal list view and put record detail (with navigation arrows, etc) in the header or footer. |
|
A workaround would be to make a new window showing the found set in a more convenient format and align this with the "main" view. |
|
Depends on how many records will likely end up in your found set. I have posted here in the past a custom function that I call GetFoundSet(). This acts more or less like the List() function that was introduced in 8.5, but it works on the found set (in addition to working on related records). |
|
or else you may find something similar at http://www.briandunning.com/filemaker-custom-functions/ Using this function, you could grab all the record IDs pretty quickly from the found set (assuming it is less then, say, a couple hundred records), set them into a global text field, and then show your portal through a relationship from that global field to the record ID field. |
| Carlos Pereira wrote: Hello, FM8.5 FM Server 8 After the user performs a find, you have a found set. I would like to show the user, in the same layout: - An sorted record by record view with arrows to allow the user to advance to the next record or move to the previous record. - A portal showing the found set, sorted in the same order as the record view. - Clicking a button in the portal would take the user to the selected record, in the record by record view (the layout is the same, the found set is the same, the sort order remains; just the displayed record changes). How can this be achieved? Thanks |
#8
| |||
| |||
|
|
On Mon, 19 Feb 2007 09:41:03 -0800, Howard Schlossberg howard (AT) antispahm (DOT) fmprosolutions.com> wrote: Depends on how many records will likely end up in your found set. I have posted here in the past a custom function that I call GetFoundSet(). This acts more or less like the List() function that was introduced in 8.5, but it works on the found set (in addition to working on related records). Do you mean this message: " Help show only found set". If not, please provide me with the link. I have been unable to find your message using GetFoundSet as search word. There is no similar or any other Found Set funtion in Dunning's page. |
#9
| |||
| |||
|
|
My apologies. I have posted my function on some other lists, but I apparently have not done so here. Nonetheless, you will find a similar function here: http://www.briandunning.com/cf/439 Carlos Pereira wrote: On Mon, 19 Feb 2007 09:41:03 -0800, Howard Schlossberg howard (AT) antispahm (DOT) fmprosolutions.com> wrote: Depends on how many records will likely end up in your found set. I have posted here in the past a custom function that I call GetFoundSet(). This acts more or less like the List() function that was introduced in 8.5, but it works on the found set (in addition to working on related records). Do you mean this message: " Help show only found set". If not, please provide me with the link. I have been unable to find your message using GetFoundSet as search word. There is no similar or any other Found Set funtion in Dunning's page. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Howard Schlossberg (818) 883-2846 FM Professional Solutions, Inc. Los Angeles FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance |
#10
| |||
| |||
|
|
I am not sure whether this issue is related to the the process of filling the global with the function or with updating the portal |
![]() |
| Thread Tools | |
| Display Modes | |
| |