Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Setting field by Name on different tabs

Featured Replies

  • Newbies

I have what I hope is simple problem. I have an application where data from a single table is displayed on two different tables. This was done to make the form easier to read.

Now, I have a script that runs when the user enters a particular value in a control on the first tab and should up fields on the second tab. So far, the only way I have been able to do this is by using the following combination of script commands:

Go To Field[Project::Project_TestDR]

Set Field By Name [ Project::Project_TestDR; 1 ]

Go To Field[Project::Project_TestDR]

Set Field By Name [ Project::Project_TestGSRF; 1 ]

Unfortunately, this has the side effect of switching the user to back tab in the middle of their own data entry efforts.

So, how do I set a field value (by the name of the field) when the fields are located on a different tab of the same layout?

Why are you using go to field; and why are you using set field by name? Neither are necessary. Just use set field:

Set Field [ Project::Project_TestDR; 1 ] 

Set Field [ Project::Project_TestGSRF; 1 ]

Edited by Guest

  • Author
  • Newbies

Thanks for the fast reply!

I will give the Set Field command a try tomorrow. However, I'm curious to know why the Set Field by Name command didn't work. It seems to me that it should.

I will give the Set Field command a try tomorrow. However, I'm curious to know why the Set Field by Name command didn't work. It seems to me that it should.

Well; definitely not. That is - of course it DOES work; but not the way you think it does.

What is the purpose of the "set field by name" command?

The purpose is "indirection".

You supply a valid, fully qualified field name as text; and a value to place in that field.

You wrote this:

Set Field By Name [ Project::Project_TestDR; 1 ]

What that says is:

Read the value stored in field Project::Project_TestDR

Whatever you find there is the name of the field we are going to set.

Set that field to 1.

Edited by Guest

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.