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 a Scenario in report where i have to replace a string.From a HTML page i get a string in the format of STR1 = 'X1' AND 'X2' AND 'X3'
This string needs to be converted in to the format of STR1 = X1 + X2 + X3 removing both the quotes and the AND replaced by a plus sign and add to this the string is always dynamic.Is there any solution for this.This message has been edited. Last edited by: Kerry,
7.6.4 Unix & Windows Excel,HTML,PDF,PPT,AHTML
Posts: 68 | Location: Hyderabad | Registered: March 18, 2008
thanks for the solutions of which most of them almost worked.I am not able to use the STRREP function to replace AND with a '+' Sign.The Error is something like invalid argument in the fucntion.Is this because this being an operator?? and the other problem is with the single quote .How will it recognize the ' and replace it coz -SET &V1 = ' 'a' OR 'b' OR 'c' OR 'd' OR 'e'' ;
-SET &V2 = STRREP(&V1.LENGTH, &V1, 1, ''', 1, ' ', &V1.LENGTH, 'A&V1.LENGTH'); would be an invalid specification
7.6.4 Unix & Windows Excel,HTML,PDF,PPT,AHTML
Posts: 68 | Location: Hyderabad | Registered: March 18, 2008
Try this code. The STRIP function is used to remove the single quotes. STRREP does not like the + sign so I replaced 'AND' with '^', then used CTRAN to replace the '^' with '+'. I used a length of 100, but you should adjust this length to the maximum expected length of your input string. Also be aware that the output length for STRREP must be longer than the input length.
Tony is closer to the mark. While awaiting the appointed hour to perform my duty as parental chauffeur it came down to a choice between an interesting Focal Point problem and the mindless drivel they call entertainment on the telly.
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007