Jump to content

This topic is 4514 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have one layout that has student information. The unique field is StudentID. I have another layout that has different information with the StudentID being the unique key. In the database relationship the studentid keys from both layouts is matched.

Now I made a button so when I am on a certain kid and want to find out some information from another layout I click that button to go to the that layout. But I cannot seem to script where the layout will open to that student's record by ID number. I can get the layout to open but it will just give me that last student that the layout was open in.

How do I script to go to that related ID? If I use related record it does not work.

Posted

Go to Related Records script step with showing matching records only.

Posted

Ok, I did as you suggested so obviously I have other problems because I cannot get it to work. I am attaching the file. When you click on attendance letter button it will go to the attendance letter layout. But it will not go to the related record that I show on there, the student ID it needs to go to in the example is 111111. But it defaults to what is in there already from last view. So now I am wondering if there is a relationship problem.

StudentSchedule_FmExample.zip

Posted

Your structure seems off. What are you trying to do here? Currently you do not have any records in the enrollment table that matches your student table based on the Student_fk_import. That will stop the relationship passing through to the letter table.

Furthermore, if this is multiple letters for each student, then the relationship should be from the student to the letter table. Or if its a letter for each enrollment records then you may be able to just send the letter based on that table.

Posted

There are no related records.

You are pointing from Students to Enrollment to Letters. That would work if there were Enrollment records. But in your file, there NO enrollment records.

Probably Letters should relate directly to Students?

Second problem. Your script goes to the Letters layout; THEN tries to go to related records. Drop the first step (go to layout)

This topic is 4514 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.