⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

On top of Search add another field for Data search between



dreamwish
  • profile picture
  • Member

Posted 04 May 2017 - 14:44 PM

Hello to all.

I'm not good at PHP but i read a lot of tutorials :D

 

I bought the enterprise template and did all i needed.

The problem came when i was suppose to have a filter with a date that was between date1 and date2.

 

Im using the standard search that comes with the template, there are all the filters on top of all column.

Now in the field where is DATA i want to have a second data2 where it will search between data1 and data2 .

 

I tried with:

//add custom field
$crud->callbackColumn('Bank', function () {
return '<input type="text" maxlength="50" value="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" name="Data_Uruchomienia_to">';
});

 

But this didnt add the second Data2 , it just adds the second editbox next to the first data1.

 

Any ideas how to do this? I searched the whole forum and internet. Couldnt find what i needed.

There are suggestions to use custom Query , and there is even a solution which i havent tried yet, but this doesnt help me add the second field data2 where i can use it as parameter in a between data1 and data2 query.

 

Any help is appreciated.

Thank you

 


dreamwish
  • profile picture
  • Member

Posted 10 May 2017 - 19:43 PM

thanks guys for the help.

i couldnt manage to do this, i know i dont have enough skills for PHP.

So i switched to MYSQL MAESTRO PHP GENERATOR.

So much for GroceryCrude enterprice support.

not really working as it should. i know its not expensive.

but i will never recommend it for newbies .