getItemById including select statement possible?

Hi, I sometimes have seen code that uses getItemById with additional parameters. It seems that it´s also possible to include a select statement. Is it actually possible to do something like this? var myManufacturer = inn.getItemById("Manufacturer", myid ,0,null,"name,city"); I currently assume the following syntax: getItemById(ItemType, id, levels, something related to levels, select properties); I wasn´t able to use this one successfuly yet, as the additonal parameters were ignored in my testa. So the method will return the complete Item. Does anybody know if this one can work at all? Best regards! Angela
Parents
  • Hi Angela, I think functionally those two calls would be identical. However, using aras.IomInnovator will be more generally applicable. Unlike a Server method, the this context item of a Client method doesn't have to be an Aras Item object, so you may not be able to call this.newInnovator(); from any client event. Chris
    Christopher Gillis Aras Labs Software Engineer
Reply
  • Hi Angela, I think functionally those two calls would be identical. However, using aras.IomInnovator will be more generally applicable. Unlike a Server method, the this context item of a Client method doesn't have to be an Aras Item object, so you may not be able to call this.newInnovator(); from any client event. Chris
    Christopher Gillis Aras Labs Software Engineer
Children
No Data