Skip to main content
Question

Concatenating Published Parameters

  • September 21, 2017
  • 3 replies
  • 41 views

Hello folks,

Simply, what I am trying to do with my script, is create a service that allows the person running my process on FME Server to add a Plan ID # to the start of a file deliverable name. Example:

Current output file name: Complete_Data_DWG.dwg

Published Parameter "PLAN_ID" value: 24883

Desired output file name: 24883_Complete_Data_DWG.dwg

I have already tried using "$(PLAN_ID)_Complete_Data_DWG.dwg" but it only returns that exact string (with $(PLAN_ID) and not the user set value).

Basically my script works and I am just trying to make it more aesthetically pleasing and to also provide better file management for my clients.

Thank you for your time,

Moe

 

3 replies

Forum|alt.badge.img
  • September 21, 2017

Try using FME_MacroValues:

FME_MacroValues["PLAN_ID"]_Complete_Data_DWG.dwg


erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • September 21, 2017

If the file name is also a published parameter, it might get evaluated before the PLAN_ID parameter.

If you do not need the file name to be published, convert it into a private parameter (right click menu on the parameter) and it will get evaluated after the PLAN_ID and should get the right value.


Forum|alt.badge.img
  • September 21, 2017

Hi @moe

would you mind sharing your workspace? Or maybe, could you please post a screenshot that shows how you concatenate the new file name and where the name is used?


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings