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

script argument as reference

Featured Replies

Hi,

Rigth now when i pass a argument to a script from my understanding, the argument is passed as a value copy. Is there a a way to pass a field as reference? so i could modify the field's content in the script.

somebody told me no so i wanted to check here first, but he suggested i name those fields with the same ObjectName and i could do it like that.

any input or idea about that?

Thanks

I think you are mixing up a few things.

Take a look at Naming Field Objects, Set Variable Script Step, and Global Fields.

Without knowing what it is you are trying to accomplish, we can't get too detailed in our responses.

Why not tell us what you are wanting to have as a result.

Lee

  • Author

I have script wich sets a title on a layout, my problem is that i want to use the same script for many layouts wich are based on many tables.

so lets say i have those 3 fields/layouts/tables

Form::Form_title

Project::Prj_title

Facturation::Fact_title

I want 1 script to be able to modify the content of the title field, by passing the field as arguments to the script.

is it possible?

Your question is confusing because of the way you're using the terminology of FileMaker. You can't pass a "field" but you can pass the contents of a field (represented by the field's name) or the name of a field (represented by the field's name in quotes).

I think you want to pass the contents of one of three fields to your script. You do that by setting the script parameter to the field name, then use the function Get(ScriptParameter) to use that value in the Set Window Title[] script step.

  • Author

Thanks DJ, you answered my question "You can't pass a "field" but you can pass the contents of a field".

sorry if i dont explain my self rigth.

mfrapp

Create an account or sign in to comment

Important Information

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

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.