January 6, 200620 yr I have a a portal showing records from Table 2. The portal is in a layout linked to Table 1. There is a button in the portal which activates a script to create or update a record in Table 3. I have a script which creates a new related record, or only updates some fields if it finds there is already a related record. What I can't work out is how to check when there is no record from Table 2 showing through the portal. In other words, if a user presses the button by mistake when there is no record showing in a particular portal row. I'm sure there is a very obvious function to do this, but I'm dammed if I can find it...
January 6, 200620 yr Testing for the presence of the primary ID is sufficient: If [ not isempty ( Table 2::RecordID ) Go to Related Record [] End If
Create an account or sign in to comment