This commit is contained in:
@@ -64,30 +64,26 @@ 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
|
DataTable form ListView picker
|
||||||
- when open form check store for formsettings for this form:
|
- when open form check store for formsettings for this form:
|
||||||
- If store SAVED formkey settings has listview ID then selects that item from listview picklist on form
|
- 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 listview id and has JSON listView then then says -1 value and displays "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
|
- If store SAVED FORMKEY has no listivew Id and no JSON listView then selects 0 and shows "-" meaning no selection
|
||||||
|
- On change:
|
||||||
|
- If a selection is made and there is an unsaved filter the unsaved gets obliterated and selection changes
|
||||||
|
- ListView picker has unsaved item removed from it's list
|
||||||
|
- when selection changes to a saved id item
|
||||||
|
- gzform formsettings saved ListView id is set to value selected
|
||||||
|
- gzform formsettings saved EditedListViewJson is set to empty / undefined
|
||||||
|
- When selection changes to the empty "-" default no selection
|
||||||
|
- formsettings ListViewId is set to 0
|
||||||
|
- EditedListViewJson is set undefined empty
|
||||||
|
- Tells gz-data-table control it should update itself
|
||||||
|
|
||||||
|
GZFORM FORMSETTINGS RELATED TO DATALISTVIEW
|
||||||
|
- formSettings.saved.dataTable.{ListViewId:[0 if none or else the last saved view id selected], EditedListViewJson:[edited but unsaved listview json, only if listviewId=0]}
|
||||||
|
- formSettings.temp.dataTable.CachedListViewJson - temporary cached version of listview that was saved at server but only if saved listviewId is non-zero
|
||||||
|
|
||||||
STORE RELATED TO DATALISTVIEW
|
|
||||||
- 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
|
|
||||||
- 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
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user