Data visualization with SAS programming

HTML Tables

Reply
N/A
Posts: 0

HTML Tables

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.
Super Contributor
Super Contributor
Posts: 3,174

Re: HTML Tables

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.
SAS Super FREQ
Posts: 8,818

Re: HTML Tables

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
N/A
Posts: 0

Re: HTML Tables

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.
SAS Super FREQ
Posts: 8,818

Re: HTML Tables

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
SAS Employee
Posts: 980

Re: HTML Tables

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...
Ask a Question
Discussion stats
  • 5 replies
  • 165 views
  • 0 likes
  • 4 in conversation