<?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: Update EPMDocument IBA through JAVA in Windchill Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Update-EPMDocument-IBA-through-JAVA/m-p/965202#M8488</link>
    <description>&lt;P&gt;Hi &lt;SPAN style="color:var(--ck-color-mention-text);"&gt;&lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/687304"&gt;@AK_10639313&lt;/a&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;Thank you for your question.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Your &lt;A href="https://community.ptc.com/t5/Windchill-Customization/Update-EPMDocument-IBA-through-JAVA/m-p/964871#M8478" target="_blank"&gt;post &lt;/A&gt;appears well documented but has not yet received any response. I am replying to raise awareness. Hopefully, another community member will be able to help.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vivek N&lt;BR /&gt;Community Moderation Team.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Aug 2024 09:42:47 GMT</pubDate>
    <dc:creator>vnamboodheri</dc:creator>
    <dc:date>2024-08-06T09:42:47Z</dc:date>
    <item>
      <title>Update EPMDocument IBA through JAVA</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Update-EPMDocument-IBA-through-JAVA/m-p/964871#M8478</link>
      <description>&lt;P&gt;Good evening,&lt;BR /&gt;I'm having trouble understanding the process of updating an IBA of an EPMDocument.&lt;BR /&gt;I'm trying as it follows:&lt;/P&gt;&lt;P&gt;attributes.put(attributeName, attributeValue);&lt;BR /&gt;PersistableAdapter epmObj = new PersistableAdapter(epmDoc, null, null, new UpdateOperationIdentifier());&lt;BR /&gt;epmObj.load(attributeName);&lt;BR /&gt;epmObj.set(attributeName, attributeValue);&lt;BR /&gt;EPMDocument obj = (EPMDocument) epmObj.apply();&lt;BR /&gt;PersistenceHelper.manager.modify(obj);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I didn't get any changes on the attribute itself. I'm guessing that in this case I need to checkout the EPM and do the changes on a working copy of it to persist the changes.&lt;BR /&gt;However reading the documentation and other topics I haven't found a clear flow to check-out--&amp;gt; set the attribute and then check-in the object. Can someone give me a hand on this if possible? Thank you kindly for your support&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 16:20:00 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Update-EPMDocument-IBA-through-JAVA/m-p/964871#M8478</guid>
      <dc:creator>AK_10639313</dc:creator>
      <dc:date>2024-08-02T16:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Update EPMDocument IBA through JAVA</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Update-EPMDocument-IBA-through-JAVA/m-p/965202#M8488</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="color:var(--ck-color-mention-text);"&gt;&lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/687304"&gt;@AK_10639313&lt;/a&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;Thank you for your question.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Your &lt;A href="https://community.ptc.com/t5/Windchill-Customization/Update-EPMDocument-IBA-through-JAVA/m-p/964871#M8478" target="_blank"&gt;post &lt;/A&gt;appears well documented but has not yet received any response. I am replying to raise awareness. Hopefully, another community member will be able to help.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vivek N&lt;BR /&gt;Community Moderation Team.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 09:42:47 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Update-EPMDocument-IBA-through-JAVA/m-p/965202#M8488</guid>
      <dc:creator>vnamboodheri</dc:creator>
      <dc:date>2024-08-06T09:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Update EPMDocument IBA through JAVA</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Update-EPMDocument-IBA-through-JAVA/m-p/965790#M8494</link>
      <description>&lt;P&gt;You are correct, you need to check out the object first, make the modifications, then check in. I think you need something like the below...&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;doc = (EPMDocument) WorkInProgressHelper.service.checkout(doc, WorkInProgressHelper.service.getCheckoutFolder(), null).getWorkingCopy();
PersistableAdapter pa = new PersistableAdapter(doc, null, Locale.getDefault(), null);
pa.load(attributeName);
pa.set(attributeName, attributeValue);
doc = (EPMDocument) pa.apply();
doc = (EPMDocument) PersistenceHelper.manager.modify(doc);
doc = (EPMDocument) WorkInProgressHelper.service.checkin(doc, "IBA Updated");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Graham&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 23:39:23 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Update-EPMDocument-IBA-through-JAVA/m-p/965790#M8494</guid>
      <dc:creator>GrahamV</dc:creator>
      <dc:date>2024-08-08T23:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Update EPMDocument IBA through JAVA</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Update-EPMDocument-IBA-through-JAVA/m-p/966037#M8502</link>
      <description>&lt;P&gt;Hello &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/687304"&gt;@AK_10639313&lt;/a&gt;&lt;/SPAN&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you have a &lt;A href="https://community.ptc.com/t5/Windchill-Customization/Update-EPMDocument-IBA-through-JAVA/m-p/965790#M8494" target="_blank"&gt;response&lt;/A&gt; from a community member. If it helped to answer your question please mark the reply as the Accepted Solution.&amp;nbsp;&lt;BR /&gt;Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Vivek N.&lt;BR /&gt;Community Moderation Team.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 04:37:37 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Update-EPMDocument-IBA-through-JAVA/m-p/966037#M8502</guid>
      <dc:creator>vnamboodheri</dc:creator>
      <dc:date>2024-08-12T04:37:37Z</dc:date>
    </item>
  </channel>
</rss>

