Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Determining number of Visual Discovery bars selected by user

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Determining number of Visual Discovery bars selected by user
 Login/Join
 
Gold member
posted
I have a Visual Discovery dashboard that I'm enhancing with JavaScript to launch WebFOCUS reports using the data selected by the user on the individual Visual Discovery objects as parameters to the reports.

I've got the report launching and parameters being passed, but now I have an issue with the length of all the amper variables being too long.

The real problem is that the JavaScript command that returns a list of selected bars in a bar chart, returns all the values, even if the user did not select any bars. This causes the parameter list for the FEX to be much larger than it has to be.

The JavaScript command that I'm currently using to grab any selected values is:

var strValues = objVz.FindSelectedValues(20);


I'm wondering if anyone has any experience using JavaScript on a web page to interact with the Visual Discovery components, and if so, does anyone know the JavaScript code to determine if the user selected any bars/lines on a chart?

The Advizor docs that install with the Advizor Authoring Toolkit have properties and methods information for the Advizor components, but I can't seem to hit on the right property to tell me if the user selected a subset of the total bars for a bar chart for example.

I'll keep experimenting with interrogating the properties to see if one of these has the magic value.


Local: AppStudio 8.2.03 - Win7 - Tomcat Server: WebFOCUS 8.2.03 - Windows 2008 R2 Enterprise on VMWare 2 CPU, 3.2GHz, 4GB of RAM Output Formats: HTML, Excel, PDF, PPT, Active Reports
 
Posts: 38 | Location: Denver, CO | Registered: March 16, 2005Report This Post
Virtuoso
posted Hide Post
Try using 100 instead of 20. I have no doc to back any of this up, just messing about. It appears that 100 causes the function to return only those values that have been explicitly selected. IOW, the user must physically select the bars for the function to return anything. If you have another visdis object on the screen that causes you bars to change, then the object will still return nothing. Let us know if this works for you.

FYI:
20 appears to return all bars with any color.
10 appears to return all bars with no color.


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Gold member
posted Hide Post
Thanks. Yes that does indeed work. When I select a bar or slice in one chart, the other charts return 0 length strings from the

strValue = objVz.FindSelectedValues(100)


command.

Appreciate the quick response!


Local: AppStudio 8.2.03 - Win7 - Tomcat Server: WebFOCUS 8.2.03 - Windows 2008 R2 Enterprise on VMWare 2 CPU, 3.2GHz, 4GB of RAM Output Formats: HTML, Excel, PDF, PPT, Active Reports
 
Posts: 38 | Location: Denver, CO | Registered: March 16, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Determining number of Visual Discovery bars selected by user

Copyright © 1996-2020 Information Builders