Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

Hello everyone...

...working on a bunch of things at the same time...

I have a table PERSONS and a table ORGANIZATIONS. The records of both tables are connected via another table called MEMBERSHIPS.

Example: _pk_ID_MEM0004 has the foreign keys _fk_ID_PER0006 und _fk_ID_ORG0003.

The foreign key _fk_ID_PER... from the Memberships table has the same entry as the primary key _pk_ID_PER... from the Persons table.

When you are on a layout based on Persons you can start a script that takes you to a layout based on Memberships where the script creates a new record. The user has two fieds, _fk_ID_PER and _fk_ID_ORG, and with a drop down list in each field he can create the desired combinations.

So, right now there are two blank fields on the layout, with the mentioned value lists attached. However, it would be great if the user (when switching from the Persons layout to the Memberships layout) finds already the Persons ID in _fk_ID_PER from the person record he just came from.

Has anybody a clue what I could put in in such a script to get the desired ID in the _fk_ID_PER field?

(If this here is too difficult to understand I can easily write a little database. Let me know)

Thanks so much,

Mike :)

Posted

Hey there,

after a very long night of playing with variables I found a nice way :

Set Variable [ $_fk_ID_PER; Value:Persons::P_pk_ID_PER ]

Go to Layout [ “Combination_PER_ORG” (Memberships) ]

New Record/Request

Set Field [ Memberships::_fk_ID_PER; $_fk_ID_PER ]

Hope it’ll help in case the question comes up again.

Regards!

Mike

This topic is 5954 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.