Focal Point
[SOLVED] HOW TO HIDE A FIELD IN A MASTER FILE

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/607108325

September 08, 2010, 08:17 AM
umun
[SOLVED] HOW TO HIDE A FIELD IN A MASTER FILE
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
September 08, 2010, 11:47 AM
umun
Is it possible to hide a field?


WebFOCUS 7.7.02
Windows/SQL/CUBES
HTML/PDF/XLS
September 08, 2010, 11:55 AM
GamP
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 10 - IE11.
in Focus since 1988
September 09, 2010, 04:29 AM
umun
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
September 09, 2010, 05:05 AM
GamP
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 10 - IE11.
in Focus since 1988
September 09, 2010, 07:26 AM
Mike in DeLand
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
September 09, 2010, 09:49 AM
umun
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
September 09, 2010, 12:40 PM
GamP
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 10 - IE11.
in Focus since 1988
September 10, 2010, 04:51 AM
umun
Yes, it's working now. Thanks guys.


WebFOCUS 7.7.02
Windows/SQL/CUBES
HTML/PDF/XLS
September 10, 2010, 01:19 PM
ABT
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
September 10, 2010, 03:27 PM
GamP
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 10 - IE11.
in Focus since 1988