Hi all,
This may be a stupid question…
I want to create a company form with a list of related people on it, clicking a persons name takes you to the detail record of that person. I do this in FileMaker all the time.
Two ways of doing this:
-
If I add the list of people as a tab-panel, with the tabs hidden, I can add a button on the people form showin in the tab panel to go to the detail form for that person. Works fine.
-
If I add the list of people as portal and make the person’s name into a button to do the same, I always end up on the detail record of the first person in the people list :-(.
My “gotoperson” script is defined in the company form. The problem is that when I try to use
company_to_people.person_id
in the script I get the first one, not the company_to_people.person_id of the person I clicked on.
Should I just forget about portals and always use tab panels?
Hi Christian
I always use Tab Panels and have a similar setup to your requirement.
Tab Panel on Company Layout shows list of Contacts/People through a Company_PK_to_People_Company_PK relationship.
Clicking on a line in the People list in the Tab Panel sets People_PK into Global_Curr_People and displays that Persons full details in a ShowForminDialog using relationship Global_Curr_People_to_People_PK.
Probably a more elegant way to do it but works fine for me.
HTH
Graham Greensall
Worxinfo Ltd
Hi Graham,
thanks for the advice, I will stick to using tab-panels.
For your info, I have a generic gotorelatedrecord function in an abstract navigation module which takes a table name and a pk. All my goto’s methods consist of a single line of code calling this funtion.
I planning to use this module for all menus, searches and navigation within all my projects. Later, this will allow me implement my own backtrack by only changing the navigation module
Servoy - You’ve got the power!