Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Go
New
Search
Notify
Tools
Reply
  
Variable NODATA
 Login/Join
 
Guru
posted
Hi all,

In one of my reports I want to create different type's of NODATA depending on it's ACROSS value.

I tried SET NODATA = IF ACROSSFIELD EQ 'A' THEN 'N/A' ELSE '0';

But that didn't seem to work. I also tried it with a compute, but since there is no data to compute WF doesn't execute the compute statement on NODATA.

Is there a way to manipulate the NODATA field?


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
 
Posts: 420 | Location: Europe | Registered: February 05, 2007Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Frans

What you want is to display alpha fields as 'N/A' and numeric fields as 0 (zero) is that correct?




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Reply With QuoteReport This Post
Guru
posted Hide Post
Hi Frank,

No in the report there are different type of alpha across value's. I've combined 3 reports with MORE and added a across value (a method you mentioned sometime before).

Now there is an across part where there are Yes/No value's and there is an across part which has some numbers. (all fields are alphanumeric)

So for the part with Yes / No value I want 'No' for NODATA and for the rest '0'.


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
 
Posts: 420 | Location: Europe | Registered: February 05, 2007Reply With QuoteReport This Post
Virtuoso
posted Hide Post
So depending on the hold file you want it to become 'NO' or '0'

I think you can say

ON TABLE SET NODATA No

So then this is done in the part of the fex that creates that specific hold file.

In the next part you say

ON TABLE SET NODATA 0

see this

http://forums.informationbuilders.com/eve/forums/a/tpc/...451036602#8451036602




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Reply With QuoteReport This Post
Master
posted Hide Post
You could always use a define and redefine the field check to see if the value is missing or what ever you want and then if it is numeric and to what you can set it to zero, if alpha then you can set it to 'N/A'. I know this is a manual process but it should give you what you want.




Scott

 
Posts: 864 | Registered: May 24, 2004Reply With QuoteReport This Post
  Powered by Social Strata  
 


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