Portal Engine
Version 2.x > Portal Engine > Cancel transaction mode View modes: 
User avatar
Member
Member
kogany - 11/28/2006 6:40:04 PM
   
Cancel transaction mode
If i can canceled transaction mode in CMS
if not haw i can get AttachmentID and New GUID name of file
in this example ?

If CType(dataObj, CMS.DataEngine.DataClass).ClassName = "Moblin.Phone" Then
Dim cmsDC As CMS.DataEngine.DataClass = CType(dataObj, CMS.DataEngine.DataClass)
WriteTrace("Name=" & cmsDC.DataRow.Item(1))
End If


thanks alex

User avatar
Guest
admin - 11/28/2006 8:47:40 PM
   
Re: Cancel transaction mode
I would suggest that you use TreeNode handler and code like this:

Dim originalNd as CMS.TreeEngine.TreeNode = CType(treeNodeObj, CMS.TreeEngine.TreeNode)

Now you can get any document property using originalNd.NodeID and other properties or using originalNd.GetValue method (for custom fields).

Best Regards,

User avatar
Member
Member
kogany - 11/28/2006 9:56:34 PM
   
Re: Cancel transaction mode
where i can get treeNodeObj ?

User avatar
Guest
admin - 12/7/2006 9:03:12 AM
   
Re: Cancel transaction mode
You need to use the TreeNode handler - this handler provides the treeNodeObj object as an event parameter.