Commit f0ea8ac76b47acd9080bdb47db093fa57846d86f
1 parent
491a6e1f
controllets and base datatel behavior update
Showing
10 changed files
with
8 additions
and
2 deletions
bower_components/iron-list/demo/demo1.html
100644 → 100755
bower_components/paper-checkbox/paper-checkbox.css
100644 → 100755
bower_components/paper-item/paper-item-shared.css
100644 → 100755
bower_components/paper-radio-button/paper-radio-button.css
100644 → 100755
bower_components/paper-slider/paper-slider.css
100644 → 100755
bower_components/paper-toggle-button/paper-toggle-button.css
100644 → 100755
bower_components/prism/plugins/show-language/prism-show-language.min.css
100644 → 100755
controllets/data-sevc-controllet/data-sevc-controllet.html
... | ... | @@ -868,10 +868,14 @@ Example: |
868 | 868 | |
869 | 869 | switch(next_selected_pass){ |
870 | 870 | case 0: |
871 | + this.$.fields_treeview.setAttribute("json-data", null); | |
872 | + this.$.fields_treeview.setAttribute("preselected-fields", null); | |
873 | + this.$.fields_treeview.ready();//chrome | |
871 | 874 | return true; |
872 | 875 | case 1: |
873 | - if(this.$.data_url.value == undefined){ | |
874 | - this.$.message.text = "You have to select a dataset to access to pass 2."; | |
876 | + var x = this.$.fields_treeview.getAttribute("json-data"); | |
877 | + if(this.$.data_url.value == undefined || this.$.fields_treeview.getAttribute('json-data') == "null" || this.$.fields_treeview.getAttribute('json-data') == null){ | |
878 | + this.$.message.text = "You have to select a dataset to access to pass 2. It's possible that the data you selected are not available."; | |
875 | 879 | this.$.message.show(); |
876 | 880 | return false; |
877 | 881 | }else{ | ... | ... |
datalets/base-ajax-json-jsonpath-datalet/static/js/AjaxJsonJsonPathBehavior.js
... | ... | @@ -82,11 +82,13 @@ var AjaxJsonJsonPathBehavior = { |
82 | 82 | */ |
83 | 83 | isFieldArray : function(field){ |
84 | 84 | if(field.length == 0) return false; |
85 | + | |
85 | 86 | var obj = this.properties.json_results.value[field[0]]; |
86 | 87 | for(var i=1; i < field.length; i++){ |
87 | 88 | obj = (obj.constructor == Array) ? obj[0][field[i]] : obj[field[i]]; |
88 | 89 | } |
89 | 90 | |
91 | + if(obj == null) return false; | |
90 | 92 | return (obj.constructor === Array && obj[0].constructor == Object) ? true : false; |
91 | 93 | }, |
92 | 94 | ... | ... |
datalets/donutpie3dchart-datalet/donutpie3dchart-datalets.png deleted
50.5 KB