Are the Classification Manager fields searchable in MOdern UI?

Are the Classification Manager fields searchable in MOdern UI?

Anonymous
Not applicable
1,702 Views
6 Replies
Message 1 of 7

Are the Classification Manager fields searchable in MOdern UI?

Anonymous
Not applicable

Hello,

 

I don't know if I am doing something wrong, but I am searching for a value on a field on the Classification Manager, but it is not rendering any results. Is the search not connected to the fields from the Classification Manager?

 

Thanks!

Accepted solutions (1)
1,703 Views
6 Replies
Replies (6)
Message 2 of 7

cgong
Contributor
Contributor

Hi,

 

Unfortunately you're not doing anything wrong. It doesn't appear that Classification Manager Fields are accessible via search.

 

To get around this, we actually push Classification Manager Field data (via an on-edit script) to fields within Item Details (which as you know are searchable).

 

 

Message 3 of 7

Anonymous
Not applicable

Thanks for the prompt response and the suggestion! I would like to try that as well.

 

Do you have any performance issues on Edit or Save?

 

Thanks!

Message 4 of 7

cgong
Contributor
Contributor

You shouldn't see any performance issues with adding this functionality to your on-edit script. But of course, as you add more and more; expect some sort of performance degradation. Nothing too major though.

0 Likes
Message 5 of 7

eric.mcsherry
Participant
Participant
Accepted solution

Here is a script that I have used to work around this issue.  It creates a comma separated list of classification field names and values in the pattern:  

 

PREFIX:035, TOLERANCE:2, PACKAGE:0402, HEIGHT:1, MOUNTING_STYLE:SMT, VOLTAGE_RATING:50, CAPACITANCE:100.  

 

It will work on any classification structure.  You'll just need to create an item details field of type single line text.  In the example below, I've named the field "Classification Values"

 

With this string you can search on one or more classification attributes.  For example, you can search:  PACKAGE:0402 and the search will return all 0402 components.

 

script

------------------------------------

 

function objToString (obj) {
var str = '';
for (var p in obj) {
if (obj.hasOwnProperty(p)) {
if (typeof obj[p] === 'object'){
str += p + ':' + obj[p].displayValue + ', ';
}else{
str += p + ':' + obj[p] + ', ';
}
}
}
return str;
}

 

var classString = objToString(item.classification);

item.CLASSIFICATION_VALUES = classString;

Message 6 of 7

michelle.stone
Autodesk
Autodesk

Eric beat me to it!  I'd written up an article for his method previously: https://knowledge.autodesk.com/support/fusion-lifecycle/troubleshooting/caas/simplecontent/content/s...

 

Michelle



Michelle Stone
Technical Marketing, PDM & PLM
Autodesk, Inc.
0 Likes
Message 7 of 7

Anonymous
Not applicable

I remember when classification manager first came out, it wasn't searchable and for years I did not use it because of this.  I recently came back to it and just gave into extracting the json string and populating item fields to make it searchable.  I used a colon separated string.

 

example.JPG

0 Likes