Jump to content
Server Maintenance This Week. ×

Conditional Buttontext


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

Recommended Posts

Hi,

I have a button: NEW RECORD

Now if there is already a record, I would like to change the text into: EDIT RECORD

The Problem:

I have two tables: FIRST TABLE, SECOND TABLE

The button is on the layout of the FIRST TABLE and if I klick it goes to layout of SECOND TABLE and will create a related record in the SECOND TABLE.

How could I check if there is already a related record?

(It's a one to one relationship)

THX

by

ChiSao

Edited by Guest
Link to comment
Share on other sites

You should test for this in your script or calculation:

IsEmpty( related::ID )

ID here would be whatever you use for a primary key field, since that would always have a value. If it's empty, that means there is no related record.

Link to comment
Share on other sites

This topic is 5322 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.