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     [solved workaround] Info Assist HELP

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[solved workaround] Info Assist HELP
 Login/Join
 
Platinum Member
posted
How do you code a varible include within Info Assit.

I have tried
-include &aa (with no colon)
-include &aa (with the colon)
-include &aa (with userid/)
&aa = from of the above
the used the -mrnoedit and remote.

WF 7.6.10

Thanks

This message has been edited. Last edited by: David Sibert,


dksib
DC Tech Services Inc
WF 8.2.1M
 
Posts: 117 | Location: US | Registered: February 09, 2004Report This Post
Expert
posted Hide Post
Use -INCLUDE, and not -include.

Where does the include file exist ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
The -include is in caps the file that will be included could be in either the Reporting Objects or thier My Reports section. These will be dynamic and NOT hard coded. I can hard code it for them but that would be a huge headache for them.

This would be part of using multiple flat files based upon dates with one master. The &aa = the included file. These files range from 10 to 90 columns and between 10 thousand to 5 million rows. The process will extract only the columns and rows required from each file and then combind them at the end to be used in the reports.


dksib
DC Tech Services Inc
WF 8.2.1M
 
Posts: 117 | Location: US | Registered: February 09, 2004Report This Post
Expert
posted Hide Post
What error do you get ?

Are the include files in a different domain in MRE ?

The syntax for include a file from another domain is -INCLUDE {domain directory}/app/{fexname}


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
The issue is with using a varable and NOT hard coding the include.

If I just hard code it then it will work when I make it a varable then WF does not like it.


dksib
DC Tech Services Inc
WF 8.2.1M
 
Posts: 117 | Location: US | Registered: February 09, 2004Report This Post
Expert
posted Hide Post
I don't know anything about InfoAssist, but Dialogue Manager variable-based -INCLUDEs don't work very well - it's much better to use an IF statement:

-DEFAULT &AA = 'QTR1';

-IF  &AA EQ 'QTR1' GOTO INCL_QTR1 ELSE
- IF &AA EQ 'QTR2' GOTO INCL_QTR2 ELSE
- IF &AA EQ 'QTR3' GOTO INCL_QTR3 ELSE GOTO INCL_QTR4;

-INCL_QTR1
-INCLUDE QTR1
-GOTO INCL_END

-INCL_QTR2
-INCLUDE QTR2
-GOTO INCL_END

-INCL_QTR3
-INCLUDE QTR3
-GOTO INCL_END

-INCL_QTR4
-INCLUDE QTR4
-GOTO INCL_END

-INCL_END


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
Actually, you can do this:
-SET &AA_INCL = '-INCLUDE &AA';
&AA_INCL.EVAL


Francis, that GOTO-list can be written a bit shorter as well.
-GOTO INCL_&AA
-GOTO INCL_END

-INCL_QTR1
-INCLUDE QTR1
-GOTO INCL_END

-INCL_QTR2
-INCLUDE QTR2
-GOTO INCL_END

-INCL_QTR3
-INCLUDE QTR3
-GOTO INCL_END

-INCL_QTR4
-INCLUDE QTR4
-GOTO INCL_END

-INCL_END


Of course, you will get an error if &AA is none of these values. The -GOTO following the first one should work as an escape valve in such cases.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Platinum Member
posted Hide Post
Thanks all.

Francis that is what I did with in Info Assist which is not the same code I can use in the Standard Reports with in MR or the Focexecs within Data App folders.

Wep5622 Info Assist does NOT allow the
-SET &AA_ICL = '-INCLUDE &AA';
&AA_INCL.EVAL
that is the code that I used within MR and Data App focexecs.

I was trying to create something that the Analytical users could use and create with out to many steps.


dksib
DC Tech Services Inc
WF 8.2.1M
 
Posts: 117 | Location: US | Registered: February 09, 2004Report 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     [solved workaround] Info Assist HELP

Copyright © 1996-2020 Information Builders