Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Hide a load field in order that the user can see it

I have a quick question, how can i hide a field that is loaded in order to load it, but the user can't see it.

Thanks,

1 Solution

Accepted Solutions
Not applicable
Author

Hi, thanks for the responses, I found the solution:

In the Main area:

set HidePrefix='_' ;

and then, all the fields I want to be hidden, put a '_' ahead the field name.

Regards

View solution in original post

7 Replies
Not applicable
Author

Can you be a little more specific? I'm imaging you want to load it into a pivot/straight table for ordering purposes but don't want it to be visible?

Not applicable
Author

if this field is no longer utilisés, can Elmina with
</div><div>
DROP FIELD field;</div><div></div><div>
Not applicable
Author

If it is a dimension or dummy expression in a pivot table for example, you can make it 0 width to hide it from display (but be aware the user might still get at it if downloading to excel)

You just need to run a macro on it once (attach the macro to a button) where the code would be like this:

sub test1

set chart = ActiveDocument.GetSheetObject("CH01")
set p = chart.GetProperties

set dims = p.Dimensions
dims(0).ColWidth = 0

set expr = p.Expressions.Item(0).Item(0).Data.ExpressionVisual ' group.expression numbered from 0
expr.ColWidth = 0

chart.SetProperties p

end sub

Regards,

Gordon

Not applicable
Author

Hi, thanks for the responses, I found the solution:

In the Main area:

set HidePrefix='_' ;

and then, all the fields I want to be hidden, put a '_' ahead the field name.

Regards

Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

keep in mind that this solution is "cosmetic" only. If your users can check "Show system fields", the hidden fields become visible again. If you need to hide the fields for security reasons, look into using a keyword OMIT in Section Access.

Ask me about Qlik Sense Expert Class!
Not applicable
Author

Hi Gordon,

I'm trying to implement the code you provided about but not having any success. I'm trying to hide a column called "Reported_QTY" as soon as the pivot table is loaded. Is this possible?

Thanks

Ward

Not applicable
Author

The code is designed to be run once during the development process to 'permanenetly hide' a column. If you are trying to hide a column dynamically then that is a different matter (and I personally create different tables rather than allow a session to 'change' the attributes of a chart).

However, are you sure that you are defining the correct occurence of the column?

Regards,

Gordon