Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
I would like to see if anyone has a query builder reportthat reports the latest rev with user defined attributes (IBAs).
I can either report the latest iteration on the latest rev without any IBA columns or latest iteration on every revision with IBA columns.
When I do both (latest rev + IBAs), query builder gives me error.
I have tried this on Windchill 8.0, 9.0 and 9.1 in the past and no luck of success so far.
If anyone can point me to a correct query builder report example that does this, we can use query builder to quickly build our reports instead of going through other routes.
Thank you very much.
Liu
In Reply to Mike Lockwood:
Almost hopeless to do so directly in the database; should use query builder, not sql.
Getting Query Builder to filter on latest Iteration (constant=1) is straight forward.
Getting Query Builder to filter on latest Revision though is tricky - need to use subselect and use max(Revisions).
Sample qml attached that uses last Rev (import to Report Builder). I put in 6 different tech support calls to find out how to do this and finally got someone who knew - there should be but isn't an example of it query builder Help.
Given this base, simply add the attribute of interest to the criteria and make it a parameter, and expose the report to users.