Skip to main content
Question

Dynamic published parameter

  • November 28, 2014
  • 11 replies
  • 92 views

sigtill
Supporter
Forum|alt.badge.img+25
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? 

 

 
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

11 replies

david_r
Celebrity
  • 8391 replies
  • November 28, 2014

sigtill
Supporter
Forum|alt.badge.img+25
  • Author
  • Supporter
  • 956 replies
  • 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
Celebrity
  • 8391 replies
  • 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
Supporter
Forum|alt.badge.img+25
  • Author
  • Supporter
  • 956 replies
  • 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
Celebrity
  • 8391 replies
  • 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
Supporter
Forum|alt.badge.img+25
  • Author
  • Supporter
  • 956 replies
  • November 28, 2014
Hm, thought I had it figured out.... too late on a friday I guess....

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

david_r
Celebrity
  • 8391 replies
  • 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
  • 33 replies
  • November 28, 2014
or simply create the html- file on the fly with the dynamic drop down list?

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

 

 


Forum|alt.badge.img+2
  • 364 replies
  • September 6, 2018
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