
Originally Posted by
christianknoll
set_entry certainly has no delete flag. Pass the delet flag as part of the name_value_list.
christian.
unfortunately this doesn't work . the Note gets entered twice .there are two Note entries and the deleted filed in database table 'notes' isn't set to 1.
for overwrite i set 'deleted' to 1 and pass it as Integer.toString(1) in the Name_Value list. but this doesn't work. the Note gets entered twice and note is not overwritten.
i don't know what i'm doing wrong. I would appreciate some further help on this issue.
the code i use to overwrite an existing note is below :
Code:
ArrayList list = new ArrayList();
list.add(this.make_name_value("assigned_user_id", this.soap.get_user_id(this.sessionid)));
list.add(this.make_name_value("name", note_name));
list.add(this.make_name_value("parent_type", pinf.getItemType()));
list.add(this.make_name_value("parent_id", pinf.getId()));
list.add(this.make_name_value("description", note_desc));
list.add(this.make_name_value("deleted", Integer.toString(1)));
Name_value[] arr = (Name_value[]) list.toArray(new Name_value[list.size()]);
noteid = this.soap.set_entry(this.sessionid, "Notes", arr).getId();
Bookmarks