A pop-up may also create a new item and have the newly generated unique identifier for that item returned to the parent page. To do this create a page which a ACTION_CONTROL of type SUBMIT_AND_DISMISS must be used. For example;
<ACTION_CONTROL TYPE="SUBMIT_AND_DISMISS" LABEL="Button.Submit"> <CONNECT> <SOURCE NAME="ACTION" PROPERTY="dtls$personID" /> <TARGET NAME="PAGE" PROPERTY="value" /> </CONNECT> <CONNECT> <SOURCE NAME="ACTION" PROPERTY="dtls$personFullName" /> <TARGET NAME="PAGE" PROPERTY="description" /> </CONNECT> </ACTION_CONTROL>
Once the type attribute is set to SUBMIT_AND_DISMISS the rules for the child LINK and CONNECT element is the same as described in the previous section for a DISMISS action control. After the form is successfully submitted the pop-up will be dismissed and the new values returned to the parent page.