Snippets
27
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);
	}

}

Post Rating

Comments

There are currently no comments, be the first to post one!

Post Comment

Only registered users may post comments.

  120 OLD FREEMANS WAY, BREWSTER, MA 02631
  P. O. BOX 2342, BREWSTER, MA 02631
  (774) 323-3176
  CONTACT US