![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
So I have a global field that is set to the current user name. Am I right in saying this can have a different value for each concurrent user? Or will the "global" nature force it to a single value for all users? |
#3
| |||
| |||
|
|
Background: FMP8 client & server on OS X Panther I have a database of customer contacts (10k+ records) Each record has fields for "owner" (ie the member of staff responsible for that contact) and "recontact date" What I want to do is, for each user, have a dynamic list of contacts that are due. I want the list to be sortable in order of name, date or organisation. So I have a global field that is set to the current user name. Am I right in saying this can have a different value for each concurrent user? Or will the "global" nature force it to a single value for all users? Anyway, assume that is OK for the moment. I have a self-join relationship with the global "current user" on the left and "owner" on the right. And I have a layout with a portal that shows the name, organisation and recontact date from the relationship. This works. The problem is that I want to be able to change the sort order of the portal at run time. I want the user to be able to select the sort order to be either name or organisation or date. All ascending or descending. If I try and do a normal sort it has no effect. Because the sort works on all the "normal" records in the layout outside the portal - of which there are none. The sort does not work on the protal records. So it seems to me that the sort order for the portal is hard coded at design time - I know how to set this up in the portal definition. But it can't be changed at run time. Could someone please tell me if I am going about this the right way? I am a little worried that I have a layout with no normal records and just portal - although it shows the records I was exp[ecting, it doesn't feel right. Is there a better way to do this? And is there any way to get the sort behavior I want? Many thanks |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Thank you both. Very helpful suggestions. I thought Howard's particularly cunning. But - it doesn't allow me to reverse the sort order (ascending / descending). Thinking about it a bit more, I'm probably making a rod for may own back using a portal. I don't think it needs to be that complicated, a second window on the same DB with a script to find and sort the records I want, is all I need. I think a portal is an overkill. Unless there is something I have forgotten. But I liked the suggestions and even if I don't use them here they were educational and I'll bear them in mind for other problems. |
![]() |
| Thread Tools | |
| Display Modes | |
| |