|
|
posted on January 27, 2020 08:52
public void CreateList()
{
try
{
//create a placeholder entry -
const string listName = "InventoryReportingType";
var listController = new ListController();
var entry = new ListEntryInfo();
{
entry.DefinitionID = -1;
entry.ParentID = 0;
entry.Level = 0;
entry.PortalID = this.PortalId;
entry.ListName = listName;
entry.Value = "USDA";
entry.Text = "USDA";
entry.SystemList = false;
entry.SortOrder = 1;
}
listController.AddListEntry(entry);
}
catch (Exception ex)
{
Exceptions.ProcessModuleLoadException(this, ex);
}
}
There are currently no comments, be the first to post one!