<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article How to use variables as Title in Qlik Sense objects using Engine API. in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-use-variables-as-Title-in-Qlik-Sense-objects-using-Engine/ta-p/1711590</link>
    <description>&lt;P&gt;&lt;STRONG&gt;How to - "Use a variable as Title in Qlik Sense objects using Engine API's CreateDimension() method".&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;The requirement is to display the values inside a variable as a Title in a Qlik Sense object using Engine API.&lt;BR /&gt;&lt;BR /&gt;For example: We have a variable vTitle in our Qlik Sense application which contains some value. In our case vTitle = 1111111.&lt;BR /&gt;&lt;BR /&gt;Now, we want to create a Table object and display the Label as "1111111" instead of the Field name (Field created using Engine API's method).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Note: There is a difference between "Name" field &amp;amp; "Label expression" field in Qlik Sense.&lt;BR /&gt;&lt;BR /&gt;The "Name " field doesn't support use of any Formulas (refer to the below screenshot). Only the "Label expression" field can support use of formulas (Symbol Fx gives us that HINT).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Edit Dimension.png" style="width: 851px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/56025iBDA970C4CA7F965D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Edit Dimension.png" alt="Edit Dimension.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;Resolution:&lt;/H3&gt;
&lt;P&gt;&lt;BR /&gt;Use the following code to create a master dimension and use a variable expression as Title for Labels:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
"handle": 1,
"method": "CreateDimension",
"params": {
"qProp": {
"qInfo":

{ "qType": "dimension" }
,
"qDim": {"title": "something", "qGrouping": "N", "qFieldDefs": [ "City" ], "qFieldLabels": [ "City Label" ], "qLabelExpression": "=$(vTitle)" }
,
"qMetaDef": {
"title": "avenger"
}
}
}
}&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The property that needs to be used is:&amp;nbsp;&lt;FONT face="courier new,courier"&gt;"qLabelExpression": "=$(vTitle)"&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Once we create a Master dimension using the above code, we create a simple Table &amp;amp; use the Dimension "avenger" in my table &amp;amp; as expected it displays the Label as the value inside variable vTitle.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table 11111.png" style="width: 567px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/56026i2CA49C83332E53C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="table 11111.png" alt="table 11111.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;Environment:&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 31 May 2021 15:44:11 GMT</pubDate>
    <dc:creator>Sonja_Bauernfeind</dc:creator>
    <dc:date>2021-05-31T15:44:11Z</dc:date>
    <item>
      <title>How to use variables as Title in Qlik Sense objects using Engine API.</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-use-variables-as-Title-in-Qlik-Sense-objects-using-Engine/ta-p/1711590</link>
      <description>&lt;P&gt;&lt;STRONG&gt;How to - "Use a variable as Title in Qlik Sense objects using Engine API's CreateDimension() method".&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;The requirement is to display the values inside a variable as a Title in a Qlik Sense object using Engine API.&lt;BR /&gt;&lt;BR /&gt;For example: We have a variable vTitle in our Qlik Sense application which contains some value. In our case vTitle = 1111111.&lt;BR /&gt;&lt;BR /&gt;Now, we want to create a Table object and display the Label as "1111111" instead of the Field name (Field created using Engine API's method).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Note: There is a difference between "Name" field &amp;amp; "Label expression" field in Qlik Sense.&lt;BR /&gt;&lt;BR /&gt;The "Name " field doesn't support use of any Formulas (refer to the below screenshot). Only the "Label expression" field can support use of formulas (Symbol Fx gives us that HINT).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Edit Dimension.png" style="width: 851px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/56025iBDA970C4CA7F965D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Edit Dimension.png" alt="Edit Dimension.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;Resolution:&lt;/H3&gt;
&lt;P&gt;&lt;BR /&gt;Use the following code to create a master dimension and use a variable expression as Title for Labels:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
"handle": 1,
"method": "CreateDimension",
"params": {
"qProp": {
"qInfo":

{ "qType": "dimension" }
,
"qDim": {"title": "something", "qGrouping": "N", "qFieldDefs": [ "City" ], "qFieldLabels": [ "City Label" ], "qLabelExpression": "=$(vTitle)" }
,
"qMetaDef": {
"title": "avenger"
}
}
}
}&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The property that needs to be used is:&amp;nbsp;&lt;FONT face="courier new,courier"&gt;"qLabelExpression": "=$(vTitle)"&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Once we create a Master dimension using the above code, we create a simple Table &amp;amp; use the Dimension "avenger" in my table &amp;amp; as expected it displays the Label as the value inside variable vTitle.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table 11111.png" style="width: 567px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/56026i2CA49C83332E53C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="table 11111.png" alt="table 11111.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;Environment:&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 15:44:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-use-variables-as-Title-in-Qlik-Sense-objects-using-Engine/ta-p/1711590</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2021-05-31T15:44:11Z</dc:date>
    </item>
  </channel>
</rss>

