How to Update the value of xClasss xProperty by AML or API?

オフライン
Hi Eli, How to Update the value of  xClasss xProperty via API or AML? I can get the value of an xProperty  via MyItem.getProperty("xp-MyPropertyName") or AML. But I failed to update xProperty this way. Item MyItem = innovator.newItem("Part","edit"); MyItem.setID("xxxxxxxx"); MyItem.setProperty("xp-length","10"); MyItem.apply();   Lin    
Parents
  • Former Member
    Former Member
    Hi Lin, Code looks right. I usually look at the returned Item from MyItem.apply();
    MyItem = MyItem.apply();
    if ( MyItem.isError() )
    {
      // have a look at the error string or do something
    }
    This should give you some clues what is going wrong with the update. Cheers, Brian.
Reply
  • Former Member
    Former Member
    Hi Lin, Code looks right. I usually look at the returned Item from MyItem.apply();
    MyItem = MyItem.apply();
    if ( MyItem.isError() )
    {
      // have a look at the error string or do something
    }
    This should give you some clues what is going wrong with the update. Cheers, Brian.
Children
No Data