Comments (19)
I use this (updated):
$qb->andWhere($qb->expr()->gt('tblsolicitudes.cservId.cservPrice', '0'));
from datatablesbundle.
thanks for the response,
I'm getting the error:
FatalErrorException: Error: Call to undefined function Gestion\Bundle\ConsularBundle\Controller\Cobros\expr()
from datatablesbundle.
Oops, I mean $qb->expr()
from datatablesbundle.
thanks the expression works very well,
problem is, I want to filter using a column cservPrice from the table catservices related to tblsolicitudes by cservId
from datatablesbundle.
Are you using Doctrine ORM relationships (getting the entity manager) or plain DBAL for the QueryBuilder?
from datatablesbundle.
Doctrine ORM
from datatablesbundle.
Take a look to this thread or this.
from datatablesbundle.
Thanks,
I'm trying, but for a reason with the sg/datatablesbundle it sounds weird and I can't do it, I keep trying.
from datatablesbundle.
it could be nice.
from datatablesbundle.
There are now two callback types and a direct access to the query:
// Callback example
$function = function($qb)
{
$qb->andWhere("post.id < 5");
};
// Add the callback function as WhereResult
//$query->addWhereResult($function);
// Or add the callback function as WhereAll
//$query->addWhereAll($function);
// Or get the actual query
$query->buildQuery();
$qb = $query->getQuery();
$qb->andWhere("comments.id < 5");
$query->setQuery($qb);
return $query->getResponse(false);
//return $query->getResponse();
from datatablesbundle.
Thanks stwe!
from datatablesbundle.
Hi, I'm filtering my results with a andWhere Query, the results are OK but not the pagination, which seems to be based on the global query.
Do you have this problem too ?
from datatablesbundle.
i agree @DrDJo . I have same problem. Full record show on pagination bar.
from datatablesbundle.
Add the callback function as WhereAll:
$function = function($qb)
{
$qb->andWhere("post.id < 5");
};
$query->addWhereAll($function);
return $query->getResponse();
from datatablesbundle.
Hi stwe,
Thanks for your answer.
How can I give some parameter to the function ?
For example, a $postId param.
from datatablesbundle.
i try to open indexresultaction route but error undefined index:search
what is this?
from datatablesbundle.
open a new ticket with your problem. I need your datatables class and your
controller actions.
Am 03.07.2015 18:57 schrieb "emrevural20" [email protected]:
i try to open indexresultaction route but error undefined index:search
what is this?—
Reply to this email directly or view it on GitHub
#60 (comment)
.
from datatablesbundle.
datatable works now but resutls route gives undefined index:search error. yesterday i saw database data
in this route as json format.
from datatablesbundle.
i need another help. How can i show my column as a link?
from datatablesbundle.
Related Issues (20)
- Basic sample configuration in Symfony5. Someone? HOT 3
- Custom DateTimePicker HOT 1
- Disable translation of selectFilter entries
- Showing all entries does not work HOT 2
- Edit inline selected value missing HOT 1
- Notice: Array to string conversion in search VirtualColumn HOT 4
- Calling setHint() on the Query
- Support for the v1.x HOT 4
- parent recursive
- SetMaxResult HOT 1
- Individual Filtering error HOT 1
- Array to string conversion in search VirtualColumn HOT 1
- Problem with dql, filter and global search
- Undefined constant Doctrine\DBAL\Types\Type::DATETIME HOT 4
- Bug on function getName() HOT 3
- Hidden DateTimeColumn is all empty when switched to visible until reload HOT 1
- Symfony 6.0 support HOT 3
- Search in translate value of VirtualColumn HOT 1
- Does MultiselectColumn require or use the Select extension? HOT 2
- Invalidate Result cache? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datatablesbundle.