This commit is contained in:
@@ -26,13 +26,24 @@ namespace AyaNova.DataList
|
||||
public string DefaultListView { get; set; }
|
||||
|
||||
|
||||
public string[] GetFieldListFromListView(string listView)
|
||||
//return array of field keys in list view
|
||||
public List<string> GetFieldListFromListView(JArray listViewArray)
|
||||
{
|
||||
throw new System.NotImplementedException("AyaDataList:GetFieldListFromListView not coded yet ");
|
||||
// [{key:"COLUMN UNIQUE KEY ID",sort:"-" or "+",filter:{any:true/false,items:[{FILTER OBJECT SEE BELOW}]} }, {key:"second column unique key"},{...etc...}]
|
||||
List<string> ret = new List<string>();
|
||||
for (int i = 0; i < listViewArray.Count; i++)
|
||||
{
|
||||
|
||||
var cm = listViewArray[i];
|
||||
|
||||
//Get some info about this column / field
|
||||
ret.Append(cm["fld"].Value<string>());
|
||||
}
|
||||
return ret;
|
||||
|
||||
}
|
||||
|
||||
public Newtonsoft.Json.Linq.JArray GenerateListColumnsJSONFromListView(string listView)
|
||||
public Newtonsoft.Json.Linq.JArray GenerateListColumnsJSONFromListView(JArray listViewArray)
|
||||
{
|
||||
throw new System.NotImplementedException("AyaDataList:GenerateListColumnsJSONFromListView not coded yet ");
|
||||
// //parse the template
|
||||
|
||||
Reference in New Issue
Block a user