This commit is contained in:
@@ -50,6 +50,29 @@ ListViewEditor
|
|||||||
- Needs to know what formsettings key is in use to check with PUT ON ROUTE
|
- Needs to know what formsettings key is in use to check with PUT ON ROUTE
|
||||||
- Needs to know which DataList key to work with PUT ON ROUTE
|
- Needs to know which DataList key to work with PUT ON ROUTE
|
||||||
|
|
||||||
|
DataTable form ListView picklist
|
||||||
|
- when open form check store for formsettings for this form:
|
||||||
|
- If store has listview ID then selects that item from listview picklist on form
|
||||||
|
- If store has no listview id and has JSON listView then then says "Unsaved ListView" (User has to open listview editor to save it)
|
||||||
|
- If store has no listivew Id and no JSON listView then selects 0 and shows "-" meaning no selection
|
||||||
|
|
||||||
|
STORE RELATED TO DATALISTVIEW
|
||||||
|
- Stores by formsettings key
|
||||||
|
- Two related things stored under FormSettings key and persisted in store for restart:
|
||||||
|
- Id of saved DataListview
|
||||||
|
- ID number if it was not edited and was selected
|
||||||
|
- 0 meaning no selection
|
||||||
|
- ListView JSON
|
||||||
|
- Blank if accept default or one in ID
|
||||||
|
- If has text it's one of two states:
|
||||||
|
- If no corresponding ID then it's been edited but not saved
|
||||||
|
- If has valid ID then it's a cached copy of the listview of corresponding ID
|
||||||
|
- On logout
|
||||||
|
- Any formsetting with LISTVIEWID AND JSON is cached, so clear out the JSON but leave the ID
|
||||||
|
- Any formsetting with JSON but empty listview is a local edit and should be kept for next session
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
DataTAble form inits listview as follows:
|
DataTAble form inits listview as follows:
|
||||||
- Checks if there is a current active unsaved listview in the formsettings for that form and uses it if found
|
- Checks if there is a current active unsaved listview in the formsettings for that form and uses it if found
|
||||||
- If no active unsaved listview it then checks for an ID of a listview in formsettings last used and fetches and uses that if found
|
- If no active unsaved listview it then checks for an ID of a listview in formsettings last used and fetches and uses that if found
|
||||||
|
|||||||
Reference in New Issue
Block a user