<?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 I get all WTParts in Windchill? in Windchill Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-can-I-get-all-WTParts-in-Windchill/m-p/52172#M7293</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adrey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use the sql query to get all the parts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select distinct wtpartmaster.name, wtpartmaster.WTPARTNUMBER, wtpart.VERSIONIDA2VERSIONINFO, wtpart.ITERATIONIDA2ITERATIONINFO,&lt;/P&gt;&lt;P&gt;wtpart.LATESTITERATIONINFO&lt;/P&gt;&lt;P&gt;from wtpartmaster,wtpart&lt;/P&gt;&lt;P&gt;where wtpartmaster.IDA2A2 = wtpart.IDA3MASTERREFERENCE and wtpart.LATESTITERATIONINFO = 1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jun 2016 11:44:19 GMT</pubDate>
    <dc:creator>adev-2</dc:creator>
    <dc:date>2016-06-29T11:44:19Z</dc:date>
    <item>
      <title>How can I get all WTParts in Windchill?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-can-I-get-all-WTParts-in-Windchill/m-p/52167#M7288</link>
      <description>Hello, I need to get all WTParts, that contains in Windchill for one special report. How can I do it?Thanks.</description>
      <pubDate>Fri, 15 Mar 2024 15:05:01 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-can-I-get-all-WTParts-in-Windchill/m-p/52167#M7288</guid>
      <dc:creator>atemnikov</dc:creator>
      <dc:date>2024-03-15T15:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get all WTParts in Windchill?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-can-I-get-all-WTParts-in-Windchill/m-p/52168#M7289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are looking for a report you can use report manager or directly query in database. However, if you are looking to query them from Java, you can use QuerySpec, refer to an example below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14613359973867140 jive_text_macro" jivemacro_uid="_14613359973867140"&gt;
&lt;P&gt;wt.query.QuerySpec qs=new wt.query.QuerySpec(wt.part.WTPart.class);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; wt.fc.QueryResult qr = wt.fc.PersistenceHelper.manager.find(qs);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; while (qr.hasMoreElements()) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; wt.part.WTPart object = (wt.part.WTPart) qr.nextElement();&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhushan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2016 14:40:18 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-can-I-get-all-WTParts-in-Windchill/m-p/52168#M7289</guid>
      <dc:creator>BhushanNehe</dc:creator>
      <dc:date>2016-04-22T14:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get all WTParts in Windchill?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-can-I-get-all-WTParts-in-Windchill/m-p/52169#M7290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following example builds a query for part numbers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QuerySpec qs = new QuerySpec();&lt;/P&gt;&lt;P&gt;int classIndex = qs.appendClassList(wt.part.WTPart.class, false);&lt;/P&gt;&lt;P&gt;ClassAttribute ca = new ClassAttribute(&lt;/P&gt;&lt;P&gt;wt.part.WTPartclass, wt.part.WTPart.NUMBER);&lt;/P&gt;&lt;P&gt;qs.appendSelect(ca, new int[] { classIndex }, false);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that when the WTPart class is appended to the query, the selectable&lt;/P&gt;&lt;P&gt;parameter is false. The full object is not returned; only the number column is&lt;/P&gt;&lt;P&gt;returned.&lt;/P&gt;&lt;P&gt;Results are still returned in the QueryResult object. Each element of the&lt;/P&gt;&lt;P&gt;QueryResult corresponds to a row and is an Object array (that is, Object[]).&lt;/P&gt;&lt;P&gt;In this example, the number column is at index 0 for each element. The actual&lt;/P&gt;&lt;P&gt;Java type for each result is based on the table column and the JDBC SQL-to-Java&lt;/P&gt;&lt;P&gt;type mapping.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 16:35:28 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-can-I-get-all-WTParts-in-Windchill/m-p/52169#M7290</guid>
      <dc:creator>asingh</dc:creator>
      <dc:date>2016-04-26T16:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get all WTParts in Windchill?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-can-I-get-all-WTParts-in-Windchill/m-p/52170#M7291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recommend to use &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Report Management utility (location: [site] &amp;gt; [utility] &amp;gt; [Report Management])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;For your reference, I attached sql file (i.e., part.qml).&amp;nbsp; I hope that you could make a report for part.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Please, let me know if you have any question. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;IMG __jive_id="100870" alt="report.png" class="jive-image image-1" src="https://community.ptc.com/legacyfs/online/100870_report.png" style="height: 336px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 06:05:33 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-can-I-get-all-WTParts-in-Windchill/m-p/52170#M7291</guid>
      <dc:creator>Cat</dc:creator>
      <dc:date>2016-04-27T06:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get all WTParts in Windchill?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-can-I-get-all-WTParts-in-Windchill/m-p/52171#M7292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you will use Report Manager, I suggest you to join this group &lt;A href="https://www.ptcusercommunity.com/group/1071"&gt;Reporting&lt;/A&gt; and to read also this article I wrote &lt;A href="https://www.ptcusercommunity.com/docs/DOC-6348"&gt;Resource for reporting&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In it you can find lots of report ready to use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 07:23:51 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-can-I-get-all-WTParts-in-Windchill/m-p/52171#M7292</guid>
      <dc:creator>Marco_Tosin</dc:creator>
      <dc:date>2016-04-27T07:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get all WTParts in Windchill?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-can-I-get-all-WTParts-in-Windchill/m-p/52172#M7293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adrey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use the sql query to get all the parts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select distinct wtpartmaster.name, wtpartmaster.WTPARTNUMBER, wtpart.VERSIONIDA2VERSIONINFO, wtpart.ITERATIONIDA2ITERATIONINFO,&lt;/P&gt;&lt;P&gt;wtpart.LATESTITERATIONINFO&lt;/P&gt;&lt;P&gt;from wtpartmaster,wtpart&lt;/P&gt;&lt;P&gt;where wtpartmaster.IDA2A2 = wtpart.IDA3MASTERREFERENCE and wtpart.LATESTITERATIONINFO = 1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2016 11:44:19 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-can-I-get-all-WTParts-in-Windchill/m-p/52172#M7293</guid>
      <dc:creator>adev-2</dc:creator>
      <dc:date>2016-06-29T11:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get all WTParts in Windchill?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-can-I-get-all-WTParts-in-Windchill/m-p/52173#M7294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want you can fetch all the part using info*engine Search-Object webject as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2016 16:05:49 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-can-I-get-all-WTParts-in-Windchill/m-p/52173#M7294</guid>
      <dc:creator>KD</dc:creator>
      <dc:date>2016-06-29T16:05:49Z</dc:date>
    </item>
  </channel>
</rss>

