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 - API CreateCheckinManager failed - does not support ItemCollections?

JensRollenmueller - Friday, January 3, 2014 9:53 AM:

Hello community,

I am trying to implement new API - CreateCheckinManager into my application - but unforunately it does not support ItemCollections. With single Items it works very well.
Also CreateCheckOutManager supports Item collections!

I am using Aras Version 9.4.0.

Any ideas how CreateCheckinManager works ?

If you try this code in C# it will return: Not a single item / Parametername: configuration

Item itmCollect = Inno.newItem();
for (int iSubNbr = 1; iSubNbr <= 10; iSubNbr++)
{
 string sFileName = @"D:TMP815-" + iSubNbr + ".txt";
 if (System.IO.File.Exists(sFileName))
 {
  Item itm = Inno.newItem("File", "add");
  itm.setAttribute("version", "0");
  itm.setProperty("filename", (System.IO.Path.GetFileName(sFileName)));
  itm.attachPhysicalFile(sFileName);
  itmCollect.appendItem(itm);
 }
}
if (itmCollect.getItemCount() != 0)
{
 IomFactory factory = new IomFactory();
 CheckinManager checkin = factory.CreateCheckinManager(itmCollect);
 Item result = checkin.Checkin(2);
}