Is it possible to only prompt for a published parameter choice depending on the input of another?
An example would be, only ask for an input parameter if a particular format was chosen.
Owen
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.
Hi Owen - Ahh, now I know it's you now you have added a pic! Hope all is well!
As far as I'm aware it's not possible to create a dynamic dialog box where certain parameters appear and disappear depending on which other paramaters the user selects. It would be a nice feature definately to be able to configure parameter dependency. I think the best you can do right now is make the paramater prompt descriptive enough and also make sure to use the options to define if a parameter is mandatory or not.
It might be possible to do this in the web-interface only?
You would need to ask the user 1 question first (Which Filetype) and then show/hide boxes depending on that choice.
So if you for instance have 2 possible output-types:
Type: SHAPE
Geometry: POINT
and
Type: PostGIS
Username: my
Password: mypassword
You can for the
Type: SHAPE
Geometry: POINT
also send EMPTY strings for the other variables
Username:
Password:
And for the opposite:
Type: PostGIS
Username: my
Password: mypassword
Geometry:
And then as you mention have a Tester within the workspace (or perhaps you do not need this? If you have a dynamic writer and the correct Type and Parameters set then it should automatically choose the correct writer and find the right parameters, and ignore the empty unneeded parameters)
Hm. I was assuming you did not use the "normal FME login" but have created your own webpage using your own code. Then I am sure some AJAX thingy would make