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

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] HOW TO HIDE A FIELD IN A MASTER FILE
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] HOW TO HIDE A FIELD IN A MASTER FILE
 Login/Join
 
Platinum Member
posted
Please, does anyone know if and how I can hide a field in a master file, preventing it from being captured in a reporting object.

Thank you.

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


WebFOCUS 7.7.02
Windows/SQL/CUBES
HTML/PDF/XLS
 
Posts: 117 | Registered: November 18, 2009Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Is it possible to hide a field?


WebFOCUS 7.7.02
Windows/SQL/CUBES
HTML/PDF/XLS
 
Posts: 117 | Registered: November 18, 2009Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Try to leave the fieldname empty, but let the alias in place with the correct name. Did not try this lately, but in historic versions this would not show the field in devstudio. Might be that it will now also leave it out of the list for reporting object fields.


GamP

- Using AS 8.2.01 on Windows 7 - IE11.
in Focus since 1988
 
Posts: 1960 | Location: Netherlands | Registered: September 25, 2007Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Here is the master file example but it's not working. Both fields(AMOUNT1 & AMOUNT2) are showing in infoassist report:

FIELDNAME=AMOUNT1, ALIAS='Net Amt %', USAGE=D8.2%, ACTUAL=D8,
MISSING=ON,
TITLE='Net Amount %',
PROPERTY=MEASURE, $
DEFINE AMOUNT2/D8.2% = AMOUNT1 * 10;,
TITLE='Net Amount %', $

is there a way of making AMOUNT1 not to show in infoassist report?

Thanks.


WebFOCUS 7.7.02
Windows/SQL/CUBES
HTML/PDF/XLS
 
Posts: 117 | Registered: November 18, 2009Reply With QuoteReport This Post
Virtuoso
posted Hide Post
As I said, this was the way to hide fields in the 'old' days. Apparently that does not work anymore. I have no idea how to do prevent fields from showing up in IA. Maybe opening a case with this question will give you a definitive answer.


GamP

- Using AS 8.2.01 on Windows 7 - IE11.
in Focus since 1988
 
Posts: 1960 | Location: Netherlands | Registered: September 25, 2007Reply With QuoteReport This Post
Platinum Member
posted Hide Post
There's an attribute called INTERNAL you can put on your MFD. I 'hid' our social security number field, then defined a new version with the formatting:

FIELDNAME=C_SSN, ALIAS=C_SSN, USAGE=A11, ACTUAL=A11,
MISSING=ON, ACCESS_PROPERTY=(INTERNAL),
TITLE='SSN', DESCRIPTION='This field is INTERNAL becuase we defined SSN as formatted', $
DEFINE SSN/A11 =IF ENTITY_MASTER1.ENTITY_MASTER1.C_SSN GT ' ' THEN EDIT( C_SSN, '999-99-9999' ) ELSE '';
TITLE='SSN', DESCRIPTION='Social Security Number', $


Webfocus 8
Windows, Linux
 
Posts: 246 | Location: Palm Coast, FL | Registered: February 05, 2010Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Hi Mike,
I am getting error with your sample code. Am are doing anything wrong? Pls, check the code below:

FIELDNAME=AMOUNT1, ALIAS='Net Amt %', USAGE=D8.2%, ACTUAL=D8,
MISSING=ON, ACCESS_PROPERTY = INTERNAL,
TITLE='Net Amount %',
PROPERTY=MEASURE, $

DEFINE AMOUNT2/D8.2% = AMOUNT1 * 10;,
TITLE='Net Amount %', $


Does wf recognise ACCESS_PROPERTY?


WebFOCUS 7.7.02
Windows/SQL/CUBES
HTML/PDF/XLS
 
Posts: 117 | Registered: November 18, 2009Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Mike,
Never knew this existed - I'm still of the old-school. But it works like a charm. Thanks, great tip!

@umun: you do have to put the INTERNAL keyword within (), otherwise it won't work, as you noticed.


GamP

- Using AS 8.2.01 on Windows 7 - IE11.
in Focus since 1988
 
Posts: 1960 | Location: Netherlands | Registered: September 25, 2007Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Yes, it's working now. Thanks guys.


WebFOCUS 7.7.02
Windows/SQL/CUBES
HTML/PDF/XLS
 
Posts: 117 | Registered: November 18, 2009Reply With QuoteReport This Post
Master
posted Hide Post
I am actually looking to do something very similar in my MFDs. Which manual is this located in? I have a feeling I'll need to look at some of the more esoteric options and don't want to bother everyone with noob questions.

Thanks!
- 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, 2010Reply With QuoteReport This Post
Virtuoso
posted Hide Post
The first manual I found this in is the SNF for release 761/762. Do a search in your set of digital manual for the term ACCESS_PROPERTY.


GamP

- Using AS 8.2.01 on Windows 7 - IE11.
in Focus since 1988
 
Posts: 1960 | Location: Netherlands | Registered: September 25, 2007Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] HOW TO HIDE A FIELD IN A MASTER FILE

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