Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Select "ALL" or individual selections, but not both
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] Select "ALL" or individual selections, but not both
 Login/Join
 
Platinum Member
posted
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
 
Posts: 100 | Registered: September 15, 2010Reply With QuoteReport This Post
<JG>
posted
If it's a multi select then you need to either use javascript
or parse it in WebFOCUS
 
Reply With QuoteReport This Post
Member
posted Hide Post
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
 
Posts: 13 | Location: Michigan | Registered: December 09, 2008Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Select "ALL" or individual selections, but not both

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.