vikramjain23 - Wednesday, May 25, 2011 5:07 AM:
I need some advice on revising a file item instance using Innovator IOM/VB
I want to programmatically create a next version of a file Item Instance, or in other words, create file version B.2 (from exising A.1) using a modified file located in my current working directory
1. First I try to Checkout and lock the exixting version :
Set File = File.checkout("c: emp")
Set File = File.Apply("lock")
If File.IsError Then
MsgBox File.getErrorString, , "Critical Error"
End If
2. Then I modify the local file and save it.
3. As a last step I intend to Checkin (upload) but I end up in getting error...
File.setAction "edit"
File.attachPhysicalFile filename, vaultid
Set File = File.Apply()
If File.IsError Then
MsgBox File.getErrorString, , "Critical Error"
End If
I get the error -- "Aras.Server.Core.ItemIsnotLockedException"
If someone can help, I am thankful in advance,
With Best Regards,
Vikram Jain
vikramjain23 - Wednesday, May 25, 2011 6:20 AM:
Hi,
I found the solution on this link....
http://www.aras.comhttp://www.aras.com/Community/forums/p/674/2037.aspx#2037
With Best Regards,
Vikram Jain