This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - How To check in file through CODE.

pinakpatel - Friday, April 8, 2011 2:37 AM:

Hi Friends,

I am stuck with problem of check-in file by code.

 

To check-out file,There is a ready-made function --->checkout()

But 

How to check-in files through code. it should check in files in such a manner that maintain its

 Generation and Revision.

 

Thanking You.

 



Triadian - Monday, May 16, 2011 8:13 AM:

Hi,

This post may be helpful  http://www.aras.comhttp://www.aras.com/Community/forums/p/1099/3235.aspx#3235

Goodluck



pinakpatel - Tuesday, May 31, 2011 4:10 AM:

Hi Triadian,

thanks for help,

but i want something more which maintains its revision and generation.

 

Thanks,

Pinak Patel



Triadian - Monday, June 6, 2011 12:28 AM:

Hi Pinak,

You can set the version attribute to 0 and use update ,if you don not want to update Revision and generation.For Example:

locked_Item.attachPhysicalFile(FullPath);

locked_Item.setAttribute("version", "0");

 

Item updated_item = locked_Item.apply("update");

 

Regards,



pinakpatel - Monday, June 13, 2011 7:17 AM:

Hi triadian,

 

Can you please send me your e-mail id,

so i can send you one full document of my problem statement.

Thank You very much...

 

Regards,

Pinak