This commit is contained in:
@@ -44,14 +44,17 @@ Server
|
||||
- Each row has each column as a object comprising of:
|
||||
- Display value (the data to show, not formatted yet, that's up to the client)
|
||||
- Optional: ID value (if the object is openable **** MUST CHECK RIGHTS ALSO HERE **** then this is the id to open for the client to put a hyperlink on that column)
|
||||
- To save bandwidth abbreviations are used in the column definitions:
|
||||
- ColumnsJSON=@"{[ {""cm"":""Widget"",""dt"":""text"",""ay"":"+ AyaType.Widget.ToString()+ "}]}";
|
||||
- cm=column name locale key, dt=AyDataType, ay=AyaType to open on click of that column field (optional, not present if not openable)
|
||||
- For example (wide list):
|
||||
data:{
|
||||
columns:{[ {name:"lt_client_name",datatype:text,ayatype:client},{name:"lt_client_notes",datatype:text},{name:"lt_last_workorder",datatype:number,ayatype:workorder}]}
|
||||
columns:{[ {cm:"lt_client_name",dt:text,ay:client},{cm:"lt_client_notes",dt:text},{cm:"lt_last_workorder",dt:number,ay:workorder}]}
|
||||
rows:{[ {display:"Green mechanics",id:32},"...notes...",{display:"42",id:42}, ...thousands more etc.... ]}
|
||||
}
|
||||
- For example (XS list)
|
||||
data:{
|
||||
columns:{[ {name:"lt_client",datatype:text,ayatype:client}]}
|
||||
columns:{[ {cm:"lt_client",dt:text,ay:client}]}
|
||||
rows:{ {display:"Green mechanics",id:32}, ...thousands more etc.... }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user