Document not able to delete

rated by 0 users
This post has 5 Replies | 2 Followers

Top 50 Contributor
Posts 34
Points 470
Globematics_PLM Posted: Tue, Feb 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.

  • | Post Points: 20
Top 50 Contributor
Posts 37
Points 540
Boro replied on Thu, Feb 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

  • | Post Points: 20
Top 50 Contributor
Posts 34
Points 470

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.

 

  • | Post Points: 20
Top 25 Contributor
Posts 59
Points 805

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

  • | Post Points: 5
Top 25 Contributor
Posts 59
Points 805

In case you don't find idlist using this.getAttribute, try this.getProperty also.

- Vishal

  • | Post Points: 20
Top 50 Contributor
Posts 34
Points 470

 

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.

 

  • | Post Points: 5
Page 1 of 1 (6 items) | RSS