This is in Java:
/** * addWarningAliasToSrcContainer - create new alias with a warning name to use the copy and not this source container * @param srcItemInfo, LLValue containing retrieved srcItemInfo (src will be a container) * @param copyItemInfo, LLValue containing retrieved copyItemInfo (dst will be a folder) * @param ownerCodeString, String containg the owner code * @return warningItemInfo, LLValue containing retrieved warningItemInfo (will be an alias) */private LLValue addWarningAliasToSrcContainer(LLValue srcItemInfo, LLValue copyItemInfo) { int status = 0, srcItemVolID = 0, srcItemObjID = 0, copyItemVolID = 0, copyItemObjID = 0; String warningItemName = ""; LLValue warningContext = (new LLValue()).setAssocNotSet(); LLValue warningItemInfo = (new LLValue()).setAssocNotSet(); //create_ new alias with a warning name to use the copy and not this source container warningItemName = WarningItemNamePrefixString + ownerCodeString + WarningItemNameAppendString; //" Users - WARNING - Do NOT Update these Items - Click this link to go to the working copy *****"; srcItemVolID = srcItemInfo.toInteger("VolumeID"); srcItemObjID = srcItemInfo.toInteger("ID"); copyItemVolID = copyItemInfo.toInteger("VolumeID"); copyItemObjID = copyItemInfo.toInteger("ID"); status = documents.CreateReferenceEx( copyItemVolID, copyItemObjID, srcItemVolID, srcItemObjID, warningItemName, LAPI_DOCUMENTS.CREATEALIAS, warningContext, warningItemInfo); return warningItemInfo; } // addWarningAliasToSrcContainer
Hi,
Actually there is a function called LL_CreateReferenceEx( ) ,which will create shortcuts.Did you try this?
Thanks,
Jitendra
Supaisystems.