POST
Command parameters:
GET
Command parameters:
some.php?connector=true&dhx_colls=2,3
some.php?connector=true&dhx_sort[2]=asc
//filter by %test% some.php?connector=true&dhx_filter[2]=test
Requsting part of data (Dynamic Smart Rendering or Dynamic Paging)
GET
Requsting part of data
GET
Filter by label field
GET
Requesting branch of tree
GET
GET
POST
when should you use it?
The existing version of connectors supports a limited set of server platforms. In case database/framework/scripting language you'd like to use is not supported, you can port existing solution on your platform.
when shouldn't you use it?
Connectors are just wrappers around existing grid functionality, that's why if you need to use this solution once, you would better use grid API directly, instead of creating your own server connector.
Connector supports many operations implementing data processing. There is an opportunity to provide supporting basic operations and ignore higher-level ones, in case they are not used in your project.
Data assignment is basic connector operation which proceeds in the following way: connector connects to database, selects data and outputs this in stdout using XML format of the current component.
Key points:
header("Content-type:text/xml"); print("<?xml version='1.0' encoding='utf-8' ?>"); print(xml_formatted_data);
Basic implementation allows to use resulting script as input parameter for load()/loadXML() methods.
At this stage, the number of supported operations is considerably extended: you are allowed to use #connector_text_filter, sorting type 'connector' and filter/sort data through URL manipulations.
Key points:
GET
Command parameters:
// where field1 like %some% AND field2 like %other% dhx_filter[1]=some&dhx_filter[2]=other
// order by field1 ASC, field2 DESC dhx_sort[1]=asc&dhx_filter[2]=dsc
Hashes of rules in question use name of fields (where filtration is enabled) or columns' indices (in case of grid).
Restriction for output data: order and structure are defined through filtering/sorting parameters.
combo specific:
dhtmlxCombo has an additional filtering GET parameter:
some.do?mask=abc
After data output implementation goes dynamical loading. Dynamical loading has some particular features while working with hierarchical (tree/treegrid) and simple (grid/combo) components.
For hierarchical components, loading of data branch occurs at once.
some.do?id=123
Command parameters:
For other components, data will be outputted according to incoming parameters.
//grid some.do?posStart=20&count=50 //combo some.do?pos=50
Command parameters:
grid:
combo: