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     Compound report generated by multiple values

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Compound report generated by multiple values
 Login/Join
 
<Andr33a>
posted
Hello,

I have I problem with a compound report; I want that this report to run for multiple values that I introduce into a text box from an invite window.
I have an invite window with a text box in which I can introduce multiple values, delimited by “;”. After I introduce that values, a report (a compound report, made of 2 reports: Rap1 + Rap2) is generated.
If I introduce a single value in the text box, the report is generated OK.
The problem appears when I introduce multiple values in the text box (ex. val1; val2); the report that I get in this situation is not OK:

Rap1 for val1
Rap2 for val1 + val2

In this moment I have created a JavaScript for the parameter that is introduced in invite window and is passed to the report as ‘val1 OR val2’; in the reports Rap1 and Rap2 I tested if the corresponding column is equal with this parameter.
So, what I want is that for the values introduced in the invite window, to obtain a final report that looks like this:

Rap1 for val1
Rap2 for val1
Rap1 for val2
Rap2 for val2

Can you give me a suggestion regarding this problem?

Thanks for your support,

Andreea
 
Report This Post
Virtuoso
posted Hide Post
Andreea

Try this.

In your javascript, instead of setting the values with an OR in, set up the field to look like this:

&VAR1=val1,&VAR2=val2

and send that across to the focexec (in my example I call the input field on the form myScreen.

In the focexec
-DEFAULTS &mySreen.EVAL

-SET &CNTR=1;

-:MYLAB

report1
WHERE field EQ &VAL.&CNTR

report2
WHERE field EQ &VAL.&CNTR

-SET &CNTR=&CNTR+1;
-IF &VAL.&CNTR.EXIST GOTO :MYLAB;


I think this will work for what you want.
(My first real reason to use .EVAL!)


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report 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     Compound report generated by multiple values

Copyright © 1996-2020 Information Builders