How do I get the ID of the selected item type from the TOC?

hi

How do I get the ID of the selected item type from the TOC..?

Help me..

  • Hi mym607,

    Please let me know if I've misunderstood your question. To get the ID of a specific ItemType that you'd find on the TOC (EX: Part), here are the steps.

    Log in as Admin

    In the Administration section of the TOC, perform a search on the ItemType ItemType

    Search for the Part ItemType

    Right-click on the Part result in the search grid and select properties

    Copy ID button.

    If you're looking for a specific Item ID, the process is essentially the same. Every Item has a properties page which contains the ID of the item, and this also counts for ItemTypes, because everything is an Item.

    AJ

  • Is it possible to implement JavaScript code?

  • I'm not sure exactly what you're looking for. If you wanted to get the id of a specific itemType in a JS method, you could do something similar to the following:

    var newItem = inn.newItem("part","get");

    newItem.setProperty("name", {YOUR ITEMTYPE NAME});

    newItem = newItem.apply;

    var id = newItem.getID();

    This can get whatever ItemType you're looking for and extract the ID. Let me know if I've misunderstood your question.