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

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

Recommended Posts

Posted

Is there a script that will allow you to change or set a field you wish to display in a table layout?

There are 4 variable fields:

sort1

sort2

sort3

sort4

One layout asks you to specify fields for the layout variable thus:

'sort1' could equal first_name if selected

'sort2 could equal last_name if selected

or

'sort1 could equal phone_number selected.

This is basically the same steps as when you are creating the layout and FMP asks you what fields you would like to include.

I would like to streamline the process a little within the database.

Posted

You can use the GetField or Evaluate functions with a field holding the desired field name.

For example,

If gSort1 is a global text field wherein you can enter or select a field name, then a calculation field of Evaluate(gSort1) will return the value of the field whose name appears in gSort1.

Posted

This works perfectly... one modification needed if possible.

Now after I set the row as either first name or last name, the field title is still sort1, or calc 1 and the fields have either first or last name information. Can I also dynamically change the field title to reflect the data in the row?

Posted

No. You can, however, use additional calculation fields to display the correct title and use them in place of the default title texts.

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