cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Advanced Searching

TomU
23-Emerald IV

Advanced Searching

There seems to be some functionality lacking from the advanced search tool. If you can offer any suggestions on how to set up the search tool for any of the following searches, please let me know. This is 10.2 M020. Thanks!

  • All objects checked out by anyone in a particular context.
    • Currenly I can search by a single user but I don't see anyway to wildcard the name.

107.PNG

  • Objects based on status (new, checked in, checked out)
    • The results can currenly be sorted by this status, but I'd like to search directly with it instead.

  • The latest iteration of each revision, except the latest.
    • Should be something like this:

108.PNG

    • Or maybe like this:

109.PNG

    • But these both only return the latest revision.
8 REPLIES 8
ehorn
14-Alexandrite
(To:TomU)

For the latest Iteration of each object you would need All revisions and the lastest iteration. 2014-09-22 17-11-30_Search Results.jpg

For example this would return:

11000 A.15

11000 B.45

11000 C.2

etc...

You cannot exclude the latest Revision though. I dont believe the search tool is that advanced. You might need to do a report for that. Query Builder reports are more suited for those types of analysis.

TomU
23-Emerald IV
(To:ehorn)

Thanks Eric. That's what I'm currently using, but I'm attempting to do some administrative things to the last iteration of all revisions, except the latest.

Is there a way to feed the results from query builder back into search in order to do some action on the result set?

ehorn
14-Alexandrite
(To:TomU)

I haven't really done much in the way of exporting query builder report to put back into a search. Now we have done a trick before in Excel to take a column of results and put them into a row based result, then put that into something like wordpad, then replace the tabs with a semicolon and use that for the search result (e.g. pn1;pn2;pn3;pn4;...)

In any regards it still makes getting long search strings difficult.

Certainly something that still needs additional enhancements to help improve.

Marco_Tosin
21-Topaz I
(To:ehorn)

Speaking of query builder, in the community there is a dedicated group http://communities.ptc.com/groups/reporting.

Here I wrote a document that collect some useful resource I found in a couple of year from many users in the community, the PTC/User and PTC TS.

I think you can vote up also this two ideas.

http://communities.ptc.com/ideas/4634

http://communities.ptc.com/ideas/4659

Marco

Marco
TomU
23-Emerald IV
(To:TomU)

So much for search number 3 (all revs except the latest).

120.PNG

"Gives wrong result", but "Works to Product Specifications."

Of course, no plans to fix either.

121.PNG

If you're interested, the SPR is 2103349 and article is CS38322.

ScottMorris
17-Peridot
(To:TomU)

Tom,

I just had a need to do the same thing, find all the checked out objects, but Windchill Search only allows the selection of a single user. I can use a report to get all the information, but its much harder to take an action on items in a report compared to items in Search Results. Did you ever submit a product Idea for this? It would be really handy to have a way to search for objects that are "Checked Out" regardless of by who and to add the Checked Out By column to the search results. 

I have not tried using a report in search, but maybe that's the current way to address this deficiency.

TomU
23-Emerald IV
(To:ScottMorris)

@ScottMorris,

No, I didn't create a product idea.  PTC can't even get 'latest version' searches working correctly (after 11 years and 207 votes).  I just go straight to the database now.  It's pretty easy to construct an SQL query to get anything I need.  Of course that only works for those who have direct access to the database...

@TomU 

 

As for the search criteria for Revision = Latest or NOT= Latest,  I have to agree that it does not seem to work.

I think the problem is that while latest iteration (true or false) is stored in the dB latest revision is not.

Interestingly enough the display attribute "Latest Revision" works correctly.

 

As is the case most of the time, there is a work around for this and yes, it does require some coding.  I won't get into details here unless you're interested.  Below is the input and output.  Seems to work.

d_graham_1-1628460638380.png

 

d_graham_0-1628460482820.png

 

 

As for searching by checked out, checked in, etc.

See example below. I'm search for any checked out WTParts.

 

Something like this would allow you to find all checked out EPMDocument from Advanced Search without using Checked Out By

 

d_graham_0-1628281162136.png

 

In the example I checked out two WTParts.

Below is the search result.

Note: Checked Out By has also been added to the search results table display.

 

d_graham_0-1628311013443.png

 

 

David

Announcements


Top Tags