IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    [Solved] Pass Parameter to Drill Down
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
I'm creating my first Drill Down in WF7.6

Selecting (clicking) the field in the parent correctly launches the report in the child.

I need to pass an additional parameter from the parent to the child. This parameter is data in the parent that I only need to display in the child.

I would rather pass the parameter than join tables in the child to get the information that is already displayed in parent.

Please help.

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


Web Focus 7.6.5
JDE World
 
Posts: 16 | Registered: July 29, 2008Reply With QuoteEdit or Delete MessageReport This Post
Virtuoso
Posted Hide Post
Just add the parameter to the drill and reference the field you want to pass. You can do that from the GUI or type it in the text.


Ginny
---------------------------------
Prod: WF 7.6.5 with 7.6.6 WFRS; AIX 5.2; WebSphere 6.1.0.15
Dev: WF 7.6.5 with 7.6.6 WFRS; AIX 5.3; WebSphere 6.1.0.15
Primarily self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable
 
Posts: 1534 | Location: BNSF: Fort Worth, TX | Registered: April 05, 2006Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Thanks Ginny

The parameter I'm passing down is the Description of an item, which is a string.

In the Parent, I'm referencing it as a "Field", then selected the field from the list in the bottom window, and named the parameter "Description"

How do I reference it in the child so that it is printed? Do I use it as an &variable?

When I run the child, I get the FOC003 Error saying that the "Fieldname is not recongnized", then it prints the first several characters of the description parameter.


Web Focus 7.6.5
JDE World
 
Posts: 16 | Registered: July 29, 2008Reply With QuoteEdit or Delete MessageReport This Post
JG
Master
Posted Hide Post
Daren

Reference it as a variable &Description

If you are puting it in a heading or footing then it would be just that

If you want it in the body of the report you must either use a define or a compute.

COMPUTE COLUMN/A50='&Description';

The quotes are important as without them WebFocus tries to parse it as a real field
 
Posts: 937 | Registered: February 24, 2005Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Thanks! It worked.

I do not know why this is not in the Help files nor in the DevStudion Class.


Web Focus 7.6.5
JDE World
 
Posts: 16 | Registered: July 29, 2008Reply With QuoteEdit or Delete MessageReport This Post
Virtuoso
Posted Hide Post
If you don't need it in the body of the report, just pass it as an &var with a static value of '&Description'


Regards,

Darin



WF Server: 7.1.6 on Z/OS and Linux, ReportCaster, Self-Service, MRE, Java
Data: DB2, DB2/UDB, Adabas, SQL Server Output: HTML,PDF,Excel2K
WF Client: Linux w/WebSphere, Servlet, CGI
 
Posts: 1306 | Location: Salt Lake City, Utah | Registered: February 02, 2007Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
Daren,

Good for you that it works.
Please change the title of this post to include the [SOLVED] keyword.
Thanks,


GamP

- Using 764 on WinXP (sp2) - IE7.
- Also available are versions from 534 up to 766 on Windows (XP/2000/2003EE)
 
Posts: 518 | Location: Netherlands | Registered: September 25, 2007Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    [Solved] Pass Parameter to Drill Down

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.