This commit is contained in:
2020-01-16 00:37:02 +00:00
parent 90fc9811a6
commit 3bac8c686e
3 changed files with 33 additions and 10 deletions

View File

@@ -28,7 +28,7 @@ Client
- Each row contains a bunch of row objects
- Each column from the db is converted to an object and is formatted like this:
- {v:[field value],id:42[optional id value if openable]}, {v:[field value],id:42[optional id value if openable]}...etc
- First row object is ALWAYS the Default object and is not intended for display
- _df_ First row object is ALWAYS the Default "_df_" object and is not intended for display
- First column contains the same format as a normal column but doesn't display and is intended for the client to know what type and ID of object to open
- This is necessary in cases where they have made selections that preclude knowing what link to open, so if there is no links in the row this is the default for the entire row
- This also saves bandwidth as a list that has no other types can not bother setting the type or id for any other columns
@@ -61,7 +61,7 @@ Server
- To save bandwidth abbreviations are used in the column definitions:
- ColumnsJSON=@"""columns"":[ {""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)
- First column is the DEFAULT column that corresponds to the
- First column in each row is *ALWAYS* the DEFAULT column that corresponds to the _df_ column specified in objectfields with it's sql attributes
- For example (wide list):
data:{
columns:{[ {cm:"lt_client_name",dt:text,ay:2},{cm:"lt_client_notes",dt:text},{cm:"lt_last_workorder",dt:number,ay:workorder}]}