Skip to main content
Released

Dynamic Published Parameter choice values (e.g., from OpenOPI calls)

Related products:Transformers
  • March 21, 2024
  • 3 replies
  • 187 views

virtualcitymatt
Celebrity
Forum|alt.badge.img+47

I’m in the process of working on a workspace which interacts a lot with an Open API. The api has endpoints like “HOST/api/projects/list” or “HOST/api/{projectId}/apps/list”.

 

As I have no idea what projects are available so I have to have an end user type in the project(s) they’re interested in as a text input and i can’t use the choice option. It works fine, however, for the user the experience is a little annoying because they have to copy/paste or type in the value which is just not ideal when in theory it could be coded in.


Assuming that a web connection was already defined for the service it would be really nice to be able to have a user Parameter which is able to perform the query and populate the list for users to choose. Even if it needed to be scripted with python or something else that would be ok.

When the end user clicks on the “Select Project(s)” button a query is run to list the projects and render them for the user to choose. 

Taking it a step further another parameter could be built/scripted based on the value of that result. For example another “Select App” could made a query dependant on the Project Value.

It’s probably just a rewrite of other ideas out there but with what feels like Open APIs everywhere now it seems like something which could be worth doing

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.

3 replies

LizAtSafe
Safer
Forum|alt.badge.img+18
  • Safer
  • July 2, 2024
NewOpen

debbiatsafe
Safer
Forum|alt.badge.img+21

Hello all,

I’m pleased to let you know this idea has been implemented as Scripted Selection parameter in FME 2024. You can find a tutorial for implementing this parameter at https://docs.safe.com/fme/html/fpkg-sdk/advanced/scripted-selection/. The documentation for this parameter type can be found at https://docs.safe.com/fme/html/fmetools/fmetools/scripted_selection.html


LizAtSafe
Safer
Forum|alt.badge.img+18
  • Safer
  • July 10, 2024
OpenReleased