<?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>topic Re: TextAlign property handling in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/TextAlign-property-handling/m-p/2039895#M18136</link>
    <description>&lt;P&gt;I mean if you can upload the Qlik Sense app (.qvf file)&lt;/P&gt;</description>
    <pubDate>Mon, 20 Feb 2023 13:10:15 GMT</pubDate>
    <dc:creator>alex_colombo</dc:creator>
    <dc:date>2023-02-20T13:10:15Z</dc:date>
    <item>
      <title>TextAlign property handling</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/TextAlign-property-handling/m-p/2038101#M18112</link>
      <description>&lt;P&gt;I am struggling with how to handle text alignment from my hypercube. On measureinfo property there is a TextAlign property but that property value is wrong. My QlikSense object is aligning "Right" and that property is "Left". I have found a workaround where I read the entire JObject and from that pick out the Representation property which in turn contains an IndicatorProps.Position property where alignment is the correct value "Right".&amp;nbsp; This is definately not how it is supposed to be done but I cant come up with any other solution. Would be forever grateful if someone has a solution for this so I can remove my custom code for fetching such a trivial design property.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attaching some screenshots on the data&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 09:08:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/TextAlign-property-handling/m-p/2038101#M18112</guid>
      <dc:creator>andreas-hellquist-stratsys</dc:creator>
      <dc:date>2023-02-15T09:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: TextAlign property handling</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/TextAlign-property-handling/m-p/2039757#M18125</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/218221"&gt;@andreas-hellquist-stratsys&lt;/a&gt;&lt;/SPAN&gt; , could you please share which engine api methods are you using for reading this information?&lt;BR /&gt;I tried to create a simple table and aligh measure values to the right. Getting the object and getting the layout I have text align property with "right" value. Below engine API methods used by me:&lt;/P&gt;
&lt;OL&gt;
 &lt;LI&gt;GetObject: I'm getting my table&lt;/LI&gt;
 &lt;LI&gt;GetLayout: I'm reading current layout for the object where I can find text align property&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Mon, 20 Feb 2023 09:02:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/TextAlign-property-handling/m-p/2039757#M18125</guid>
      <dc:creator>alex_colombo</dc:creator>
      <dc:date>2023-02-20T09:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: TextAlign property handling</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/TextAlign-property-handling/m-p/2039765#M18126</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/145804"&gt;@alex_colombo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Attached screenshot is how i fetch my object. I fetch GenericObject and not Object like you if that is where I go wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 09:13:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/TextAlign-property-handling/m-p/2039765#M18126</guid>
      <dc:creator>andreas-hellquist-stratsys</dc:creator>
      <dc:date>2023-02-20T09:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: TextAlign property handling</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/TextAlign-property-handling/m-p/2039780#M18129</link>
      <description>&lt;P&gt;After you fetch an generic object, use &lt;A href="https://help.qlik.com/en-US/sense-developer/February2023/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObject.GetLayout.htm" target="_blank"&gt;GetLayout &lt;/A&gt;method for reading the current layout and properties for this object&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 09:28:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/TextAlign-property-handling/m-p/2039780#M18129</guid>
      <dc:creator>alex_colombo</dc:creator>
      <dc:date>2023-02-20T09:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: TextAlign property handling</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/TextAlign-property-handling/m-p/2039792#M18130</link>
      <description>&lt;DIV&gt;
