Expand my Community achievements bar.

Hiding the field in customer schema Navtree

Avatar

Level 1
Level 1

Hi Team,
There is a requirement to hide the attribute.

I have provided accessibleIf  to the customer table. It hides the fields in the database structure level.
but in the nav tree, it's displaying the attribute with 0 if it's an integer attribute and null if it's a string attribute.
also in the form I have provided, visible if so, it's hidden in the form.

but still showing in navtree 
FYI: I have added those attributes in the customer schema navtree. 

Can anyone have the solution for it.

 

3 Replies

Avatar

Community Advisor

Hi,

 

visibleIf : hides the fields from the metadata, hence they cannot be accessed within a schema view, or column selection, or an expression builder. But this does not hide any data, if the field name is manually entered in an expression the value will show up.
Example,
<attribute name="firstName" visibleIf="hasNamedRight('admin')"/>
In the above definition of visibleif, the non-admins cannot see firstName in Configure list. But if the operator enters @firstName, then the operator can see the firstName data.

 

accessibleIf : hides the data (replacing it with empty values) from resulting query. If visibleIf is empty, then it gets the same expression as accessibleIf .
Example,
<attribute name="firstName"  accessibleIf="hasNamedRight('admin')"/>
In the above definition of accessibleIf, the non-admins cannot see email in Configure list and also if the operator enters @firstName, then the operator CANNOT see the firstName data, It will be empty.

 

https://experienceleague.adobe.com/en/docs/campaign-classic/using/configuring-campaign-classic/editi...

 

Thanks,

David



David Kangni

Avatar

Level 1
Level 1

Hi 
FYI: I have already provided accessibleIf   in the data schema but its displaying a value with 0 for all the records 

But  the requirement is to should not visible the hidden attribute in the Navtree .
the attribute itself should not show 

Eg:<attribute name="firstName"  accessibleIf="hasNamedRight('admin')"/>
The first name should not visible for other operators 

Avatar

Level 4

@VV7 You may need to revise the navigation hierarchy. You need to remove (or commentout) the columns that you don't want to show in the navigation tree.

https://experienceleague.adobe.com/en/docs/campaign-classic/using/configuring-campaign-classic/navig...