Setting id fields through code

Former Member
Former Member
Hi, I was wondering if there is a way to set id fields on an item using methods rather than having to write out the AML. An example for what I am trying to do is this. Set an id on an item: myItem.setProperty("myfield_id", myFieldID); I realize this doesn't build out the same aml that is required to set it properly which would be "<Item type 'myItem'"><id>myfieldItemID></Item> and instead just sticks the ID without the appropriate item type . I am hoping there is a way since I find it much cleaner to use the item methods instead of having AML string in my code. Thanks
Parents Reply Children
No Data