<?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: Help to format a text box with address details from multiple fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-to-format-a-text-box-with-address-details-from-multiple/m-p/89018#M754978</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try your expression&amp;nbsp; as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(GetSelectedCount(Property)=1,&lt;/P&gt;&lt;P&gt;if(len(trim(Property)) &amp;gt; 0 ,Property&amp;amp;chr(10))&amp;amp; &lt;/P&gt;&lt;P&gt;if(len(trim([Address 1])) &amp;gt; 0 ,[Address 1]&amp;amp;chr(10))&amp;amp; &lt;/P&gt;&lt;P&gt;if(len(trim([Address 2])) &amp;gt; 0 ,[Address 2]&amp;amp;chr(10))&amp;amp;&lt;/P&gt;&lt;P&gt;if(len(trim([Address 3])) &amp;gt; 0 ,[Address 3]&amp;amp;chr(10))&amp;amp; &lt;/P&gt;&lt;P&gt;if(len(trim([Post Code])) &amp;gt; 0 ,[Post Code]) &lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Oct 2018 16:55:44 GMT</pubDate>
    <dc:creator>jayanttibhe</dc:creator>
    <dc:date>2018-10-09T16:55:44Z</dc:date>
    <item>
      <title>Help to format a text box with address details from multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Help-to-format-a-text-box-with-address-details-from-multiple/m-p/89017#M754977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have some property addresses which are all in separate fields. &lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Property Name&lt;/P&gt;&lt;P&gt;Address 1&lt;/P&gt;&lt;P&gt;Address 2&lt;/P&gt;&lt;P&gt;Address 3&lt;/P&gt;&lt;P&gt;Address 4&lt;/P&gt;&lt;P&gt;Post Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to display the address in a text box, so when&amp;nbsp; a user selects an individual property, they see the details of that property, one of the details is a text box with the full address showing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some of the address fields are not used for some of the properties&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;property 1 might use all 5 fields&lt;/P&gt;&lt;P&gt;property 2 might only have address1 + 2 and post code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so adding these to a text box will cause missing (blank) lines between the first and last part of the address. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help with maybe using a nested if statement to check the fields are populated first? I have tried but i can't figure it out. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a sample. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-to-format-a-text-box-with-address-details-from-multiple/m-p/89017#M754977</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help to format a text box with address details from multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Help-to-format-a-text-box-with-address-details-from-multiple/m-p/89018#M754978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try your expression&amp;nbsp; as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(GetSelectedCount(Property)=1,&lt;/P&gt;&lt;P&gt;if(len(trim(Property)) &amp;gt; 0 ,Property&amp;amp;chr(10))&amp;amp; &lt;/P&gt;&lt;P&gt;if(len(trim([Address 1])) &amp;gt; 0 ,[Address 1]&amp;amp;chr(10))&amp;amp; &lt;/P&gt;&lt;P&gt;if(len(trim([Address 2])) &amp;gt; 0 ,[Address 2]&amp;amp;chr(10))&amp;amp;&lt;/P&gt;&lt;P&gt;if(len(trim([Address 3])) &amp;gt; 0 ,[Address 3]&amp;amp;chr(10))&amp;amp; &lt;/P&gt;&lt;P&gt;if(len(trim([Post Code])) &amp;gt; 0 ,[Post Code]) &lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2018 16:55:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-to-format-a-text-box-with-address-details-from-multiple/m-p/89018#M754978</guid>
      <dc:creator>jayanttibhe</dc:creator>
      <dc:date>2018-10-09T16:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help to format a text box with address details from multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Help-to-format-a-text-box-with-address-details-from-multiple/m-p/89019#M754979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(GetSelectedCount(Property)=1,&lt;/P&gt;&lt;P&gt;Property &amp;amp; chr(13) &amp;amp;&lt;/P&gt;&lt;P&gt;if(len(TRIM([Address 1]))&amp;gt;0,[Address 1]&amp;amp;chr(13))&amp;nbsp; &amp;amp;&lt;/P&gt;&lt;P&gt;if(len(TRIM([Address 2]))&amp;gt;0,[Address 2]&amp;amp;chr(13))&amp;nbsp; &amp;amp;&lt;/P&gt;&lt;P&gt;if(len(TRIM([Address 3]))&amp;gt;0,[Address 3]&amp;amp;chr(13))&amp;nbsp; &amp;amp;&lt;/P&gt;&lt;P&gt;if(len(TRIM([Address 4]))&amp;gt;0,[Address 4]&amp;amp;chr(13))&amp;nbsp; &amp;amp;&lt;/P&gt;&lt;P&gt;[Post Code]&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2018 17:25:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-to-format-a-text-box-with-address-details-from-multiple/m-p/89019#M754979</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2018-10-09T17:25:28Z</dc:date>
    </item>
  </channel>
</rss>

