This commit is contained in:
@@ -42,18 +42,17 @@ CURRENT ROADMAP
|
|||||||
CURRENT TODOs
|
CURRENT TODOs
|
||||||
=-=-=-=-=-=-=
|
=-=-=-=-=-=-=
|
||||||
|
|
||||||
|
TODO: PLAY WITH QUERIES, if search for pizza in name bombed at server
|
||||||
|
- SERVER: when the query bombs with exception it should output the query text to the log and console (DEV MODE)
|
||||||
|
- do same thing not in dev mode but in higher level of logging? though more ideal if it returns to client so I can see it remotely
|
||||||
|
- Maybe still a good idea to return generated query in case of fail for diagnosis
|
||||||
|
TODO: ListView editor hasn't had SAVE code written yet
|
||||||
|
|
||||||
|
|
||||||
TODO: CACHE dataListAvailable Fields at least on one temporary cache for most current
|
TODO: CACHE dataListAvailable Fields at least on one temporary cache for most current
|
||||||
- This is because the listview editor needs it and if a user is flipping back and forth between
|
- This is because the listview editor needs it and if a user is flipping back and forth between
|
||||||
the datatable and the filter getting it just right they will be triggering a fetch over and over
|
the datatable and the filter getting it just right they will be triggering a fetch over and over
|
||||||
|
|
||||||
TODO: ListViewBuilder
|
|
||||||
|
|
||||||
{"offset":0,"limit":10,"dataListKey":"TestWidgetDataList","listView":"[{\"fld\":\"widgetname\",\"sort\":\"+\"},{\"fld\":\"widgetserial\"},{\"fld\":\"widgetdollaramount\"},{\"fld\":\"widgetusertype\"},{\"fld\":\"widgetstartdate\"},{\"fld\":\"widgetactive\"},{\"fld\":\"username\"}]"}
|
|
||||||
{"offset":0,"limit":10,"dataListKey":"TestWidgetDataList","listView":"[{\"fld\": \"widgetname\",\"filter\": {\"any\":false,\"items\": [{\"op\": \"%-\",\"value\": \"Generic\"}]}}]"}
|
|
||||||
SEARCH BY ID SPECIFIC VALUE
|
|
||||||
- Since RAVEN doesn't ever allow duplicate names, there is really no need for search by ID
|
|
||||||
- Because entering a unique name is enough to guarantee only that objects records
|
|
||||||
|
|
||||||
|
|
||||||
UNSAVED STATUS IN EDITOR
|
UNSAVED STATUS IN EDITOR
|
||||||
|
|||||||
@@ -434,7 +434,7 @@ export default {
|
|||||||
if (vm.loading) {
|
if (vm.loading) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log("getDataFromAPI::TOP");
|
// console.log("getDataFromAPI::TOP");
|
||||||
|
|
||||||
//start with defaults
|
//start with defaults
|
||||||
var listOptions = {
|
var listOptions = {
|
||||||
@@ -463,8 +463,8 @@ export default {
|
|||||||
// "dataListKey": "string",
|
// "dataListKey": "string",
|
||||||
// "listView": "string"
|
// "listView": "string"
|
||||||
// }
|
// }
|
||||||
console.log("GetDataFromAPI::ListView is:");
|
// console.log("GetDataFromAPI::ListView is:");
|
||||||
console.log(vm.listView);
|
// console.log(vm.listView);
|
||||||
window.$gz.api
|
window.$gz.api
|
||||||
.upsert(vm.apiBaseUrl, {
|
.upsert(vm.apiBaseUrl, {
|
||||||
offset: listOptions.Offset,
|
offset: listOptions.Offset,
|
||||||
@@ -688,7 +688,7 @@ function populatePickLists(vm) {
|
|||||||
vm.pickLists.listViews = res.data;
|
vm.pickLists.listViews = res.data;
|
||||||
window.$gz.form.addNoSelectionItem(vm.pickLists.listViews);
|
window.$gz.form.addNoSelectionItem(vm.pickLists.listViews);
|
||||||
}
|
}
|
||||||
console.log("Done populate picklists");
|
// console.log("Done populate picklists");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -750,7 +750,7 @@ function saveFormSettings(vm) {
|
|||||||
////////////////////
|
////////////////////
|
||||||
//
|
//
|
||||||
function loadFormSettings(vm) {
|
function loadFormSettings(vm) {
|
||||||
console.log("loadFormSettings::TOP");
|
//console.log("loadFormSettings::TOP");
|
||||||
var formSettings = window.$gz.form.getFormSettings(vm.formKey);
|
var formSettings = window.$gz.form.getFormSettings(vm.formKey);
|
||||||
//process SAVED formsettings
|
//process SAVED formsettings
|
||||||
if (formSettings.saved) {
|
if (formSettings.saved) {
|
||||||
@@ -774,10 +774,10 @@ function loadFormSettings(vm) {
|
|||||||
name: vm.lt("FilterUnsaved"),
|
name: vm.lt("FilterUnsaved"),
|
||||||
id: -1
|
id: -1
|
||||||
});
|
});
|
||||||
console.log("loadFormSettings::unsaved Listview in use. It is:");
|
// console.log("loadFormSettings::unsaved Listview in use. It is:");
|
||||||
|
|
||||||
vm.listView = formSettings.saved.dataTable.unsavedListView;
|
vm.listView = formSettings.saved.dataTable.unsavedListView;
|
||||||
console.log(vm.listView);
|
// console.log(vm.listView);
|
||||||
} else {
|
} else {
|
||||||
//listviewid is for unsaved but we have no unsaved so fix that up
|
//listviewid is for unsaved but we have no unsaved so fix that up
|
||||||
vm.listView = undefined;
|
vm.listView = undefined;
|
||||||
|
|||||||
Reference in New Issue
Block a user