<?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>Question Re: Adobe Forms:Page hide/visible dynamically in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/adobe-forms-page-hide-visible-dynamically/qaa-p/12046280#M4501895</link>
    <description>&lt;P&gt;Hi Ahamed, &lt;BR /&gt;at first it is important to note the difference between static and dynamic pdfs.&lt;/P&gt;&lt;P&gt;1. Static&lt;BR /&gt;Are rendered by the ADS, this means that the scripting (server + client) are executed by ADS before outputting the pdf&lt;/P&gt;&lt;P&gt;2. Dynamic &lt;BR /&gt;They are only supported by Adobe Reader. The scripting is executed by the Adobe Reader when opening the PDF. &lt;BR /&gt;&lt;BR /&gt;Please at first check if you really need dynamic pdfs, because it limits the end-user to adobe reader only.&lt;BR /&gt;&lt;BR /&gt;Now for the question at hand.&lt;BR /&gt;In your initialization script of the page, you can access the data bound to a page via &lt;STRONG&gt;this.dataNode&lt;/STRONG&gt;: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if (this.dataNode.id.value === "bk102") {
	this.presence = "hidden"
}
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In my example attached to this answer, I use the microsoft sample xml data set (&lt;A href="https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ms762271%28v%3Dvs.85%29"&gt;https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ms762271(v%3Dvs.85)&lt;/A&gt;)&lt;BR /&gt;&lt;BR /&gt;Each page is bound to one book node. If a page contains the book with the id bk102, it is hidden from the final output. Of course you need to change the scripting according to your data.&lt;BR /&gt;&lt;BR /&gt;Instead of accessing the data node directly you could also bind the data to a hidden field and just read the value from this field in the scripting.&lt;/P&gt;&lt;P&gt;IMPORTANT!!!&lt;BR /&gt;I was unable to attach the designer files directly to this answer, so please go to this github gist and press download zip on the top toolbar: &lt;A href="https://gist.github.com/Bomberus/d71419286e977e49bf13c13cc93be283"&gt;https://gist.github.com/Bomberus/d71419286e977e49bf13c13cc93be283&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 22 Dec 2019 02:01:17 GMT</pubDate>
    <dc:creator>PascalBremer</dc:creator>
    <dc:date>2019-12-22T02:01:17Z</dc:date>
    <item>
      <title>Adobe Forms:Page hide/visible dynamically</title>
      <link>https://community.sap.com/t5/technology-q-a/adobe-forms-page-hide-visible-dynamically/qaq-p/12046279</link>
      <description>&lt;P&gt;Hi Guys.I have an urgent requirement.Pls help on this.I need to hide/visible a page dynamically based on the text content inside the page is blank or not..I have wrapped the page into the subform,then in the initialize event i wrote the below code,&lt;/P&gt;
  &lt;P&gt;if(data.pagename.fieldname.rawValue===''"")&lt;/P&gt;
  &lt;P&gt;{&lt;/P&gt;
  &lt;P&gt;data.subformname.presence="hidden"&lt;/P&gt;
  &lt;P&gt;}&lt;/P&gt;
  &lt;P&gt;it is not working.&lt;/P&gt;
  &lt;P&gt;The dynamic &amp;amp; fillable flag is also set in the form parameters.&lt;/P&gt;
  &lt;P&gt;i tried with formready and docready event also ,it is not working.&lt;/P&gt;
  &lt;P&gt;Please suggest any solutions..&lt;/P&gt;</description>
      <pubDate>Sat, 21 Dec 2019 19:26:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/adobe-forms-page-hide-visible-dynamically/qaq-p/12046279</guid>
      <dc:creator>ahamed_kaleem</dc:creator>
      <dc:date>2019-12-21T19:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Adobe Forms:Page hide/visible dynamically</title>
      <link>https://community.sap.com/t5/technology-q-a/adobe-forms-page-hide-visible-dynamically/qaa-p/12046280#M4501895</link>
      <description>&lt;P&gt;Hi Ahamed, &lt;BR /&gt;at first it is important to note the difference between static and dynamic pdfs.&lt;/P&gt;&lt;P&gt;1. Static&lt;BR /&gt;Are rendered by the ADS, this means that the scripting (server + client) are executed by ADS before outputting the pdf&lt;/P&gt;&lt;P&gt;2. Dynamic &lt;BR /&gt;They are only supported by Adobe Reader. The scripting is executed by the Adobe Reader when opening the PDF. &lt;BR /&gt;&lt;BR /&gt;Please at first check if you really need dynamic pdfs, because it limits the end-user to adobe reader only.&lt;BR /&gt;&lt;BR /&gt;Now for the question at hand.&lt;BR /&gt;In your initialization script of the page, you can access the data bound to a page via &lt;STRONG&gt;this.dataNode&lt;/STRONG&gt;: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if (this.dataNode.id.value === "bk102") {
	this.presence = "hidden"
}
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In my example attached to this answer, I use the microsoft sample xml data set (&lt;A href="https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ms762271%28v%3Dvs.85%29"&gt;https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ms762271(v%3Dvs.85)&lt;/A&gt;)&lt;BR /&gt;&lt;BR /&gt;Each page is bound to one book node. If a page contains the book with the id bk102, it is hidden from the final output. Of course you need to change the scripting according to your data.&lt;BR /&gt;&lt;BR /&gt;Instead of accessing the data node directly you could also bind the data to a hidden field and just read the value from this field in the scripting.&lt;/P&gt;&lt;P&gt;IMPORTANT!!!&lt;BR /&gt;I was unable to attach the designer files directly to this answer, so please go to this github gist and press download zip on the top toolbar: &lt;A href="https://gist.github.com/Bomberus/d71419286e977e49bf13c13cc93be283"&gt;https://gist.github.com/Bomberus/d71419286e977e49bf13c13cc93be283&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Dec 2019 02:01:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/adobe-forms-page-hide-visible-dynamically/qaa-p/12046280#M4501895</guid>
      <dc:creator>PascalBremer</dc:creator>
      <dc:date>2019-12-22T02:01:17Z</dc:date>
    </item>
  </channel>
</rss>

