AnsweredAssumed Answered

Create a related record by script

Question asked by JFWX5 on Apr 10, 2012
Latest reply on Apr 11, 2012 by Oliver_Reid

Hi All


I'm trying to create a related record by the following script.


I have setup a unique ID as the Parent:PrimaryKey in the main db



Go to Layout [OriginalParentLayout (ParentTable)]

Set Variable [$Scan; Parent::PrimaryKey]

Go to Layout [AnyChildLayout (ChildTable) ]

New Record/Request

Set Field [ChildTable::Foreignkey; $Scan]





When it comes to setting the value in the "Set Variable" dialog what should I be entering?


Also, if there is a better way to accomplish this other than a portal, I would appreciate the help.



Thank you,