ryansuitposungkono / openjs-grid

Automatically exported from code.google.com/p/openjs-grid
0 stars 0 forks source link

Query In openjs-grid #73

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I want to use a query instead a table in openjs-grid
2. I use the new Grid(_queryMulti($query));and also $grid = new 
Grid(_queryMulti("Select Fields FROM MyTable where somefield = somevaule"));
3.

What is the expected output? What do you see instead? A list of fields, Nothing

What version of the product are you using? On what operating system? version 
1.8 on MAMP in Apple OSX Lion

Please provide any additional information below.

Original issue reported on code.google.com by taboada....@gmail.com on 16 May 2012 at 3:41

GoogleCodeExporter commented 9 years ago
you can limit your query as follow:

    $grid = new Grid("tblcustomer");
    $grid->limit = 5;
        $grid->where = "ID =1280";

Also study the grid.php file that was more function for limiting your query

Original comment by haroldga...@gmail.com on 22 Aug 2012 at 4:20