Skip to main content
Archived

Dynamic lookup parameter

massimo
rylanatsafe
leo.at.ls
+65
  • massimo
    massimo
  • rkirkham
  • rylanatsafe
    rylanatsafe
  • leo.at.ls
    leo.at.ls
  • cbell_lvs
  • chrisatsafe
    chrisatsafe
  • siennaatsafe
    siennaatsafe
  • fmelizard
    fmelizard
  • danilo_fme
    danilo_fme
  • dustin
    dustin
  • jdh
    jdh
  • warrendev
    warrendev
  • tcrossman
    tcrossman
  • drc43
    drc43
  • dbaldacchino1
    dbaldacchino1
  • sameer
    sameer
  • nic_ran
    nic_ran
  • jelle
    jelle
  • kennyo
    kennyo
  • chriswilson
    chriswilson
  • tb09114
    tb09114
  • antoine
    antoine
  • lazarlubomir
    lazarlubomir
  • olivier
    olivier
  • helmoet
    helmoet
  • koenterralytics
    koenterralytics
  • vki
    vki
  • revesz
    revesz
  • nickison
    nickison
  • layers
  • tinadaly
  • dbaldacchino
  • bert_akkermans
  • edwibberley
    edwibberley
  • sammichalaile
  • andrewbnz
    andrewbnz
  • maryse_bucking
    maryse_bucking
  • cwarren
    cwarren
  • iew
    iew
  • jiranek_hsro
    jiranek_hsro
  • laimonasliskaus
  • veenendaalo
  • andreas_t
  • yongjie
    yongjie
  • zdebi
    zdebi
  • ecthelion
    ecthelion
  • salvaleonrp
    salvaleonrp
  • lau
    lau
  • tva
    tva
  • gavinpark
    gavinpark
  • anari
    anari
  • taojunabc
    taojunabc
  • rowdy
  • rileym
  • geoal
    geoal
  • bjarne
    bjarne
  • vienna
  • afavaccio
    afavaccio
  • john_galt
    john_galt
  • jmiddel
    jmiddel
  • t4
  • gisbradokla_t
  • spatial_k
  • nobodysmonkey1
  • pfranklin
  • smurf
  • jakobhagenauer1
  • pyr
  • DanAtSafe
    DanAtSafe
  • dmitribagh
    dmitribagh

tva
Contributor
  • Contributor

Currently in the user parameters you can setup a choice and import your values from an existing file. This means that all your values are hardcoded in the workflow, if you lookup table changes, the workflow doesn't change with it.

Ideally if you start the workflow, you provide the details for the lookup table (either file or in my case a database) and the values are looked up on the fly and in the second parameter you select your choice.

Maybe this is a bit in line with:

This idea

<strong>This post is closed to further activity.</strong><br /> It may be a question with a best answer, an implemented idea, or just a post needing no comment.<br /> If you have a follow-up or related question, please <a href="https://community.safe.com/topic/new">post a new question or idea</a>.<br /> If there is a genuine update to be made, please contact us and request that the post is reopened.

8 replies

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • March 10, 2017

I would very much like a way to dynamically generate a choice parameter at runtime. Even better than just a file, or database query would be the ability to ingest a webservice (json).


Forum|alt.badge.img
  • October 18, 2017

Im also after a dynamic choice published parameter, so users can select features from a dataset but the dataset can be queried to check what features to offer to the end user in the choice. Once source dataset is selected the choice can be populated on the fly, before that is would ask for source dataset. Or if the choice can just be populated from a database query, it doesnt have to be the source data


It would be great to have a dynamically generated choice parameter which could be connected to scripted Python parameter.

 

 


Forum|alt.badge.img+2

bjarne
Contributor
Forum|alt.badge.img+5
  • Contributor
  • November 1, 2021

Yes, "startup published parameters" would be nice!


Forum|alt.badge.img+1
  • November 30, 2022

I would like to populate a choice list from sql or python or both to generate a valid list of operation numbers from a list. The underlying table for that list is being updated constantly so updating the parameter manually before each run is not an option. Currently, I can use pyodbc to get that list but no idea how to populate a choice list in the GUI from these dynamically generated unique values.


salvaleonrp
Enthusiast
Forum|alt.badge.img+16
  • Enthusiast
  • October 5, 2023

My specific use case follows @jdh​ suggestion, where a user can identify a Utility network feature service and will return a JSON output to populate dynamic user parameters.

 

So the first parameter is to select a utility network name feature service (1 or more) - of string type - pass this service into an http call to query the feature service to return a JSON result of all its Subnetwork features (layer id=500002).

 

image 

From the JSON output, three additional parameters are visible and their choices are populated as the user picks the required, contingent attribute values for Domain, Tier, and Subnetwork name, in that order.

 

Once these required parameters are populated, a group parameter is visible for additional parameters used for the query string parameter of the HTTPCaller for the Export Subnetwork.

 

This workflow will also work for the Trace endpoint and other API endpoints for the Utility network dataset.


chriswilson
Supporter
Forum|alt.badge.img+11
  • Supporter
  • December 14, 2023

Really feel this should be possible, including in the style of a linked transformer where you have a parameter reused between workspaces as we do. Manually importing multiple times or working around in other currently-known ways is a pain point, and the values for one of our parameters will change frequently over the next year or two.


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