Welcome Guest, Not a member yet? Register   Sign In
v 1.3.3 grocery CRUD - an automatic Codeigniter CRUD

[eluser]web-johnny[/eluser]
[quote author="Snap Shot" date="1310760092"]That's just excellent!
I reset the grocerycrud code to the base install, created the new model.
Added the model call to the controller.
Works like a charm!
That's just super.

To pose another question; any chance we're currently able to add custom commands to the flexigrid? I can see other people on the net are able to do it manually, I'm wondering if you've already put a hook into it for us?[/quote]
No not yet. I want to write some code of adding your own Tools/Actions in a newer version. It just need time to do it. I just want to do a generic add_tool functionality . Those who create their own, they add some functions to grocery crud.

[eluser]web-johnny[/eluser]
[quote author="fabgonber" date="1310808701"]Grocery Crud is slow with a lot of data (900 records) ... When the table has a lot of rows, grocery do a big select and next paginate the result. This big select it's slow...

Ideas? anyone has a example with external pagination (not grocery ajax pagination) and limit with offset? i would like do:

Code:
function full_example($page = 0)
{
        $limit = 50;
        $this->grocery_crud->set_table('customers')
             ->set_subject('Customer')
             ->display_as('customerName','Name')
             ->display_as('contactLastName','Last Name');

        $this->grocery_crud->required_fields('customerName','contactLastName');
        $this->grocey_crud->limit($limit,$page*$limit);
        $this->grocery_crud->render();
}
but don't work... i feel the problem is in $page parameter and grocery crud ...[/quote]

This only happens on the theme "datatables" . It is a theme that works with the client side datatables. Flexigrid ajax works fine. Here is an example of how fast grocery crud is with 1000 items and more complicated queries such as two multiple relations - http://www.grocerycrud.com/examples/inde...management, . I don't think it could be faster. If though you think something it is wrong create your own model ( see four posts up from here for how to create your own model and adding it to grocery crud ) - http://ellislab.com/forums/viewreply/914742/ - and share it

[eluser]Snap Shot[/eluser]
[quote author="fabgonber" date="1310808701"]Grocery Crud is slow with a lot of data (900 records) ... When the table has a lot of rows, grocery do a big select and next paginate the result. This big select it's slow...

Ideas? anyone has a example with external pagination (not grocery ajax pagination) and limit with offset? i would like do:

Code:
function full_example($page = 0)
{
        $limit = 50;
        $this->grocery_crud->set_table('customers')
             ->set_subject('Customer')
             ->display_as('customerName','Name')
             ->display_as('contactLastName','Last Name');

        $this->grocery_crud->required_fields('customerName','contactLastName');
        $this->grocey_crud->limit($limit,$page*$limit);
        $this->grocery_crud->render();
}
but don't work... i feel the problem is in $page parameter and grocery crud ...[/quote]

Make sure your indexes are correctly set. If you have any table returning anything from any appreciable number of queries then there will be slow downs. Make sure that customers_id is an int and customerName and contactLastName are in your main index. You should be fine then.

[eluser]fabgonber[/eluser]
[quote author="web-johnny" date="1310847702"]
This only happens on the theme "datatables" . It is a theme that works with the client side datatables. Flexigrid ajax works fine. Here is an example of how fast grocery crud is with 1000 items and more complicated queries such as two multiple relations - http://www.grocerycrud.com/examples/inde...management, . I don't think it could be faster. If though you think something it is wrong create your own model ( see four posts up from here for how to create your own model and adding it to grocery crud ) - http://ellislab.com/forums/viewreply/914742/ - and share it[/quote]

I will move from datatables to flexigrid and test...

With Flexigrid works fine... thanks!

[eluser]dodulz[/eluser]
i have problem with date picker with input datetime ((yyyy-mm-dd) hh:mm).
grocery input date picker can't get value.

[eluser]web-johnny[/eluser]
[quote author="dodulz" date="1311521276"]i have problem with date picker with input datetime ((yyyy-mm-dd) hh:mm).
grocery input date picker can't get value.[/quote] I can't understand what exactly the problem is. If you see the example http://www.grocerycrud.com/examples/inde...edit/10100 you can choose and get value to the datetime picker without problem. Please be more specific or show a printscreen of the problem.

[eluser]dodulz[/eluser]
on grocerycrud, when I create a table with a datetime data type, then it will generate groocerycrud filed with the datetime format (yy-mm-dd hh:mm).

the problem arises when I add data. I can not enter data,coz datetime that I choose on datepicker, does not look into the textfield. when I edit data it's no problem with datepicker. the problem when I add data.

so how to fix it?

Screenshot

[eluser]web-johnny[/eluser]
[quote author="dodulz" date="1311576186"]on grocerycrud, when I create a table with a datetime data type, then it will generate groocerycrud filed with the datetime format (yy-mm-dd hh:mm).

the problem arises when I add data. I can not enter data,coz datetime that I choose on datepicker, does not look into the textfield. when I edit data it's no problem with datepicker. the problem when I add data.

so how to fix it?

Screenshot[/quote]
UPS :-S I think you're right this is a BUG. I will look at it and send you which line to change

[eluser]Unknown[/eluser]
[quote author="javidhb" date="1308940731"]
I have a mysterious problem!!! Grocery CRUD doesn't show the data in my table.
all the DB's configs are ok, and when I use a table-name that doesn't exist in my db it shows FATAL error! but when i use a existing table-name, it doesn't show the data ONLY the bottom menu of the grocery CRUD.
and I used your examples, and I followed every thing correctly but still have the problem.
[/quote]

I had this same problem.. on my local XAMP machine it was working fine.. but on my production linux server it was failing with the above symptoms..

Turns out that you have to turn on php's short-tags (to enable <?=$blah ?&gtWink.

Hopefully that would help other people who experience the same issue Smile

[eluser]Manjunath Reddy[/eluser]
Is grocery CRUD library 2.0.x is compatible with CI 2.0.2 version.?




Theme © iAndrew 2016 - Forum software by © MyBB