This commit is contained in:
2020-02-17 20:16:30 +00:00
parent d274a1c9df
commit 676e919e41

View File

@@ -48,11 +48,17 @@ TODO: FILTER AT CLIENT
PICKLIST
- Picklists have all teh same requirements except they are used all over and replicated on many forms so they will have their own store considerations when the time comes
DataTable FORM:
DataTable host FORM:
- Allows selection of listView, has button to go edit the listview
- Checks store under form key to see if there is a view or unsaved etc see below
DataTable control:
- accepts formkey and DataListKey
- Checks for source of ListView JSON and uses it if present
- If ID and cached copy of JSON in form settings temp storage then uses cached copy
- If ID but no cached copy fetches and stores in form settings temp storeage cache and uses
- If saved JSON but no id then just uses directly
ListViewEditor
- Needs to know what formsettings key is in use to check with PUT ON ROUTE
@@ -60,13 +66,17 @@ ListViewEditor
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
- If store SAVED formkey settings has listview ID then selects that item from listview picklist on form
- If store SAVED FORMKEY has no listview id and has JSON listView then then says "Unsaved ListView" (User has to open listview editor to save it)
- If store SAVED FORMKEY 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:
- store.state.
- store.state.formkey.temp.data-table.cachedListViews.[I]
- Stores by formsettings key and uses both temp and saved
- Temp for saving a temporary cached view of a saved listview's JSON data
- Saved for the selected listviewid and for temporary unsaved JSON data
- Two related things stored under FormSettings key
- Id of saved DataListview
- ID number if it was not edited and was selected
- 0 meaning no selection