Here is my code to retrieve the value.
CollectionMemberValue memberValue = (CollectionMemberValue)$input$.Resolve();
var commaDelimitedString = string.Empty;
var ParentName = string.Empty;
var big = string.Empty;
List valueList = new List();
//Pass “All” string if user selected “All” checkbox or “All” token
if(memberValue.Token != null && memberValue.Token == PredefinedToken.All )
{
commaDelimitedString = “All”;
}
else
{
for (int i = 0; i < memberValue.Values.Count; i++)
{
if(memberValue.Values[i].ParentMemberUniqueName != null)
{
ParentName = memberValue.Values[i].ParentMemberUniqueName;
var ParentNameToDel = ParentName.Substring(0,ParentName.Length-2);
commaDelimitedString = memberValue.Values[i].UniqueName.Replace(ParentNameToDel+".","").Replace("."+memberValue.Values[i].LevelUniqueName,"");
valueList.Add(commaDelimitedString);
}
else
{
commaDelimitedString = memberValue.Values[i].UniqueName.Replace("."+memberValue.Values[i].LevelUniqueName,"");
valueList.Add(commaDelimitedString);
}
}
}
return new CollectionStringValue($id$, valueList);
Using the above script I can achieve this.
But when I select All either using checkbox or token I get nothing. I want a separate list for all selection. Please suggest.