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.

set field and insert calculated result functions in scripts failing

Featured Replies

this is pretty disasterous.

I had a db that was related like this:

table Client Job job data

key Client name Job Number job number

contains: client name

this worked fine. all scripts were fine...untill i was told that the job needed to be automatically created (even though they insisted they wanted to manually input it when i asked pre-start)

so now:

client gets an auto no on create (client no). a job when created gets its own auto created suffix (job suffix). these 2 hyphonated (concatenated) give me a job number. however to keep the relationships strong client no and job suffix are the keys throughout and define a job and job data.

job - job data is 1-1 and unique.

client - job is 1-many.

so the relationships seem fine if i input the data into 'job data' myself (jus the client no + suffix) then everything else pops up through calculated results.

but:

since i did this i can no longer use SetField or Insert calculated result.

i can copy and paste 1 item but thats not practical when i need both fields copied across to create a new 'job data' record.

please help.

Many thanks

  • Author

after a little playing about i think its becuase the fields are key fields.

so what function do people use to create a new record and move the key field over? or is there something else?

If no related child records exist all you have to do is set a field in the related table and that will create the new record and move the key in automatically.

If other related child records already exist then script the creation of a new child record and move the key across with a script parameter or a global if the tables are in the same file

HTH

Phil

Please do [color:red] Not double post in the Forum.

I have deleted your other Thread with the same subject name.

Lee

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.