Skip to main content
Question

Dynamic reader parameters

  • September 22, 2015
  • 2 replies
  • 46 views

Forum|alt.badge.img
Hi,

 

 

is it possible to create dynamic parameters for a FME reader? I am writing a FME reader and it would be great if you guys can give my some advice implementing the following idea. The reader parameters include some server information. Once the user enters this information, a connection is established to the server (as background job) and a list of layers (of a CityGML scene/file stored on the server) is given back from the server. This list appears in some way in the reader parameter window and the user can select multiple layers. All this should happened before the parameter window is closed. How can I do that?

 

 

If this is not possible: Can a run a (python) script before the user clicks the parameter button (inside the "Add reader" window)? Then, I could use the script to fetch the layer list from the server (using  hard-coded server information) and provide the layer list as static information once the parameter window appears. Again, how can I do that?

 

 

Thanks for your support

 

ben   
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.

2 replies

fmelizard
Safer
Forum|alt.badge.img+21
  • Safer
  • September 23, 2015
Hi,

 

 

I would create a reader that returns the entire layer list and use a user parameter in a tester to test for the desired layer.

 

Hope this helps. 

Forum|alt.badge.img
  • Author
  • September 24, 2015
Thanks, that is a good idea.

 

 

What is the best way to implement such a reader? I only know the regular pattern overwriting the open, read and readSchema method(). But this reader would not deal with features at all, it would just provide a list (of strings). Can I ignore all feature stuff?