查看单个帖子
旧 2009-04-13, 01:22 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】pdmwe batch folder unlock - anyone had success

pdmwe batch folder unlock - anyone had success?
here's a code snippet that's not working. there doesn't seem to be any example, so it could be way off the mark.
the snippet is intended to check in (unlock) all the files in a pdmwe folder. files were just added & there are no other files in the vault to confuse matters.
dim batchunlock as iedmbatchunlock = login.vault.createutility(edmutility.edmutil_batchunlock)
dim selitem(0) as edmselitem
selitem(0).mlprojid = _vaultmigrationfolder.id
selitem(0).mldocid = 0
batchunlock.addselection(login.vault, selitem)
batchunlock.unlockfiles(handle)
note that "login.vault" is just the vault object & "_vaultmigrationfolder" is the folder object.
anyone have any idea either what's wrong here or what is the right way to do this?
thanks,
tom
answer never mind
it seems i missed a createtree after the addselection. (it should have been obvious...)
quick
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)