ConnectionsAfter creating an object, you may need to connect it to another object. For example, when an RFQ is created, you usually want to connect it to an RFQ Template object using the RFQ Template relationship. To configure an object to be connected to another object:
The create page first creates the object, then passes the necessary information to the JPO defined by the Update Program or Update Function setting where the connection is made. Both actions are done in a single transaction. See Create Form Code Samples for sample code to connect the newly-created object to an existing object. As an alternative, you can pass the objectId, relationship, and direction URL parameters to emxCreate.jsp and the connection will be made as part of the creation transaction. This case requires that you know the objectId of the object to which the newly-created object will be connected. The connection is only made if validation passes. The create component checks whether or not the relationship and objectID parameters were passed in. If so, the create component makes the required relationship connection. |