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'm creating an HTML with a static radio button allowing the user to choose two options. The options are actually the order of operation to select on. Example, show me all records having GE 50 days with expired product. The two operations are GE and LE. In my fex, my parameter works correctly passing LE or GE. Though, when I try to pass the parameter from the radio button, it put's single quotes around the order of operation. This is of course causing my where statement to fail. Any ideas on where within the HTML composer...I'm getting the single quotes passed in my operation parameter?
Thanks, Rita Combs Dollar General Corp.This message has been edited. Last edited by: <Kathryn Henning>,
WebFOCUS 8: Nov 2014. Platform/OS: Linux. WebFOCUS Developers Studio Version 8008. Data Sources: Oracle. Output Formats: PDF, HTML, AHTML, EXL2k, WF8 Portals.
As far as I know there is no option to add or remove quote for radio, it shouldn't have any indeed. Don't know why you have some without seeing your code.
Below code written with HTML Composer that call a little fex using variables.
-DEFAULT &CNT = 'ITALY'
-DEFAULT &RADIO = 'GE'
-TYPE cnt: &CNT, radio: &RADIO
-*-EXIT
DEFINE FILE CAR
CNTRY /A1 = DECODE COUNTRY ('FRANCE' 'F' 'JAPAN' 'J' 'ENGLAND' 'E' 'ITALY' 'I' ELSE 'G');
END
TABLE FILE CAR
SUM DEALER_COST
BY COUNTRY
WHERE CNTRY &RADIO '&CNT';
END
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
All you have to do is create an Amper variable that contains the GE or LE statement and use that variable is the basis for the radio button.
eg
-SET &GE_LE=IF &CHOICE EQ 1 THEN 'WHERE A GE B' ELSE 'WHERE A LE B';
TABLE FILE XYZ
...
...
&GE_LE
...
END
(You may need quotes around the 1 - or whatever other value you use in the radio button control)
Note that if you put an amper variable like &GE_LE in yout table request the Dev Studio GUI will complain. So just insert a standard WHERE clause while you are setting up and styling the FEX and then substitute the &GE_LE afterwards. Works perfectly.
Thanks Tom, We don't see "Add QUOTES on the right in Properties" any place (properties for the raio button or the amper variable). Could you send a picture / image of what you're seeing? Maybe we're missing what the "the &OPER selection area" is? ~ Doug
In FOCUS Since 1983 ~ from FOCUS to WebFOCUS. Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
I'm not having luck seeing it...so must not be an option like MattC says. We thought about stripping it out...I personally just was trying to understand all the options hoping there was one I could not see. Thank you all for trying to help. Guess I'll just strip it.
Rita
WebFOCUS 8: Nov 2014. Platform/OS: Linux. WebFOCUS Developers Studio Version 8008. Data Sources: Oracle. Output Formats: PDF, HTML, AHTML, EXL2k, WF8 Portals.
We have plenty of Radio buttons and have never had them come through with quotes around the selection, AND, they shouldn't unless you have them quoted in the Value. Or, there is other code putting quotes on...
Yeah Tom, I'm just part of one of the Dollar General WebFOCUS Groups around here. Helping out where I can. This one even stumped me... I think that we'll do the STRIP as a work-around and get with IB, maybe even a case. I'll leave that final call up to Rita .
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005