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     [CLOSED] HTML Page - Report Caster error..

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] HTML Page - Report Caster error..
 Login/Join
 
Platinum Member
posted
Hi Guys,
I have a fex which have 'LIKE' filter condition.
---------------------------------------------------
TABLE FILE EMPDATA
PRINT
EMPDATA.EMPDATA.PIN
EMPDATA.EMPDATA.DEPT
EMPDATA.EMPDATA.DIV
WHERE EMPDATA.EMPDATA.DIV LIKE '&DIV';
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty,
$
ENDSTYLE
END
--------------------------------------------------

When i am including this fex in HTML composer and trying to Schedule it.
It accept i.e - value are-
1 - NE
2 - CORP
But when im putting wildcard value- i.g
1 - COR%
2 - N%
----------------------
its giving me error..

An unexpected application error has occurred. Please contact your WebFOCUS Systems Administrator.

I can run with wildcard value but not able to Schedule it.
Can u guys please Resolve this error.

This message has been edited. Last edited by: <Kathryn Henning>,


Thanks!
@vi

WebFOCUS 8105, Dev Studio 8105, Windows 7, ALL Outputs
 
Posts: 103 | Registered: July 08, 2013Report This Post
Member
posted Hide Post
try WHERE EMPDATA.EMPDATA.DIV CONTAINS'&DIV';


SHAWN
V7.7.02
Dev Studio
 
Posts: 10 | Location: Johnston, IA | Registered: August 07, 2007Report This Post
Platinum Member
posted Hide Post
Thanks for Reply..

But client wants Wildcard Selection.
i.e -
1 - C_%
2 - N_

And this parameter is not matching with existing data.


Thanks!
@vi

WebFOCUS 8105, Dev Studio 8105, Windows 7, ALL Outputs
 
Posts: 103 | Registered: July 08, 2013Report This Post
Guru
posted Hide Post
-SET &PERC='&DIV.EVAL'|'%';
Would it help?


-Rifaz

WebFOCUS 7.7.x and 8.x
 
Posts: 406 | Location: India | Registered: June 13, 2013Report This Post
Platinum Member
posted Hide Post
Thanks for Reply.

But this is not working. And one more thing-
I am using Info Assist for this and user can enter one or more wildcard value.


Thanks!
@vi

WebFOCUS 8105, Dev Studio 8105, Windows 7, ALL Outputs
 
Posts: 103 | Registered: July 08, 2013Report This Post
Virtuoso
posted Hide Post
Hi Avinash,

The problem is to manage what your user will enter in the parameter field and how. Assuming that only wild card % can be entered without any space or coma, the fallowing should work. Otherwise you'll have to adjust the code or limit what user can enter and the way they enter it.

-SET &PARAM = 'DOOR%AUTO%';
-SET &INTER = '''' || STRREP(&PARAM.LENGTH, &PARAM, 1, '%', 6, ''' OR ''', 100, 'A100') || '-''';
-SET &INTER2 = STRREP(&INTER.LENGTH, &INTER, 7, 'OR ''-''', 0, '', &INTER.LENGTH, 'A&INTER.LENGTH');
-SET &TEST  = STRREP(&INTER2.LENGTH, &INTER2, 1, '-', 0, '', &INTER2.LENGTH, 'A&INTER2.LENGTH');

-TYPE PARAM: &PARAM
-TYPE INTER: &INTER
-TYPE INTER2: &INTER2
-TYPE TEST: &TEST

TABLE FILE CAR
PRINT MODEL
BY COUNTRY
BY CAR
WHERE MODEL CONTAINS &TEST;
END


Basically what I'm doing is creating a list of possible values based on what the user provide. And because they can end their string with a wild card, I need to manage it. It's may not be very elegant, but should work up to a certain point.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report 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     [CLOSED] HTML Page - Report Caster error..

Copyright © 1996-2020 Information Builders