BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Are there any SAS code examples of creating HTML tables that have pull-down menus?
I'm currently using base SAS 9.1.
It's fine if the examples involve some javascript programming.
Thank you.
5 REPLIES 5
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
You may want to check the SAS Discussion Forums archives - also here is a Google advanced search argument against the SAS.COM website using related keywords.

create drop-down list javascript site:sas.com


Scott Barry
SBBWorks, Inc.
Cynthia_sas
SAS Super FREQ
Hi:
The ODS HTML FAQ have several examples, these among them:
http://support.sas.com/kb/23/670.html
http://support.sas.com/rnd/base/ods/templateFAQ/index.html
http://support.sas.com/kb/23/342.html

If the version of HTML that you use is important for your web server, remember that ODS HTML creates HTML 4.01 compliant tags, ODS HTML3 creates HTML 3.2 compliant tags and ODS MSOFFICE2K creates Microsoft HTML, designed for use with Office 97 and higher.

cynthia
deleted_user
Not applicable
The links you provided had some items I'm interested in.
Maybe I missed this code, but do any of them specifically mention creating pull-down menus?
Thank you.
Cynthia_sas
SAS Super FREQ
Hi:
Pull-down menus are implemented in HTML (usually) as HTML forms. The pull-down list is a select box and then when the user makes their selection, the item they select gets posted with the form action.

From other posts you've made, I remember that you are working in an EG and possibly also BI server environment. If you are working with the BI Platform, the SAS/IntrNet examples mostly correspond to what you can implement with the SAS Information Delivery Portal. The Stored Process Web Application (SPWA) is another way that you could create a custom front end and then build whatever kind of prompting interface you want, you would invoke your stored process via URL making a call to the SPWA to execute the stored process.

If you want to implement pull-down menus with EG, you should investigate the Enterprise Guide Parameter Manager -- which lets you define parameters (such as procedure options or task/wizard options) and then the Parameter interface automatically will prompt the user with a pull-down menu when they run a project in which the Parameter Manager was used to define parameters.

Other methods of creating pull-down menus, specifically in EG, involve the use interfaces programmed using methods other than HTML forms generally using custom tasks written in VB.NET or C#.

cynthia
GraphGuy
Meteorite | Level 14
I'm not where I can see them right now to check for sure, but I think some of the SAS/Intrnet examples had a world map, followed by some html pulldown/selection lists.

If I recall correctly, they were scripted out to the html page with sas "put" statements, and the selection list was a list of hard-coded values (ie, not data-driven).

Probably not exactly what you're wanting, but maybe a start...

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

Discussion stats
  • 5 replies
  • 821 views
  • 0 likes
  • 4 in conversation