[CLOSED] Select "ALL" or individual selections, but not both
When a drop-down list on a launch page created in HTML Layout Painter has an "ALL" value, is there a way to prevent the user from selecting additional values when they've selected "ALL"?
Thank you.This message has been edited. Last edited by: Kerry,
WebFOCUS 7.6.11, Linux, HTML, PDF, AHTML, EXCEL
December 07, 2010, 05:55 AM
<JG>
If it's a multi select then you need to either use javascript or parse it in WebFOCUS
December 07, 2010, 01:15 PM
Steve
I use the following and call it with
onChange="CheckAll(this);"
// If All is selected then deselect All other options
function CheckAll(listbox)
{
if ((listbox.options[0].selected == true) &&
(listbox.options[0].value.toLowerCase() == "all")) {
var iLbCounter = 1
do {
listbox.options[iLbCounter].selected = false
iLbCounter = iLbCounter + 1
} while (iLbCounter <= (listbox.options.length -1) )
}
}
WebFOCUS 7.7.02 Teradata, Oracle Windows Outputs: HTML / PDF / Excel