<?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: Cannot return search results of latest version of WTPart in Windchill</title>
    <link>https://community.ptc.com/t5/Windchill/Cannot-return-search-results-of-latest-version-of-WTPart/m-p/183518#M21835</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only thing I see in the Part (wt.part.WTPart) class is the "Latest Iteration" attribute. I do not see just a "Latest" attribute. Could you describe in more detail whether or not the "Latest" attribute that you are telling me about is available in this class or another class?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Mar 2010 20:08:42 GMT</pubDate>
    <dc:creator>brian_beard</dc:creator>
    <dc:date>2010-03-31T20:08:42Z</dc:date>
    <item>
      <title>Cannot return search results of latest version of WTPart</title>
      <link>https://community.ptc.com/t5/Windchill/Cannot-return-search-results-of-latest-version-of-WTPart/m-p/183516#M21833</link>
      <description>Hello,I have created a query within Query Builder that allows me to put a begin date and end date and for the period, the search results will show me WTParts. There is one problem, however. The search results should only return the latest version of a part.Rather than the search results</description>
      <pubDate>Wed, 02 May 2018 17:35:56 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Cannot-return-search-results-of-latest-version-of-WTPart/m-p/183516#M21833</guid>
      <dc:creator>brian_beard</dc:creator>
      <dc:date>2018-05-02T17:35:56Z</dc:date>
    </item>
    <item>
      <title>Cannot return search results of latest version of WTPart</title>
      <link>https://community.ptc.com/t5/Windchill/Cannot-return-search-results-of-latest-version-of-WTPart/m-p/183517#M21834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Criteria, Latest, value (constant) = 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Mar 2010 20:04:08 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Cannot-return-search-results-of-latest-version-of-WTPart/m-p/183517#M21834</guid>
      <dc:creator>MikeLockwood</dc:creator>
      <dc:date>2010-03-31T20:04:08Z</dc:date>
    </item>
    <item>
      <title>RE: Cannot return search results of latest version of WTPart</title>
      <link>https://community.ptc.com/t5/Windchill/Cannot-return-search-results-of-latest-version-of-WTPart/m-p/183518#M21835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only thing I see in the Part (wt.part.WTPart) class is the "Latest Iteration" attribute. I do not see just a "Latest" attribute. Could you describe in more detail whether or not the "Latest" attribute that you are telling me about is available in this class or another class?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Mar 2010 20:08:42 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Cannot-return-search-results-of-latest-version-of-WTPart/m-p/183518#M21835</guid>
      <dc:creator>brian_beard</dc:creator>
      <dc:date>2010-03-31T20:08:42Z</dc:date>
    </item>
    <item>
      <title>RE: Cannot return search results of latest version of WTPart</title>
      <link>https://community.ptc.com/t5/Windchill/Cannot-return-search-results-of-latest-version-of-WTPart/m-p/183519#M21836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Also, I should mention that I am currently leveraging the "Latest Iteration" attribute which will return results of the latest iteration of a part as the name implies. The problem with this is that the same part could have multiple rows or instances within the search. For example, part number 0001 may have search results 3 times, one for the most current iteration of each revision. See below. &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt;&amp;lt;u&amp;gt;Number | Version &amp;lt;/u&amp;gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt;0001 | A.4 &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt;0001 |B.5 &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt;0001 |C.3 &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt;The only thing that should show up in this case would be part number 0001 version C.3 because it is the most current version. &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt;0001 | A.4&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 19:34:00 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Cannot-return-search-results-of-latest-version-of-WTPart/m-p/183519#M21836</guid>
      <dc:creator>brian_beard</dc:creator>
      <dc:date>2010-04-01T19:34:00Z</dc:date>
    </item>
    <item>
      <title>RE: Cannot return search results of latest version of WTPart</title>
      <link>https://community.ptc.com/t5/Windchill/Cannot-return-search-results-of-latest-version-of-WTPart/m-p/183520#M21837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please disregard the extra "0001 |A.4" at the bottom of my last reply. That was a mistake.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 19:35:50 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Cannot-return-search-results-of-latest-version-of-WTPart/m-p/183520#M21837</guid>
      <dc:creator>brian_beard</dc:creator>
      <dc:date>2010-04-01T19:35:50Z</dc:date>
    </item>
    <item>
      <title>RE: Cannot return search results of latest version of WTPart</title>
      <link>https://community.ptc.com/t5/Windchill/Cannot-return-search-results-of-latest-version-of-WTPart/m-p/183521#M21838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most of our part reports require to list only the part(s) with latest iteration on its latest revision.&lt;/P&gt;&lt;P&gt;I haven't found a better way to find latest revision than listing the part with the maximum value of versionSortID against the same master.&lt;/P&gt;&lt;P&gt;I have attached my sample report on how we query it currently. I would like to see if other users have better way to achieve this goal. Thanks.&lt;BR /&gt;&lt;BR /&gt;In Reply to Brian Beard: &lt;/P&gt;&lt;BLOCKQUOTE&gt;Please disregard the extra "0001 |A.4" at the bottom of my last reply. That was a mistake.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Apr 2010 16:02:58 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Cannot-return-search-results-of-latest-version-of-WTPart/m-p/183521#M21838</guid>
      <dc:creator>LiuLiang</dc:creator>
      <dc:date>2010-04-02T16:02:58Z</dc:date>
    </item>
    <item>
      <title>RE: Cannot return search results of latest version of WTPart</title>
      <link>https://community.ptc.com/t5/Windchill/Cannot-return-search-results-of-latest-version-of-WTPart/m-p/183522#M21839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;That solutionlooks better than mine.&lt;/P&gt;&lt;P&gt;I was doing a NOT EXISTS other where other.versionSortID&amp;gt;current.versionSortID&lt;/P&gt;&lt;P&gt;I guess I'm going to use the maximum function in the future.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Reply to Liu Liang: &lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Most of our part reports require to list only the part(s) with latest iteration on its latest revision.&lt;/P&gt;&lt;P&gt;I haven't found a better way to find latest revision than listing the part with the maximum value of versionSortID against the same master.&lt;/P&gt;&lt;P&gt;I have attached my sample report on how we query it currently. I would like to see if other users have better way to achieve this goal. Thanks.&lt;BR /&gt;&lt;BR /&gt;In Reply to Brian Beard: &lt;/P&gt;&lt;BLOCKQUOTE&gt;Please disregard the extra "0001 |A.4" at the bottom of my last reply. That was a mistake.&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Apr 2010 08:49:57 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Cannot-return-search-results-of-latest-version-of-WTPart/m-p/183522#M21839</guid>
      <dc:creator>VincentQuesnoit</dc:creator>
      <dc:date>2010-04-08T08:49:57Z</dc:date>
    </item>
    <item>
      <title>RE: Cannot return search results of latest version of WTPart</title>
      <link>https://community.ptc.com/t5/Windchill/Cannot-return-search-results-of-latest-version-of-WTPart/m-p/183523#M21840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the future, here is some information if anyone runs into the situation we have. Since the Design view of parts in classified and not our other views, we needed to show the latest version whereview = "Design". I built upon the query that was posted so I came up with something like this that returns the latest version of the design view of a part.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;u&amp;gt;Criteria&amp;lt;/u&amp;gt;:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Part (wt.part.WTPart).versionInfo.identifier.versionSortId&lt;/P&gt;&lt;P&gt;IN&lt;/P&gt;&lt;P&gt;Sub-select&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;u&amp;gt;Sub-select&amp;lt;/u&amp;gt;:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- From: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Part (wt.part.WTPart)&lt;UL&gt;&lt;LI&gt;Alias: Part (wt.part.WTPart) 1&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;View&lt;UL&gt;&lt;LI&gt;Alias: View 1&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;- Join:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Part (wt.part.WTPart) 1 to View 1&lt;/LI&gt;&lt;LI&gt;Association: View&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;- Select:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;MAX function of Part (wt.part.WTPart) 1.versionInfo.identifier.versionSortId&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;- Criteria:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;AND&lt;/LI&gt;&lt;LI&gt;View 1.Name = Design&lt;/LI&gt;&lt;LI&gt;AND&lt;/LI&gt;&lt;LI&gt;Part (wt.part.WTPart) &lt;STRONG&gt;1&lt;/STRONG&gt;.Master Reference.Object Id.Id = Part (wt.part.WTPart).Master Reference.Object Id.Id&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 18:46:41 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Cannot-return-search-results-of-latest-version-of-WTPart/m-p/183523#M21840</guid>
      <dc:creator>brian_beard</dc:creator>
      <dc:date>2010-04-22T18:46:41Z</dc:date>
    </item>
  </channel>
</rss>

