Forum Discussion
Hi Duygu
Yes, it is possible using filter list and we have implemented similar things earlier.
Thank You
GK
may I ask how?
thanks
Duygu
- Gopikrishnan7 years agoIdeator I
Hi Duygu
Step 1: Create a list name Subclass
Step 2: In Filter Value tab in Subclass list, add label, name and filter value (Example : Name: Resistor Subclass Label Resistor Subclass Filter Value : Resistor)
Step 3: Create a property named Subclass in Part item type with data type Filter List. Select data source as Subclass list and Pattern as Classification
Step 4: Save, unlock and close the Item Type
Step 5: Open Part form and add the Subclass field
Step 6: Save, unlock and close the form
If you want to use different data source other than classification, then you need to create a property (in this case, component with data source list and give it as pattern for subclass)
Thanks
GK
- dkahraman7 years agoIdeator I
thank you very much,
I have done the same thing before but it did not work here. The list does not come to the subclass field in the Part instance. I don't know why.
Duygu
- christopher_gillis7 years agoNew Member
Hi Duygu,
I believe you're seeing is that you're using only the name of the child sub-class as your Filter value in the list. The actual value of the classification of an item is a fully-qualified path down the classification structure.
For example, if we look at the CAD ItemType, it has a default classification structure of:
I was able to reproduce the behavior you're seeing by creating a filter list against the classification property with filtered values like the image below.
With these filters, my filtered list was not being populated with any values even when I was viewing a CAD with a classification of Part or Drawing. The issue here is the value of the classification field in the database for these CAD items is actually Mechanical/Part, Mechanical/Drawing, or Mechanical/Assembly.
If you update our filter list to include this fully-qualified classification like the updated image below, you should notice that your list is populated with the values you expect.
Chris
Christopher Gillis
Aras Labs Software Engineer