Skip to main content
Question

Dynamic published parameter


sigtill
Contributor
Forum|alt.badge.img+24
I have written a script that extracts information from a DB using python. I want this to be a published parameter list. For instance:

 

 

FeatureType: Bus, Car

 

 

And when run after 10 minutes it might be:

 

 

FeatureType: Car, Train

 

 

Depending on how this database looks like.

 

 

Is it possible to use a scripted parameter for this. Or use a startup python script tp generate a published parameter? If I am correct the STartup pythonscript gets executed BEFORE the published parameters? 

 

 

11 replies

david_r
Evangelist
  • November 28, 2014

sigtill
Contributor
Forum|alt.badge.img+24
  • Author
  • Contributor
  • November 28, 2014
Hi! I found alot of articles - but did not find this. Thanks! I did not like the answer though.. :P And it should also work on FME Server....

david_r
Evangelist
  • November 28, 2014
Heisann,

 

 

Yeah, not too fond of either solution either, but unfortunately this isn't supported out of the box and as a consequence the solutions are pretty hacky.

 

 

There is no way of getting dynamic parameter lists to work on FME Server, as far as I know.

 

 

David

sigtill
Contributor
Forum|alt.badge.img+24
  • Author
  • Contributor
  • November 28, 2014
I`m thinking a workaround is to run a workspace every minute on FME Server to generate a *.txtfile with the options. And then just let the user know that the dropdown-list is 1 minute old... Or a pythonscript outside of FME generating a *.txtfile as a resource in FME Server that get read on a workspacestartup

david_r
Evangelist
  • November 28, 2014
Generating the text file is easy. But how're you going to get it into the list of values for the published parameter?

sigtill
Contributor
Forum|alt.badge.img+24
  • Author
  • Contributor
  • November 28, 2014
Hm, thought I had it figured out.... too late on a friday I guess....

sigtill
Contributor
Forum|alt.badge.img+24
  • Author
  • Contributor
  • November 28, 2014
I guess the pythonscript have to edit the *.fmw - file directly. thats interesting....

david_r
Evangelist
  • November 28, 2014
Let me know if you're successful in editing a live .fmw on FME Server! :-)

 

 

bjarne
Contributor
Forum|alt.badge.img+5
  • Contributor
  • November 28, 2014
or simply create the html- file on the fly with the dynamic drop down list?

  • September 6, 2018
Has there been any progress on this in FME 2018?

 

 


Forum|alt.badge.img+2
jimo wrote:
Has there been any progress on this in FME 2018?

 

 

@jimo I'm not aware of this being a feature in FME, this would be best tracked as an idea to show any updates on it. It looks like these are similar: https://knowledge.safe.com/content/idea/27512/dynamic-lookup-parameter.html

 

https://knowledge.safe.com/content/idea/25358/richer-user-parameters-prompt-ui.html

 

so it may be worth adding your specific use cases here

 


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