BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
SASAlex101
Obsidian | Level 7

I have a webpage using SAS web services that were building to call stored processes from. The stored processes take in parameters for the reports they generate. As of now, we're hard coding the list of values into Box1 combobox within the webpage itself. However, what I would like is to have the comboboxes populate with the values of a SAS table say... xNames.sas7bdat on the SAS server. This way we can control the values of the combobox directly from SAS or automate the refresh of values daily.. 

 

We're using nodejs and the react framework and our page is going to be hosed on a TomCat Server. Wondering if any has been any info on this topic of populating comboboxes with SAS column values. 

 

Thx; 

1 ACCEPTED SOLUTION

Accepted Solutions
AllanBowe
Barite | Level 11

You just need to send those data values back to the _webout fileref in JSON format.  This macro can help: https://core.sasjs.io/mm__webout_8sas.html

 

Here is a seed app in react that does exactly as you describe:  https://github.com/sasjs/react-seed-app/

 

You could also deploy our data management SAS app, free for unlimited users, but written in angular, that has many such examples:  https://datacontroller.io

/Allan
SAS Challenges - SASensei
MacroCore library for app developers
SAS networking events (BeLux, Germany, UK&I)

Data Workflows, Data Contracts, Data Lineage, Drag & drop excel EUCs to SAS 9 & Viya - Data Controller
DevOps and AppDev on SAS 9 / Viya / Base SAS - SASjs

View solution in original post

2 REPLIES 2
AllanBowe
Barite | Level 11

You just need to send those data values back to the _webout fileref in JSON format.  This macro can help: https://core.sasjs.io/mm__webout_8sas.html

 

Here is a seed app in react that does exactly as you describe:  https://github.com/sasjs/react-seed-app/

 

You could also deploy our data management SAS app, free for unlimited users, but written in angular, that has many such examples:  https://datacontroller.io

/Allan
SAS Challenges - SASensei
MacroCore library for app developers
SAS networking events (BeLux, Germany, UK&I)

Data Workflows, Data Contracts, Data Lineage, Drag & drop excel EUCs to SAS 9 & Viya - Data Controller
DevOps and AppDev on SAS 9 / Viya / Base SAS - SASjs
SASAlex101
Obsidian | Level 7
This is great. Awesome code library. I can appreciate the time it took to create it. I have registered an SP with the macros you mentioned. It returns a JSON formatted thing. We can then use react to populate a combo box with that response. Thanks again;

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 417 views
  • 3 likes
  • 2 in conversation