Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript to get number of entries in a value prompt?

Status
Not open for further replies.

aks12

Technical User
Nov 10, 2005
60
US
Using Cognos 8.4, what is the javascript syntax to return the number of entries in a value prompt? I'm not a javascript coder and have been struggling with this. I've tried variations of the code below with no luck.

Code:
var theSpan = document.getElementById("fromDate");
var theSelect = theSpan.getElementsByTagName("select");
theSpanLen =theSpan.length;

canSubmitPrompt();
document.write("Length test value of mylist is: " + theSpanLen + "<br/>");
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top