Newbies Ben Heneghan Posted October 5, 2008 Newbies Posted October 5, 2008 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?
comment Posted October 5, 2008 Posted October 5, 2008 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.
Newbies Ben Heneghan Posted October 6, 2008 Author Newbies Posted October 6, 2008 Thank you. That was just what I needed.
Woodnote Posted February 1, 2011 Posted February 1, 2011 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...
comment Posted February 1, 2011 Posted February 1, 2011 none of the portals on the second layout display any information I don't understand your description.
Woodnote Posted February 2, 2011 Posted February 2, 2011 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now