JoeSand

Creating related record with a script

Discussion created by JoeSand on Apr 9, 2017
Latest reply on Apr 9, 2017 by philmodjunk

I have a typical "invoice" type of solution with Invoice record that have related line-item records displayed in a portal.  The user creates line items from within the portal either by simply adding a record to the portal, or with a button within the portal.  I want to be able to add related records from a script that is not activated via a button within the portal, so this portal will not be "active", and there are other portals on the layout.  In earlier version of FM I'd switch to a "line item" layout to create a new record, then switch back to the parent layout, and I always thought this was a clunky way to have to perform this function.  I'd like to think that by FM15 there would be a more direct, elegant way to do this, but I haven't found it.  Is there?

Outcomes