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) ]
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.