Skip to main content
Open

Update the scripted User Parameter interface to insert "fme.macroValues" instead of "FME_MacroValues"

Related products:FME Form
  • July 30, 2024
  • 1 reply
  • 106 views

raymondbrunner
Contributor
Forum|alt.badge.img+11

As I worked to resolve errors with attempting to reference a User Parameter from within a Python Scripted User Parameter, I discovered the issue was previously mentioned 5 years ago in this thread:
 


When I double-clicked on a user parameter (‘DAYS_PRIOR’) in version 2023.2.1 (build 23774) within the Python Scripted​ Configuration interface, FME Form inserted:  FME_MacroValues['DAYS_PRIOR']

In order to get the scripted parameter to function properly, I ended up changing the call to: fme.macroValues['DAYS_PRIOR']

I also had to explicitly import the fme library. ​​​​​​

1 reply

LizAtSafe
Safer
Forum|alt.badge.img+21
  • Safer
  • November 8, 2024
NewOpen