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.

passsing value lists via parameters

Featured Replies

i need to pass multiple parameters to a script. i was doin this via word lists. but the word list would cull operators which i had within the parameters. so the next soultion is to pass via vaule lists this is what i am sending

${Jobs (Timesheet Reference)}::Job Number) & "¶" & Timesheet Project Entry::Task Number

but when a rip the values out of the list on the other side i still have random characters on the end ie 'the square' :

now i assume this is possible or there is other ways to do this. i could do global variables but my coding backgrounds refuses to give in :

so has anyone got any ideas, sure you guys do. the community has been alot of help so far

Brendan

the square probably indicates some character that can't be represented in the font... This must come from somewhere. Are you sure there is nothing on the end of the last field referenced in your parameter?

Well, I do script parameters with a couple of custom functions so they can be sent and worked with as named parameters.

Here are the 3 functions:

---------------------------------------------------

/*

parm (function name)

parm_name (parameter 1)

value (parameter 2)

*/

parm_name & " = "" & value & """

// this builds a named script parameter

---------------------------------------------------

/*

nparm (function name)

parm_name (parameter 1)

value (parameter 2)

*/

"; " & parm_name & " = "" & value & """

// this creates a following script parameter for a parameter list

---------------------------------------------------

/*

GetP (function name)

ParameterName (parameter)

*/

Evaluate(

"Let ( [ " & Get( ScriptParameter ) & " ]; " & ParameterName & " )" )

---------------------------------------------------

To install, paste the chunks of code into the Custom Function dialog, copy and paste the name to the correct place, copy, paste and add the parameters. Once you've created all three, they work like this:

To build a script parameter

parm("myparm";"some text") & nparm("thing";$$variable) & nparm("another";mytable::myfield)

This will make the parameters named myparm, thing and another.

Always start with the parm() function and follow with as many nparm() functions as you need.

To get the parameters for use in a script :

GetP("myparm")

Pretty simple. Hasn't given me any problems.

Don

  • Author

solved it. it seems that

GetValue (Get( ScriptParameter) ; 1 )

GetValue (Get( ScriptParameter) ; 2 )

Works, but before I was using left value which returns the carriage return as well.

LeftValue (Get( ScriptParameter) ; 1 )

LeftValue (Get( ScriptParameter) ; 2 )

thanks for your help, i need to get advanced asap i think :

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.