Sachin - Tuesday, February 21, 2012 5:41 AM:
hello
when i'm trying to delete document then, it through Error Message i.e. "ID must be Specified."
but if I, purge that same document then it is delete from document....
i'm not understand what happen...
Any one give me solution on that?
It's very urgent...
Thanks & Regards,
Sachin G.
Boro - Thursday, February 23, 2012 6:42 PM:
Hello.
Do you mean that you can't delete an item using method? If yes, the delete action needs either an "id" or a "where" attribute.
So you should call setID(id) or setAttribute("where","proerty","value") in your method code.
Thanks
Sachin - Monday, March 5, 2012 3:41 AM:
Thanks for your reply
The method for deletion is placed in the server events for the document item type.
The very first line of the method creates an instance of innovator by this.getInnovator and then it calls - this.getID();
So if i have 3 revisions and i right click on revision 03 it brings me the ID for 01 revision of the document.
Is there any internal code that makes this happen.
vishal_trivedi - Friday, March 9, 2012 1:37 AM:
Hi Sachin,
1) In your method use this.getAttribute("idlist") it will give you all the ids of a document separated by comma(,).
2) Then use this in your where condition as where = "Document.Id in (this.getAttribute('idlist'))".
I think this will solve your problem.
- Vishal
vishal_trivedi - Friday, March 9, 2012 6:38 AM:
In case you don't find idlist using this.getAttribute, try this.getProperty also.
- Vishal
Sachin - Saturday, March 10, 2012 2:09 AM:
I'm working on Aras 9.3 ,
1)when I trying to delete Document then, this Item contain Idlist property with all revision Id's
2)when I trying to purge Document then, this Item contain ID with Single revision.
above both case action is purge.
What Should I do for getting Proper ID of Document?
Sachin.
