Forum Discussion

programmerjp's avatar
programmerjp
Ideator I
5 years ago
Solved

Only alow to select Part "Assembly" instead of all Parts like "Component", "Assembly", "Material",...

Hello everyone,

i am new to Aras Innovator (I am using Version 12.0 SP9 Build: 24090).

I have created several Parts (Components and Assemblys) and a new ItemType "Test". I have modified the "View" of the ItemType "Test" to select different Parts. Like this:

Now i want to modify the selection so that it is only possible to select Parts with the Type "Assembly". Something like this:

But the "normal" user shouldn't be allowed to select a Component and only Assemblys.

Do you know how to do this?
Thanks in advance.

Best regards
Thomas

  • I will answer my Question by myself. Yes it is possible. Thanks to this article: https://community.aras.com/b/english/posts/applying-a-filter-to-a-search-dialog

    Just a few more details and pictures, because it is easier to understand. Create a new Property "filtered_property" in your ItemType and open it like this Rightclick on "filtered_property" -> Properties -> Open:

    Type in something like this:

    Rigthclick on the Method "Filter" -> Open -> Editor open

    var Filter = {};
    Filter["classification"] = { filterValue: "Assembly", isFilterFixed: true};
    Filter["is_alias"] = { filterValue: "1", isFilterFixed: true };

    return Filter;

    and it done. Good luck!

1 Reply

  • I will answer my Question by myself. Yes it is possible. Thanks to this article: https://community.aras.com/b/english/posts/applying-a-filter-to-a-search-dialog

    Just a few more details and pictures, because it is easier to understand. Create a new Property "filtered_property" in your ItemType and open it like this Rightclick on "filtered_property" -> Properties -> Open:

    Type in something like this:

    Rigthclick on the Method "Filter" -> Open -> Editor open

    var Filter = {};
    Filter["classification"] = { filterValue: "Assembly", isFilterFixed: true};
    Filter["is_alias"] = { filterValue: "1", isFilterFixed: true };

    return Filter;

    and it done. Good luck!