GithubHelp home page GithubHelp logo

activedbsoft / webapi-active-query-builder-web-client Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 32.24 MB

Web client for servers using Active Query Builder WebAPI rest clients

Home Page: https://webapi.activequerybuilder.com/

HTML 8.71% JavaScript 15.35% CSS 43.96% PHP 11.72% ApacheConf 0.09% Vue 0.09% Makefile 4.41% Perl 0.71% Python 0.43% Ruby 0.35% C# 12.98% ASP 0.02% Java 1.19%
sql-query-builder sql-query sql-filtration sql-builder web-api client javascript user-interface sql

webapi-active-query-builder-web-client's Introduction

Web Client for Active Query Builder Web API

Ready-to-use JavaScript library that helps to implement ad-hoc SQL query builder for non-technical end users. It uses Active Query Builder Web API, a cloud service for SQL query creation, analysis and modification.

Compatibility

Web browser Internet Explorer Chrome Firefox Opera Safari
Minimal version 10 23 21 15 6

Description

Web Client for Active Query Builder Web API is designed for the purpose of building full-featured web interface to work with result data of arbitrary SQL query. The component acts like Online Visual Query Builder: it allows your end-users to sort, filter and browse paginated data, by modifying the given SQL query according to user instructions.

Remarks

The idea of this web client was to let the web users to browse data from large datasets using a full-featured interactive user interface to browse massive data sets while passing a minimum amount of data to the client. This is not another one HTML data grid control. You can use any third-party grid controls (which allow for the necessary customization) with Active Query Builder API or create your own one. This library lets send the user's query modification instructions to the server and receive data in return in an easy way.

This library also provides a handy HTML control to manage filter conditions in a tree-like form.

Learn more at https://webapi.activequerybuilder.com.

Getting started

How to initialize the QueryTransformer control?

QueryTransformer requires a URL of the server access point to be passed to the constructor:

var queryTransformer = new ActiveQueryBuilder.QueryTransformer("http://localhost:53489");
How to initialize Criteria Builder control?

To display the Criteria Builder control, call the QueryTransformer.criteriaBuilder.init method and pass the id of the container HTML element as a parameter:

queryTransformer.criteriaBuilder.init("html_element_id");
How to link the QueryTransformer object to the grid control?

Pass the user's actions to appropriate methods of the QueryTransformer class and call the QueryTransformer.transform method to send commands to the server. Handle the QueryTransformer.dataReceived event to display data in return.

Read more details and find code samples in remarks for the QueryTransformer class and it's helper classes.

How to configure the web server to work with the component?

In order to operate with this library, a server access point that's capable to handle the following requests is necessary.

Request Parameters Return value Description
GetQueryColumns - ColumnList Returns list of query columns.
TransformSql Transform <Free-form data> Gets transformation commands from the client and returns data to be displayed.

ColumnList and Transform are JSON-encoded string of the structure described on the Active Query Builder API Definition page. See the Active Query Builder Web API HTML Demo page to find sample of these handlers.

Class reference

Classes

Class name Description
QueryTransformer Non-visual object to exchange data with the server. Gets list of columns from the server and sends transformation directives to the server.
CriteriaBuilder Visual control to define conditions by the end-user.
Filter Helper class of the QueryTransformer to work with sortings.
Sorting Helper class of the QueryTransformer to work with sortings.
HiddenColumn Helper class of the QueryTransformer to show/hide columns.
Pagination Helper class of the QueryTransformer to work with pagination.
Total Helper class of the QueryTransformer to work with totals.
Column Represents single query column.
AggregatedColumn Defines aggregation for a column.
SortedColumn Defines sorting for a column.
FilterCondition Defines single condition for a column.
FilterConditionGroup Defines group of conditions.

Enumerations

Enumeration Description
junctionTypes Lists all possible junction types to be used to join conditions.
aggregateFunctions Lists all possible aggregate functions that can be used to calculate totals.
conditionalOperators Lists all possible conditional operators to be used to build conditions.
sortDirections Lists all possible sort directions.

webapi-active-query-builder-web-client's People

Contributors

exceptioncpp avatar

Stargazers

 avatar

Watchers

 avatar

webapi-active-query-builder-web-client's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.