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.
Hi, In my report, I have a checkbox on each row so that when a checkbox is checked I need to retrieve the field values of that row.
I have this code below using which I can capture the value for COUNTRY in a row. How would i capture other field values(for CAR MODEL etc) in that row?
TABLE FILE CAR PRINT COMPUTE CTRYFLD/A100 = ''; AS 'Select' CAR MODEL ON TABLE HOLD AS HTML1 FORMAT HTMTABLE ... END
Thanks!This message has been edited. Last edited by: Kerry,
WF 7.1.1, WF Developer studio 7.1.1, Windows & Mainframe, HTML
TABLE FILE CAR
PRINT
COMPUTE CTRYFLD/A100 = '<input type="checkbox" id="CTRY" name="CTRY" value="'
||COUNTRY||'" onClick="check_click(''CTRY'');">'; AS 'Select'
CAR MODEL
ON TABLE HOLD AS HTML1 FORMAT HTMTABLE
...
END
WF 7.1.1, WF Developer studio 7.1.1, Windows & Mainframe, HTML
Are you wanting a WebFOCUS solution or are you looking for some javascript? What is it your are trying to do with the values of that row that are selected when you check the box?
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
Let's say this is my report TABLE FILE CAR PRINT COUNTRY CAR MODEL ON TABLE HOLD AS HOLD1 FORMAT HTMTABLE END
I need a checkbox for each row in the report.The user would select the checkbox to update a DB2 table with the field values in a row. So, If user selected rows containing ENGLAND JAGUAR V12XKEAUTO a table needs to be updated using these values. The user can select multple rows.
(webfocus or javascript)
WF 7.1.1, WF Developer studio 7.1.1, Windows & Mainframe, HTML
What are you using to update the DB2 table? Maintain? Modify? something else?
Seems like the simplest thing would be to just create a drilldown procedure that contains a modify statement and pass the column values as parameters. They're just referenced as N1, N2, etc. No need for checkboxes or anything else. Check out creating a drilldown procedure in the documentation.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
Hello I'm looking for something very similar to be able to check/uncheck rows like a grid to mass update the checked rows using sql pass thru/javascript.