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.
I have created a check box before every row in my output.Now I want to create a bar chart based on selection of check box in my report output. Please help me on this in providing the code
-----------Here is my code for creation of checkbox before every row-----------
DEFINE FILE CAR ID1/I5 WITH MODEL =LAST ID1 + 1; AID1/A5 = FPRINT(ID1, 'I5' , 'A5'); AID2/A5 = TRIM('L', AID1, 5, ' ', 1, 'A5'); CB/A100 = ''; END
TABLE FILE CAR HEADING "Car Report checkbox" " " PRINT CB AS '' 'CAR.ORIGIN.COUNTRY' 'CAR.COMP.CAR' 'CAR.CARREC.MODEL' 'CAR.BODY.BODYTYPE'
ON TABLE HOLD FORMAT AHTMLTAB AS REPORT2 ON TABLE SET STYLE * TYPE=HEADING, SIZE=20, STYLE=BOLD,COLOR=GREEN, $ ENDSTYLE END -RUN
-HTMLFORM BEGIN !IBI.OBJ.ACTIVEREPORTJS;
<script> function showCheckedItems() { var _allCbxs = document.getElementsByTagName("input"); var _length = _allCbxs.length; var _params = "";
for (var i=0; i < _length; i++) { if (_allCbxs[i].type == "checkbox" && _allCbxs[i].checked) { _params += "&" + "Car Model ID=" + _allCbxs[i].id; } }
alert("The following Boxes are checked:\n\n" + _params); }
!IBI.FIL.REPORT2;
-HTMLFORM ENDThis message has been edited. Last edited by: <Kathryn Henning>,
Yes, this you can achieve using Java script. Create on select event on the check box and pass the checkbox value to another fex file which plots the graph.
Make a drilldow on the checkbox in the procedure that calls a JAVASCRIPT function (parent.function_name). Then you can pass the parameters to the function. The function can then set the controls with the passed parameter and run the graph.
// This is the preferrered method to use IbComposer_setCurrentSelection('listbox1', cnty, true); IbComposer_setCurrentSelection('listbox2', car, true); IbComposer_setCurrentSelection('listbox3', model, false);
IbComposer_execute('report1'); }
Thanks Barry
WebFOCUS 8103, Windows, App Studio
Posts: 80 | Location: NYC | Registered: November 13, 2008
This is asking someone to do job for you which I think be not correct.
Many helpful hints I have found here but I do not expect anyone to do all code for me.
As you are doing active HTML then the options be there for you so I think you just want to control filtering before graphing. To do this I be looking at what code being generated and try to apply what has been suggest above.
Kofi
Client Server 8.1.05: Apache; Tomcat;Windows Server 2012 Reporting Server 8.1.05; Oracle; MS SQL; Windows Server 2012