&lt;PRE&gt;genericObject&lt;SPAN&gt;.&lt;/SPAN&gt;Layout&lt;SPAN&gt;.&lt;/SPAN&gt;As&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;TableLayout&lt;SPAN&gt;&amp;gt;()&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;This isn't enough?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Feb 2023 09:42:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/TextAlign-property-handling/m-p/2039792#M18130</guid>
      <dc:creator>andreas-hellquist-stratsys</dc:creator>
      <dc:date>2023-02-20T09:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: TextAlign property handling</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/TextAlign-property-handling/m-p/2039799#M18131</link>
      <description>&lt;P&gt;It should be, I've never used it. Check the response and see if you have what you are looking for. For sure, you don't need to use GetHypercbueData method for getting measure properties&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 09:52:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/TextAlign-property-handling/m-p/2039799#M18131</guid>
      <dc:creator>alex_colombo</dc:creator>
      <dc:date>2023-02-20T09:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: TextAlign property handling</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/TextAlign-property-handling/m-p/2039802#M18132</link>
      <description>&lt;P&gt;Well, that is my question. As can be seen in my original post it shows align=left but in representation data (not exposed in objects) it shows position right.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;GetHypercbueData&amp;nbsp;is because I need the data as well, nothing to do with layout.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 09:56:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/TextAlign-property-handling/m-p/2039802#M18132</guid>
      <dc:creator>andreas-hellquist-stratsys</dc:creator>
      <dc:date>2023-02-20T09:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: TextAlign property handling</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/TextAlign-property-handling/m-p/2039811#M18133</link>
      <description>&lt;P&gt;Ok, so please try to change to GetLayout instead of TableLayout. If this will not fix it, it could be a bug.&lt;BR /&gt;Could you please attach the Qlik app? I'd like to play with APIs and your table object in order to understand if it's a bug in .NET SDK or in Engine API.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 10:15:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/TextAlign-property-handling/m-p/2039811#M18133</guid>
      <dc:creator>alex_colombo</dc:creator>
      <dc:date>2023-02-20T10:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: TextAlign property handling</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/TextAlign-property-handling/m-p/2039815#M18134</link>
      <description>&lt;P&gt;There is unfortunately no difference when using GetLayout.&lt;/P&gt;
&lt;P&gt;Attach the Qlik app? As an excel data export or do you want all credentials for the app? Not sure I can give you credentials, I am integrating to a client of ours.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 10:27:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/TextAlign-property-handling/m-p/2039815#M18134</guid>
      <dc:creator>andreas-hellquist-stratsys</dc:creator>
      <dc:date>2023-02-20T10:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: TextAlign property handling</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/TextAlign-property-handling/m-p/2039895#M18136</link>
      <description>&lt;P&gt;I mean if you can upload the Qlik Sense app (.qvf file)&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 13:10:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/TextAlign-property-handling/m-p/2039895#M18136</guid>
      <dc:creator>alex_colombo</dc:creator>
      <dc:date>2023-02-20T13:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: TextAlign property handling</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/TextAlign-property-handling/m-p/2040408#M18144</link>
      <description>&lt;P&gt;Ok, sorry, never used the actual QlikSense UI, only integrated to it. But here is the .qvf file.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 14:21:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/TextAlign-property-handling/m-p/2040408#M18144</guid>
      <dc:creator>andreas-hellquist-stratsys</dc:creator>
      <dc:date>2023-02-21T14:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: TextAlign property handling</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/TextAlign-property-handling/m-p/2040783#M18148</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/218221"&gt;@andreas-hellquist-stratsys&lt;/a&gt;&amp;nbsp;, thanks for sharing the app.&lt;/P&gt;
&lt;P&gt;I made a couple of test and this is how product works. When Text Alignment property is set to "auto", default alignments will be applies. For text values alignment is on the left, for numbers and dates is on the right. Looking at the property with GatLayout method we will see&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;"textAlign": {
	"auto": true,
	"align": "left"
}&lt;/LI-CODE&gt;
&lt;P&gt;This means that in this particular case, the align property is not considered by the product, because "auto" prop is set to true. Could make confusion here, but this is how it works. Align is set to true beucase is the default value. Indeed, when you switch off the auto prop in the UI you will see align left set as default. See below screenshot&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alex_colombo_0-1677054429099.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/101102i519E05636F1429BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alex_colombo_0-1677054429099.png" alt="alex_colombo_0-1677054429099.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I force position to right, then in properties you will see align "right"&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alex_colombo_1-1677054468993.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/101103iF39EE224FA4A97FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alex_colombo_1-1677054468993.png" alt="alex_colombo_1-1677054468993.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then, here what we have in the GetLayout method&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;"textAlign": {
	"auto": false,
	"align": "right"
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally, when auto is set to true, you will know that text are on left and dates and numbers on right. When auto is set to false, then read align value.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 08:35:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/TextAlign-property-handling/m-p/2040783#M18148</guid>
      <dc:creator>alex_colombo</dc:creator>
      <dc:date>2023-02-22T08:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: TextAlign property handling</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/TextAlign-property-handling/m-p/2040786#M18149</link>
      <description>&lt;P&gt;Thank you very much for the great explanation! It was slightly confusing but now I know how to sort it out at least. Right now I just check for type of data in column and align by that.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 08:40:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/TextAlign-property-handling/m-p/2040786#M18149</guid>
      <dc:creator>andreas-hellquist-stratsys</dc:creator>
      <dc:date>2023-02-22T08:40:39Z</dc:date>
    </item>
  </channel>
</rss>

