Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6898 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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...

Posted

Testing for the presence of the primary ID is sufficient:

If [ not isempty ( Table 2::RecordID )

Go to Related Record []

End If

This topic is 6898 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.