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] Dynamic Drop Down - 'All' option not working?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Solved] Dynamic Drop Down - 'All' option not working?
 Login/Join
 
Platinum Member
posted
I have a chained dynamic drop down list for a parameterized report. The data source of this report is from a sql stored proc (which has four parameters - all which are on the launch page). I need to include the 'All' option which currently will not return all results. It worked when I removed the dynamic chain and hard coded some values to test. It appears to be an issue with the dynamic chain which I cannot figure out?

The error code I receive is:

(FOC1400) SQLCODE IS -1 (HEX: FFFFFFFF)
: Microsoft OLE DB Provider for SQL Server: [] Command text was not set fo
: r the command object.
(FOC1414) EXECUTE IMMEDIATE ERROR.
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: SQLOUT
BYPASSING TO END OF COMMAND
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: SQLOUT
BYPASSING TO END OF COMMAND

Any help that can provided is much appreciated.

Thanks!
Joe

This message has been edited. Last edited by: JOE,


WebFocus 7.7.02 WinXP
 
Posts: 236 | Registered: May 12, 2006Report This Post
Platinum Member
posted Hide Post
Can you please explain this a little further:
quote:
The data source of this report is from a sql stored proc (which has four parameters - all which are on the launch page).
The four parameters are throwing me off. Are you saying the four parameters in your sql stored proc are in addtion to the dynamic chained parameters?


Kathy Phillips
Web FOCUS 8.2.05.14, 8.1.05, 8.08, 8.0.7, 8.0.5,8.0.2m, 7.6.10,7.7.03
Windows
 
Posts: 118 | Location: Livonia, MI | Registered: March 27, 2009Report This Post
Platinum Member
posted Hide Post
Thanks for your reply. The four sql stored proc parameters are the four parameters on the launch page. I just need to add 'All' to each control which it doesnt like. I've coded the sql stored proc to except 'All' and when I tested the launch page with static values which included 'All' it worked. Once I set the controls to chained dynamic, it blows up however, it doesnt blow up as long as I do not select 'All'.

Thanks,

Joe


WebFocus 7.7.02 WinXP
 
Posts: 236 | Registered: May 12, 2006Report This Post
Master
posted Hide Post
i believe 'select all' basically removes that item from the chain (i.e. 'ALL' = no limiting WHERE statement). Or maybe it sends FOC_NONE. Can't recall off the top of my head.

Have you tried 'TYPE'ing or javascript alerting the field to see what will be passed.

- ABT


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
 
Posts: 561 | Registered: February 03, 2010Report This Post
Guru
posted Hide Post
This has to be handled in the FEX sperately.

If your stored proc expects 'ALL' or an empty ' ', then FOC_NONE has to be decoded to any of these, and assigned to an & SET variable.

That has to be passed to the SP, instead of directly passing the param from front end.


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
 
Posts: 394 | Location: Chennai | Registered: December 02, 2009Report This Post
Platinum Member
posted Hide Post
Ram,

Not sure if I'm doing this right. I tried tinkering with the -set dialouge I saw on here and still get that error.

Code below:

 -* File pulsemonthlytots.fex


ENGINE SQLMSS SET DEFAULT_CONNECTION IVB
SQL SQLMSS
EX ORBIT.dbo.PulseMonthlyTotals '&dte','&edte','&div','&grp','&tmn','&role'
;



TABLE FILE SQLOUT
PRINT *
ON TABLE HOLD AS SQLOUT
END
DEFINE FILE SQLOUT
NEWDATE/TMYY=HDATE(Month,'MDYY');

END

-SET &div = IF &div EQ '' THEN 'FOC_NONE' ELSE ÷
-SET &grp = IF &grp EQ '' THEN 'FOC_NONE' ELSE &grp;
-SET &tmn = IF &tmn EQ '' THEN 'FOC_NONE' ELSE &tmn;
-SET &role = IF &role EQ '' THEN 'FOC_NONE' ELSE &role;


TABLE FILE SQLOUT
SUM
     Result
     PercentRank AS '%,Rank'
BY EmpID
BY Division
BY Group
BY Team
BY FName
BY LName
BY Role
ACROSS HIGHEST DataType NOPRINT
ACROSS NEWDATE
HEADING
""
FOOTING
""
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE * 


Do you have any examples I can look at?


WebFocus 7.7.02 WinXP
 
Posts: 236 | Registered: May 12, 2006Report This Post
Expert
posted Hide Post
quote:
This has to be handled in the FEX sperately.
IF you proc is expecting "ALL", then you can change your dynamic properties, in your launch page, to send whatever you'd like: FOC_NONE (the default), ALL, or sometghing else... Try that, you may just like it...
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Platinum Member
posted Hide Post
Thanks for all the tips..I got it to work. I thought about it and figured that the foc_none had to be defined at the top to be read as 'All'. This worked.

 -DEFAULT &div='All';
-DEFAULT &grp='All';
-DEFAULT &tmn='All';
-DEFAULT &role='All';

-SET &div=IF &div EQ 'FOC_NONE' THEN 'All' ELSE ÷
-SET &grp=IF &grp EQ 'FOC_NONE' THEN 'All' ELSE &grp;
-SET &tmn=IF &tmn EQ 'FOC_NONE' THEN 'All' ELSE &tmn;
-SET &role=IF &role EQ 'FOC_NONE' THEN 'All' ELSE &role; 


WebFocus 7.7.02 WinXP
 
Posts: 236 | Registered: May 12, 2006Report 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] Dynamic Drop Down - 'All' option not working?

Copyright © 1996-2020 Information Builders