August 17, 201015 yr I have a button in a portal row to duplicate the row. If a user clicks the button in the unpopulated row, the script duplicates the record, not the portal row, when it should do nothing. The script is as follows: Perform Script [ “ErrorCaptureOn” ] Perform Script [ “UserAbortOff” ] # Freeze Window # Go to Related Record [ From table: “ord_ORLI__ORDERLI”; Using layout: “PTO__ORDERLI” (PTO__ORDERLI) ] [ Show only related records ] # Duplicate Record/Request # Go to Layout [ original layout ] # Go to Object [ Object Name: "ORD Items" ] How do I test for a existing row/record? Or, is there a better way to duplicate a portal row?
August 17, 201015 yr Try something like: ... If [ not IsEmpty ( PortalTO::Matchfield ) ] Go to Related Record [ ... ] ... End If
Create an account or sign in to comment