2 Replies Latest reply: Dec 30, 2017 2:18 PM by Subhash Gherade RSS

    What are the advantages vs Disadvantages Custom properties vs Tags?

    Jakub Holasek

      Hello,

      is there a comparison between Custom properties and Tags? It seems that they can be used for similar purposes - i.e. filtering and classification. What are the benefits of using Custom properties over tags?

      • Tags cannot be used for sorting users
      • Security rules can work with one specific custom property and set privileges to that

      ...what else?

      Thanks!

        • Re: What are the advantages vs Disadvantages Custom properties vs Tags?
          idriss BENBASSOU

          The most important difference is that the Custom properties can be used in the securities rules and with tags you can't.

          • Re: What are the advantages vs Disadvantages Custom properties vs Tags?
            Subhash Gherade

            For most cases you can tag fields as dimensions or measures. This will help the users/developers to understand the data model when they are building charts. For example: tagging field as dimension will highlight this field in the field list and put these fields at the top of the list

            TAG FIELD Customer WITH $dimension; TAG FIELDS Sales, NetSales WITH $measure; TAG FIELDS CustomerNumber WITH MyTag; 

            For example executing the following script:

             TAG FIELD CustomerNumber, Name, Name2 WITH $dimension; 

            will produce the following result:

            enter image description here

            You can see how CustomerNumber, Name and Name2 fields are highlighted and put on top of the field list

            If you use using custom tags executing the following script:

            TAG FIELDS CustomerNumber WITH MyTag; 

            Will tag the field with MyTag in the Table Viewer:

            enter image description here