Forum Discussion

Morgan's avatar
Morgan
Ideator I
3 years ago
Solved

Adding a CUI button, getting context item

Hi aras team, I am adding a cui button to the command bar, but random question... How can I get the context item for my method? The usual ways don't seem to apply and I am getting an error: "id...
  • alaxala's avatar
    3 years ago

    "options" is declared as the parameter of your onClick method and has the "itemId" and "itemTypeName" properties. Or you can use window.item.