Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > no Update a Document type View modes: 
User avatar
Member
Member
oohoangthienoo-gmail - 10/19/2012 12:35:27 AM
   
no Update a Document type
with this code I run on Kentico 5
CMS.TreeEngine.TreeProvider provider = new CMS.TreeEngine.TreeProvider(CMS.CMSHelper.CMSContext.CurrentUser);
CMS.TreeEngine.TreeNode node = new CMS.TreeEngine.TreeNode("KP.BatDongSan", provider);
CMS.TreeEngine.TreeNode parent = provider.SelectSingleNode(CMS.CMSHelper.CMSContext.CurrentSiteName, "/Cong-Đong/Nha-nha-nha-310m2-hem-Mimosa-(Khe-Sanh)", CMSUtils.GetCultureCode().ToString());
if (parent != null)
{
node.SetValue("title", title.Text);
parent.Update();
}


but not running on Kentico 6

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 10/19/2012 2:25:54 AM
   
RE:no Update a Document type
Hi,

Have you reflected the API changes?

Also, the description "not running in 6" does not tell us what the problem is. Please describe us the issue or tell us the error message at least.

Best regards,
Juraj Ondrus

User avatar
Member
Member
oohoangthienoo-gmail - 10/19/2012 5:16:46 AM
   
RE:no Update a Document type
when I run the code, the code does not generate an error that the task is not executed

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 10/28/2012 11:18:49 PM
   
RE:no Update a Document type
Hi,

When you run it in the debug mode - what are the values in the objects and variables? Is every line of the code executed as it should?

Best regards,
Juraj Ondrus