/build/static/layout/Breadcrumb_cap_w.png

Selecting Asset Types For Custom Service Desk Column?

So i know how to have a column with all of the Assets Types being selectable, and i know that "query:select ASSET.NAME FROM ASSET WHERE ASSET_TYPE_ID=? ORDER BY ASSET.NAME ASC", will allow me to show the given "ID=" asset type. The question is, how do you select 2 or 3 Asset Types, and not all or 1?

1 Comment   [ + ] Show comment
  • In your query, try changing the
    ASSET_TYPE_ID=?
    to either
    (ASSET_TYPE_ID=2 OR ASSET_TYPE_ID=3)
    or
    ASSET_TYPE_ID IN (2,3,4,7,12)

    Use the first if you have a small number of types. Use the second if you have a larger number of asset types. - grayematter 10 years ago
    • Worked perfectly! Thanks! - zipperson 10 years ago

Answers (1)

Answer Summary:
Posted by: grayematter 10 years ago
5th Degree Black Belt
2
In your query, try changing the 
ASSET_TYPE_ID=? 
to either 
(ASSET_TYPE_ID=2 OR ASSET_TYPE_ID=3) 
or 
ASSET_TYPE_ID IN (2,3,4,7,12) 

Use the first if you have a small number of types. Use the second if you have a larger number of asset types.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