FSN#34749 Mogelijkheid voor jqplot Graphs Default options

svn path=/Website/trunk/; revision=29251
This commit is contained in:
Erik Groener
2016-05-02 09:54:46 +00:00
parent af1df47fc4
commit 40a824a18e

View File

@@ -43,7 +43,7 @@ function model_reportsx(usrrap_key, rapparams)
required: true, defaultvalue: 0, LOV: L("lcl_usrrap_showcountLOV")},
"graph" : { dbs: "fac_usrrap_graph", typ: "number", label: L("lcl_usrrap_showgraph"),
required: true, defaultvalue: 0, LOV: L("lcl_usrrap_showcountLOV")},
"graph_type" : { dbs: "fac_usrrap_graph_type", typ: "number", label: L("lcl_usrrap_graphtype"), LOV: L("lcl_usrrap_graphtypeLOV")},
"graph_type" : { dbs: "fac_usrrap_graph_type", typ: "number", label: L("lcl_usrrap_graphtype"), LOV: L("lcl_usrrap_graphtypeLOV"), emptyoption: null},
"lastrefresh" : { dbs: "fac_usrrap_col_refresh", typ: "datetime", label: "Columns last refreshed", readonly: true },
"graph_options": { dbs: "fac_usrrap_graph_options", typ: "memo", label: "Graph Options" }
};
@@ -110,6 +110,9 @@ function model_reportsx(usrrap_key, rapparams)
this.hook_pre_edit = function (obj)
{
this.fields.styling.LOV = api2.filterLOV(L("lcl_usrrap_stylingLOV"), "0,1,2,3,8,16"); // De meesten mogen L(ike) niet
this.fields.graph_type.LOV = "0;;" + this.fields.graph_type.LOV; // 0 is ook een geldige waarde --> toevoegen aan LOV in lcl_usrrap_graphtypeLOV
this.fields.graph_type.LOV = api2.filterLOV(this.fields.graph_type.LOV, "0,1,3,4"); // dashboard nu nog even niet.
};
this.REST_GET = function _reportsx_GET(params, jsondata)