Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     dialog manager problem

Read-Only Read-Only Topic
Go
Search
Notify
Tools
dialog manager problem
 Login/Join
 
<ROSESINN>
posted
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 .

THANKS
 
Report This Post
<JG>
posted
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.
 
Report This Post
<ROSESINN>
posted
Hi jg,
i already tried keeping the - before when but its not working its giving me the same ereror as before.
thanks
 
Report This Post
Platinum Member
posted Hide Post
What operating system are you using?
 
Posts: 124 | Location: Lebanon, New Hampshire | Registered: April 24, 2003Report This Post
Virtuoso
posted Hide Post
Double the quote marks around the days of week (thus:
''Tuesday''
).
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     dialog manager problem

Copyright © 1996-2020 Information Builders