This commit is contained in:
2020-01-10 21:47:18 +00:00
parent 0c5eff9b0a
commit 92438299d8

View File

@@ -39,12 +39,12 @@ Server
- Grid lists need to know what their template is as more than one list might use the same template?
- SERVER SENDS LIST OF COLUMNS
- The server needs to tell the client which columns are coming back with the list and what types etc so the client can just adapt to any template setting
- column list has type of object behind each column if applicable so client can make hyperlinks
- column list has type of object behind each column if applicable and user has rights to open so client can make hyperlinks
- SERVER SENDS DATA
- Data in a standard for all grid lists json format, not based on set objects (I think I can do that, probably a hybrid object with JSON data)
- 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 then this is the id to open for the client to put a hyperlink on that column)
- 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)
- 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}}