Glad to hear you are using the JES web application! That’s a good question!
According to the documentation, if your dataset is loaded to a caslib and is promoted, you can use a rest API call to retrieve the distinct values of a column. The details for this can be found here:
https://developer.sas.com/apis/rest/v3.5/Compute/#get-distinct-values-for-a-column
In your JES HTML Form, you could make the API call and then convert the REST API’s response JSON to a html dropdown using javascript. An example of how to do something very similar to this (using the Viya Reports API to dynamically retrieve a collection of reports) can be found in this article:
https://communities.sas.com/t5/SAS-Communities-Library/Creating-JES-Prompts-and-Output-Using-the-Viya-Reports-API/ta-p/664314
Using these to pieces:
The CAS Management API to dynamically retrieve the columns distinct values
Using the output of the API rest call as the values in a HTML dropdown
You should be able to create the functionality you’re looking for!
And once you have it, you will have the beginnings of what would be a great SAS Communities Article!
Mike
... View more