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

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

Recommended Posts

  • Newbies
Posted

I have a "People" table and a related "Status Log Entries" table. On the People table is a button to create a Log Entry record for that person. How do I script it to get the Person's ID# into the Log Entry record without using copy/paste?

Posted

Use a script parameter or a variable. For example:

Go to Layout [ Log Entries ]

New Record

Set Field [ Log Entries::PersonID ; Get (ScriptParameter ]

...

The button needs to be defined to pass People::PersonID as the parameter.

  • 2 years later...
Posted

Use a script parameter or a variable. For example:

Go to Layout [ Log Entries ]

New Record

Set Field [ Log Entries::PersonID ; Get (ScriptParameter ]

...

The button needs to be defined to pass People::PersonID as the parameter.

this works for me except that it appears that all the indexes aren't updated correctly—that is to say none of the portals on the second layout display any information unless I save a compacted copy, then open that copy. Then the portals display just fine....any thoughts?

I've also noticed that if I create the records in the second table via a portal, everything is fine too...

Posted

I don't understand your description.

sorry...no worries though.... I was able to fix it by adding a "refresh window" script step that also cleared cached join info.

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