Use multiple "like" conditions in AML query?

Former Member
Former Member
Hi, I have:
setType("Part");
setProperty("permission_name", "New %");
setPropertyAttribute("permission_name", "condition", "like");
var item = apply();
How do I change this to use multiple "like" conditions? I want to express something like:   "permission_name LIKE 'New %' OR permission_name LIKE 'In Work %'" Thanks,,,
Parents
  • "Where" is one of the regular AML attributes you can use, such as "action" and "type". In a regular AML query it would look something like this:
    <AML>
     <Item type="Part" action="get" where="...">
    </Item>
    </AML>
    Don´t ask me about the technical background, but I think AML use the dot notation. In my example the pattern refers to my own customized classification tree. We have a quite huge tree with many subclasses. The expression is the string users would normally type into the search bar manually. It would be also possible to use Electrical/Resistor/* instead of /%.
Reply
  • "Where" is one of the regular AML attributes you can use, such as "action" and "type". In a regular AML query it would look something like this:
    <AML>
     <Item type="Part" action="get" where="...">
    </Item>
    </AML>
    Don´t ask me about the technical background, but I think AML use the dot notation. In my example the pattern refers to my own customized classification tree. We have a quite huge tree with many subclasses. The expression is the string users would normally type into the search bar manually. It would be also possible to use Electrical/Resistor/* instead of /%.
Children
No Data