I know I've already emailed you, but I'll go ahead and post this.
public static List<string> GetListFilteredByTargetTagCommaDelimitedString(CodeBreeze.Business.BusinessEntity entity, string targetTagKey)
{
string commaDelimitedString = entity.Tags[targetTagKey].Value;
string[] array = commaDelimitedString.Split(',');
List<string> getObjectByFieldList = new List<string>(array);
return getObjectByFieldList;
}
I have a target tag called GetObjectByField so I want to be able to generate mutliple values selecting that object back so I delimit it with a comma. I just return a list of strings that I handle in the code template. I pass in the entity and the target tag.
In the code template, you would point to your template helper class and you would do this:
List<string> objectListByField = GetListFilteredByTargetTagCommaDelimitedString(entity, "GetObjectByField");
From here just loop through this and handle it in your template. Granted you can handle this different ways, here is an example.
Hope this helps.