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.
We have a HTML page that allows a user to select mutiple selections of an AGENT value. Values are 0000, 0010, 0020, etc.. In the following example, the fex variable value for AGENT is '0000' OR '0010' or '0020' as expected for a multiple select listbox.
I'm trying to use STRREP to change the 0000 value of the string to TOT for heading display.
Translated: STRREP(26, '0000' OR '0010' OR '0020', 4, '0000', 3, 'TOT', 26, 'A26');
The problem seems to be the use of numbers in the searchstring paramter (4) of the STRREP function. Does anyone know what this issue is or how to replace the 0000 value to TOT.
I use the STRREP function regularly, but have never needed to replace numbers within a string just characters.
Beware of the case where your user will choose only '0000'! The function will not like to have &agent be 0000 because it will be a number and not a string.
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006
You are right if this were to come across as just 0000, but as this is being passed from a multi-select, it should always have single quotes around it, in which case it is viewed as an alpha field, as what the function sees is: STRREP(06, '0000', 4, '0000Z', 3, 'TOT', 06, 'A06'); which is acceptable to it.
Alan. WF 7.705/8.007
Posts: 1451 | Location: Portugal | Registered: February 07, 2007