Rainy Pass Posted August 17, 2010 Posted August 17, 2010 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?
comment Posted August 17, 2010 Posted August 17, 2010 Try something like: ... If [ not IsEmpty ( PortalTO::Matchfield ) ] Go to Related Record [ ... ] ... End If
Recommended Posts
This topic is 5212 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now