<?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: AttachmentExistsIndicator  not working as expected in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/attachmentexistsindicator-not-working-as-expected/qaa-p/12703302#M4766734</link>
    <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;fceylan_hs&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;You need to check first if the &lt;EM&gt;AttachmentExistsIndicator&lt;/EM&gt;  field is empty or not. For that, you can be using IsInitial() function.&lt;/P&gt;&lt;P&gt;Then, for you case, if it is not empty, the IF logic will be executed.&lt;/P&gt;&lt;P&gt;So you can try: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if(!this.AttachmentFolder.AttachmentExistsIndicator.IsInitial())&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 12 May 2023 19:39:09 GMT</pubDate>
    <dc:creator>ThiagoSarmento</dc:creator>
    <dc:date>2023-05-12T19:39:09Z</dc:date>
    <item>
      <title>AttachmentExistsIndicator  not working as expected</title>
      <link>https://community.sap.com/t5/technology-q-a/attachmentexistsindicator-not-working-as-expected/qaq-p/12703301</link>
      <description>&lt;P&gt;Hi experts, &lt;/P&gt;
  &lt;P&gt;On Cloud Applications Studio, I would like to check if there's any attachment added on the specific node. For that purpose I think need to use AttachmentExistsIndicator property &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;if(this.AttachmentFolder.AttachmentExistsIndicator)&lt;BR /&gt;{&lt;BR /&gt;// logic goes here&lt;BR /&gt;}&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;The problem is; if attachment tab containst any document it works fine. But if there no document exist on attachments tab, &lt;EM&gt;this.AttachmentFolder.AttachmentExistsIndicator&lt;/EM&gt; throws error. Is this system bug or expected behaviour?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 26 Mar 2023 13:18:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/attachmentexistsindicator-not-working-as-expected/qaq-p/12703301</guid>
      <dc:creator>fceylan_hs</dc:creator>
      <dc:date>2023-03-26T13:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: AttachmentExistsIndicator  not working as expected</title>
      <link>https://community.sap.com/t5/technology-q-a/attachmentexistsindicator-not-working-as-expected/qaa-p/12703302#M4766734</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;fceylan_hs&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;You need to check first if the &lt;EM&gt;AttachmentExistsIndicator&lt;/EM&gt;  field is empty or not. For that, you can be using IsInitial() function.&lt;/P&gt;&lt;P&gt;Then, for you case, if it is not empty, the IF logic will be executed.&lt;/P&gt;&lt;P&gt;So you can try: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if(!this.AttachmentFolder.AttachmentExistsIndicator.IsInitial())&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 May 2023 19:39:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/attachmentexistsindicator-not-working-as-expected/qaa-p/12703302#M4766734</guid>
      <dc:creator>ThiagoSarmento</dc:creator>
      <dc:date>2023-05-12T19:39:09Z</dc:date>
    </item>
  </channel>
</rss>

