<?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: How can set serial effectivity with context and serial number for any child through API in Windchill Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-can-set-serial-effectivity-with-context-and-serial-number/m-p/950114#M8045</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/305850"&gt;@Per&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for sharing solution btw i used below code and its working .have you any idea how to get all service effectivity from parts as stored in Manage applicability.&lt;/P&gt;&lt;P&gt;ServiceEffectivity se = ServiceEffectivity.newServiceEffectivity(part);&lt;BR /&gt;se.setEffContext((EffContext) parentpart.getMaster());&lt;BR /&gt;//se.setBeginSerialNumberRange(String.valueOf(startRange));&lt;BR /&gt;//se.setEndSerialNumberRange(String.valueOf(endRange));&lt;BR /&gt;se.setEffectivityType("serialNumber");&lt;BR /&gt;//WTPart p=(WTPart)se.getEffContext();&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PersistenceHelper.manager.store(se);&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2024 11:11:55 GMT</pubDate>
    <dc:creator>AA_9841156</dc:creator>
    <dc:date>2024-05-16T11:11:55Z</dc:date>
    <item>
      <title>How can set serial effectivity with context and serial number for any child through API</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-can-set-serial-effectivity-with-context-and-serial-number/m-p/949844#M8030</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/241117"&gt;@HelesicPetr&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;How can set serial effectivity with context and serial number for any child through API&lt;/P&gt;
&lt;P&gt;Reference topic -&amp;nbsp;&lt;A href="https://community.ptc.com/t5/Windchill/API-for-setting-effectivity/m-p/294903#M34550" target="_blank"&gt;https://community.ptc.com/t5/Windchill/API-for-setting-effectivity/m-p/294903#M34550&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 12:02:58 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-can-set-serial-effectivity-with-context-and-serial-number/m-p/949844#M8030</guid>
      <dc:creator>AA_9841156</dc:creator>
      <dc:date>2024-05-15T12:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can set serial effectivity with context and serial number for any child through API</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-can-set-serial-effectivity-with-context-and-serial-number/m-p/949860#M8031</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/453044"&gt;@AA_9841156&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try the serialEffectivity class&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;WTSerialNumberedEffectivity eff = WTSerialNumberedEffectivity.newWTSerialNumberedEffectivity();
//... code to define all to effectivity

// assign the effectivity to object (WTPart/EPMDocument/WTDOcument/others objects)
EffectivityHelper.setEffectivityTarget(eff,wtpart);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PetrH&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 12:32:09 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-can-set-serial-effectivity-with-context-and-serial-number/m-p/949860#M8031</guid>
      <dc:creator>HelesicPetr</dc:creator>
      <dc:date>2024-05-15T12:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can set serial effectivity with context and serial number for any child through API</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-can-set-serial-effectivity-with-context-and-serial-number/m-p/950114#M8045</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/305850"&gt;@Per&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for sharing solution btw i used below code and its working .have you any idea how to get all service effectivity from parts as stored in Manage applicability.&lt;/P&gt;&lt;P&gt;ServiceEffectivity se = ServiceEffectivity.newServiceEffectivity(part);&lt;BR /&gt;se.setEffContext((EffContext) parentpart.getMaster());&lt;BR /&gt;//se.setBeginSerialNumberRange(String.valueOf(startRange));&lt;BR /&gt;//se.setEndSerialNumberRange(String.valueOf(endRange));&lt;BR /&gt;se.setEffectivityType("serialNumber");&lt;BR /&gt;//WTPart p=(WTPart)se.getEffContext();&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PersistenceHelper.manager.store(se);&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 11:11:55 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-can-set-serial-effectivity-with-context-and-serial-number/m-p/950114#M8045</guid>
      <dc:creator>AA_9841156</dc:creator>
      <dc:date>2024-05-16T11:11:55Z</dc:date>
    </item>
  </channel>
</rss>

