<?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: SAP PDF Hide element in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-pdf-hide-element/m-p/12137189#M1975711</link>
    <description>&lt;P&gt;I guess you need to check the value and your code will be correct. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Hide the element and shift lower elements up
if($.material.value == null)
{
this.presence ="hidden";
}


Hiding only the TEXT INSIDE the element NOT the element itself ,no shifting of other elements

if($.material.value == null)
{
this.presence = "invisible";
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 14 Jan 2020 14:50:53 GMT</pubDate>
    <dc:creator>Nawanandana</dc:creator>
    <dc:date>2020-01-14T14:50:53Z</dc:date>
    <item>
      <title>SAP PDF Hide element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-pdf-hide-element/m-p/12137187#M1975709</link>
      <description>&lt;P&gt;Hi all I have&lt;/P&gt;
  &lt;P&gt;the element like this :&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt; DATA[*].MATERIAL&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;and I want to hide the element&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt; DATA[*].INV_ITM_PRICE &lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;when the material is empty.&lt;/P&gt;
  &lt;P&gt;How do I do it using javascript?&lt;/P&gt;
  &lt;P&gt;I also named the element material and added the following code:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;if($.material == null )
{
this.presence = "hidden";
}&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;does not work .&lt;/P&gt;
  &lt;P&gt;How do I solve this?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 10:38:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-pdf-hide-element/m-p/12137187#M1975709</guid>
      <dc:creator>former_member2492</dc:creator>
      <dc:date>2020-01-14T10:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAP PDF Hide element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-pdf-hide-element/m-p/12137188#M1975710</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try $.presence = "hidden"&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 14:32:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-pdf-hide-element/m-p/12137188#M1975710</guid>
      <dc:creator>RobertVit</dc:creator>
      <dc:date>2020-01-14T14:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAP PDF Hide element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-pdf-hide-element/m-p/12137189#M1975711</link>
      <description>&lt;P&gt;I guess you need to check the value and your code will be correct. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Hide the element and shift lower elements up
if($.material.value == null)
{
this.presence ="hidden";
}


Hiding only the TEXT INSIDE the element NOT the element itself ,no shifting of other elements

if($.material.value == null)
{
this.presence = "invisible";
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Jan 2020 14:50:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-pdf-hide-element/m-p/12137189#M1975711</guid>
      <dc:creator>Nawanandana</dc:creator>
      <dc:date>2020-01-14T14:50:53Z</dc:date>
    </item>
  </channel>
</rss>

