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.
Hello friends is it possible to use case satatement in dialog manager. i am trying to define my fields dynamically and i have to use case statement on one of my fields.
-SET &VAR1= IF &TIMER EQ 'WEEK' THEN ' CASE( DAYNAME(TIME.DLVR_D) WHEN 'Tuesday' THEN CAST(DLVR_D + 6 DAYS AS CHAR(64)) WHEN 'Wednesday' THEN CAST(DLVR_D + 5 DAYS AS CHAR(64)) WHEN 'Thursday' THEN CAST(DLVR_D + 4 DAYS AS CHAR(64)) WHEN 'Friday' THEN CAST(DLVR_D + 3 DAYS AS CHAR(64)) WHEN 'Saturday' THEN CAST(DLVR_D + 2 DAYS AS CHAR(64)) WHEN 'Sunday' THEN CAST(DLVR_D + 1 DAYS AS CHAR(64)) ELSE CAST(DLVR_D AS CHAR(64)) END' ELSE ''; SELECT &VARI,DLVR_D FROM TIME; IN MY EXAMPLE IF THE USER ENTERS VALUE FOR TIMER AS WEEK THEN THE CASE STATEMENT SHOULD BE EVALUATED IN SQL. I TRIED IT BUT ITS GIVING ME ERROR AS MISSING QUOTES OR CASE IS AN EXTERNAL FUNCTION OR COMMAND .
When you write a -SET which goes over multiple lines, each new line must begin with a - for example -SET &VAR1= IF &TIMER EQ 'WEEK' THEN ' CASE( DAYNAME(TIME.DLVR_D) - WHEN 'Tuesday' THEN CAST(DLVR_D + 6 DAYS AS CHAR(64)) -etc.
When you forget the - WebFocus treats it as a WebFocus command. Which is why it thinks your trying to call a subroutine.