Solved

Filemaker pro 11 Scripting Portal

Posted on 2011-02-16
5
467 Views
Last Modified: 2012-05-11
I have a table called 'Project_Details' with two ocurrences ('Project_Details' and 'Project_Details 2') linked by the 'project_Id'. I have a layout called 'Project Details Layout' where the user cand go through the different projects. I have also added a portal that shows all related projects.
What I want to do is when the user moves through a record, it should go to a different projectid.  When I am looking at a project id, which can have multiple of the of the same, I want the portal to show all of the the related project ids. But when I move to the next record on top, I do not want to see the same project id (projectId01), I want to see the next one (projectId02).

Note: I do not have the 'projectId' field set as unique ( I do not want to, because I wil need it this way for something esle). There are multiple projectids with the same value (I want this).

Hopefully this makes sense.
0
Comment
Question by:PachecoPrimo
  • 2
  • 2
5 Comments
 
LVL 4

Expert Comment

by:challengeday
ID: 34912883
Hi PachecoPrimo,

I'm not sure I understand "the user moves through a record",
do you mean moves from one record to the next?

Also don't understand "when I move to the next record on top".

Maybe a screenshot will help clarify.

Thanks!
0
 

Author Comment

by:PachecoPrimo
ID: 34914921
Hello Challengeday,
Basically when the user goes from one record to another that have the same project id, I want the  the 'Go to the next record' button to go to the subsequent number (eg, projectid01 (there might be multiple projectid01, but I want to only see the projectid01s in the portal), then when the user hits 'Go to next record' button, it should go to projectid02 (skipping any projectid01s). I have attached a screen shot hopefully this helps.
sproject.bmp
0
 
LVL 12

Accepted Solution

by:
North2Alaska earned 500 total points
ID: 34916016
You could start with something like the script below.  This is just a beginning.  Something else to think about; is the data sorted?  Is the next record really the next project.  For example, if you have your records in order like Proj1, Proj1, Proj2, Proj1, etc...  You can see you would select Proj1 again if they weren't in order.

Without knowing the full design of your solution, I would consider having a table to list just the project specific details.  Your TOs may be trying to tell you something.  A table for Project and a table for "Activities".  Navigation might be simpler.
Freeze Window
Set Variable [ $ProjID; Value:Project_Details::project_ID ]
Loop
  Go to Record/Request/Page [ Next; Exit after last ]
  Exit Loop If [ Project_Details::project_ID ¿ $ProjID ]
End Loop

Open in new window

0
 
LVL 12

Expert Comment

by:North2Alaska
ID: 34916038
This sight changes the Not Equal to symbol in FM to the upside-down question mark ( ¿ ).
0
 

Author Closing Comment

by:PachecoPrimo
ID: 34922340
Great job.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Filemaker Record Modidified Field 3 949
Conditional Formatting formula in FileMakerPro 10 4 332
GTRR to an External Layout Not Working 14 185
hidden filemaker data 1 165
Problem: You have a hosted FileMaker database and users are tired of having to use Open Remote or Open Recent to access the database. They say, "can't you just give us something to double-click on rather than have to go through those dialogs?" An…
Having just upgraded from Filemaker 11 to Filemaker 12 over the weekend, we thought we would add some tips for others making the same move.  In general, our installation went without incident. Please note that this is not a replacement for Chapter 5…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question