0 Replies Latest reply on Apr 10, 2012 6:43 PM by JFWX5

    Create a related record by script

    JFWX5

      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,

       

      John