I have created a custom tool to import Data from an Excel sheet to an existing or new SLAM Hierarchical Data.
Everything seemed OK except when you click on edit item. It does not pick the parent, When i looked into code it was unable to find the GUID supplied,
The Guid which I was supplying was in lower case while that of SLAM was in upper case, so i did a little change in the code. which is like this:
File: SLAM Hierarchy 1.0.1 Source>AWS.SLAM.Hierarchy>HierarchyPositionFieldControl.ascx.cs in the set value of override object Value of class HierarchyPositionFieldControl
after the line
ListItem selectedParent = ddlParents.Items.FindByValue(valueParts);
my added region is this
#region ExcelImport for SLAM data
// Added following this region to use ExcelImport for SLAM data
// Little change of 'ToUpper()' here, in order to use our custom Hierarchical position
// As in GUIDs two are equal even though their case is different.
// Without this code SLAM thinks these are different.
if (selectedParent == null)
selectedParent = ddlParents.Items.FindByValue(valueParts.ToUpper());
Do you think it is a good change or there are some issues.
because i think Guid should be found even if their case is different.
For me it worked well.