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     Alpha define field empty in WHERE clause

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Alpha define field empty in WHERE clause
 Login/Join
 
Platinum Member
posted
Usage of defined field which is an alphanumeric field. Using this defined field in the where clause of the report, it passes empty value. If I set up the same value in the variable in dialog manager and use in the where clause of the report it works, does anybody face this kind of issue and how did you resolved it ?
In advance thanks for your reply !


Dev: WebFOCUS 7.6.10, Data Migrator 7.6.10
QA: WebFOCUS 7.6.10, Data Migrator 7.6.10
Prod: WebFOCUS 7.6.2, Data Migrator 7.6.8
Windows 2K3, Tomcat 5.5.17, IIS 6
Usage: HTML, PDF, Excel, Self-serve, BID and MRE
 
Posts: 197 | Location: Roseville, CA | Registered: January 24, 2005Report This Post
Guru
posted Hide Post
Can you post your code?


ttfn, kp


Access to most releases from R52x, on multiple platforms.
 
Posts: 346 | Location: Melbourne Australia | Registered: April 15, 2003Report This Post
Platinum Member
posted Hide Post
Thanks for your reply !
Let me rephrase the question since now I found the problem here is passing parameters on Calling the Webservice and passes the defined field in the where clause doesn't work. It can only understand the Amper variables, so need to setup the date parameter in the string format before use in the where clause parameter.

Here is example
-SET &F='08/01/2006 06:00:00';
-SET &T='08/02/2006 06:00:00';

TABLE FILE ABC
PRINT
X1
X2
WHERE STRFROMDT = &F AND STRTODT = &T;
END ( IT's works)

My problem here now how to create the &F and &T.
I have &F and &T in the numeric format for e.g. 20060801 , how to concate and convert into string "08/01/2006 06:00:00". Tried the HCNVRT but didn't help. Let me know if you have idea.
Here is the example of code I tried ...
-SET &YR = EDIT(&DATEYYMD,'9999') ;
-SET &MO = EDIT(&DATEYYMD,'$$$$$99') ;
-SET &DD = EDIT(&DATEYYMD,'$$$$$$$$99') ;
-SET &TOX = &YR || &MO || &DD ;
-SET &FOX = AYMD(&TOX , -31, 'I8YYMD');
-SET &TOX1= DATECVT(&TOX, 'I6YMD', 'YYMD');
-SET &ALPHA_DATE1 = HCNVRT(&TOX, '(H17)', 17, 'A20');


Dev: WebFOCUS 7.6.10, Data Migrator 7.6.10
QA: WebFOCUS 7.6.10, Data Migrator 7.6.10
Prod: WebFOCUS 7.6.2, Data Migrator 7.6.8
Windows 2K3, Tomcat 5.5.17, IIS 6
Usage: HTML, PDF, Excel, Self-serve, BID and MRE
 
Posts: 197 | Location: Roseville, CA | Registered: January 24, 2005Report This Post
Virtuoso
posted Hide Post
Is this what you are looking for?
-SET &F = EDIT(&MDYY, '99/99/9999 ') | EDIT(HHMMSS('A8'),'99:$99:$99');  


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Platinum Member
posted Hide Post
quote:
-SET &F = EDIT(&MDYY, '99/99/9999 ') | EDIT(HHMMSS('A8'),'99:$99:$99');


Thanks for your reply !
This help me and able to solve the problem.


Dev: WebFOCUS 7.6.10, Data Migrator 7.6.10
QA: WebFOCUS 7.6.10, Data Migrator 7.6.10
Prod: WebFOCUS 7.6.2, Data Migrator 7.6.8
Windows 2K3, Tomcat 5.5.17, IIS 6
Usage: HTML, PDF, Excel, Self-serve, BID and MRE
 
Posts: 197 | Location: Roseville, CA | Registered: January 24, 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     Alpha define field empty in WHERE clause

Copyright © 1996-2020 Information Builders