All options of EasyQuery widgets and core objects (such as DataModel and Query) can be specified through a special easyQuerySettings
global variable.
Just set the value of this variable before including EasyQuery script files (such as eq.all.min.js
or eq.view.js
) into your HTML page.
“EasyQuery”
””
null
sqlOptions
property is supported:
syncQueryOptions: { sqlOptions: {SelectDistinct:true} }
All possible values are described in EasyQuery.Db.DbOptions Properties
null
window.easyQuerySettings = { . . . . . . . . . . listRequesHandler: function (params, onResult) { if (listName == "RegionList") { onResult([ { id: "CA", text: "California" }, { id: "CO", text: "Colorado" }, { id: "OR", text: "Oregon" }, { id: "WA", text: "Washington"} ]); } else { onResult(null); } } . . . . . . . . . . };
null
null
null
serviceUrl
and the property value.
You meay need to change these properties if you implement your own server-side service. For example, if you need server side to be written on PHP, Java or some other non-C# language.
“GetModel”
“GetQuery”
“SaveQuery”
“SyncQuery”
“ExecuteQuery”
“GetList”
“GetQueryList”
//Settings for EasyQuery widgets window.easyQuerySettings = { serviceUrl: "/EasyQuery", modelName: "NWindSQL", entitiesPanel: { showCheckboxes: true }, columnsPanel: { allowAggrColumns: true, attrElementFormat: "{entity} {attr}", showColumnCaptions: true, adjustEntitiesMenuHeight: false }, queryPanel: { alwaysShowButtonsInPredicates: false, adjustEntitiesMenuHeight: false, menuSearchBoxAfter: 20 }, syncQueryOptions: { sqlOptions: {SelectDistinct:true} }, listRequesHandler: function (params, onResult) { //listRequest event handler goes here } };
The EQ.view
unit contains different functions for managing core EasyQuery pages (views): process user input, render result set, etc. All options that unit can be specified through a special easyQueryViewSettings
global variable.
Just set the value of this variable before including EasyQuery script files (such as eq.all.min.js
or eq.view.js
) into your HTML page.
true
SyncQuery
action should be called if the query has changed
true
“ResultPanel”
“SqlPanel”
“ClearQueryButton”
“LoadQueryButton”
“SaveQueryButton”
“ExecuteQueryButton”
“ResultExportButtons”
//Settings for EasyQuery pages window.easyQueryViewSettings = { showChart: false, clearQueryButtonId: "myClearButton" };