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, This is my first post on this forum, so please be kind.
I need to add either a 's or ' to the end of my variable, depending on if the variable ends in an "s" or not.
For example: John's Snapshot or Lucas' Snapshot
I can do this with JavaScript with the code below, but I'm not sure how to do this with the WebFOCUS Language. Thanks in advance.
function setFirstName() { var s = (local_ibi_client_fname.charAt(local_ibi_client_fname.length-1) == 's')? "'" : "'s"; document.getElementById('client_fname').innerHTML = local_ibi_client_fname + s + " Snapshot"; }This message has been edited. Last edited by: <Kathryn Henning>,
If you're planning on using that variable in any FOCUS expression, such as a DEFINE or WHERE clause, make sure to suffix it with .QUOTEDSTRING instead of enclosing it in single quotes as that apostrophe in the data may cause some issues.
-* In a DEFINE expression
DEFINE FILE BLAH
FULL_NAME/A60 = &FN_NEW.QUOTEDSTRING;
END
...
TABLE FILE BLAH
PRINT ....
WHERE NAME EQ &FN_NEW.QUOTEDSTRING
END