Last updated on AUGUST 21, 2016
Applies to:Oracle Agile PLM Framework - Version 126.96.36.199 to 188.8.131.52 [Release 184.108.40.206]
Information in this document applies to any platform.
When attempting to run an SDK or Process Extension (PX) that runs different queries and returns the number of rows returned it does not show the same results compared to if the user ran them manually when the user's preference setting for 'Include Inactive List Values' is set to No.
What is working:
Works correctly if calling a saved global search via SDK/PX. Also, if the same user runs the same search manually in the UI.
The issue can be reproduced at will with the following steps:
1. In Agile, go to the test users who have sufficient privileges to run these searches and go to their Preferences tab and set 'Include Inactive List Values' to No.
2. Create an SDK/PX that runs different types of queries similar to the below and print out the rows returned:
A. String sqlselect = "SELECT " +
"[Title Block.Number] " +
"FROM " +
"[Parts] " +
"WHERE " +
"[Title Block.Number] starts with 'P'";
B. IQuery query = (IQuery)session.getObject(IQuery.OBJECT_TYPE,"/Global Searches/P Items");
3. Run the SDK/PX and see that the output for A is 0 which is incorrect and B returns the correct results.
4. If the user then tries to run the search manually it returns the correct amount of rows.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms