QueryBuilder - Condition not Change - Version 18.4.0.42

Good evening,

i am using version 18.4.0.42 and i have a problem with the QueryBuilder. Trying your example when I try to set the OR condition to GetSqlFromRules I always have an AND condition.

Even if I change between the two conditions, the result is always AND

Thanks


3 Replies 1 reply marked as answer

AS Aravinthan Seetharaman Syncfusion Team February 12, 2021 01:41 PM UTC

Hi Stefano, 
 
Thanks for contacting Syncfusion Support. 
 
We have checked your reported query. We can not reproduce your reported issue in our end. And we suspect that this issue has been occurred due calling GetSqlFromRules method without giving valid rules as a parameter. We can resolve your reported issue by using GetValidRules method as like in the below code snippet. 
 
 
private async void getSql() 
    { 
        content = QueryBuilderObj.GetSqlFromRules(QueryBuilderObj.GetValidRules()); 
        await DialogObj.Show(); 
    } 
 
 
For your reference we have provided sample here. 
 
 
Could you please check the above details, and get back to us, if you need assistance on this. 
 
Regards, 
Aravinthan S 


Marked as answer

SM Stefano Manto February 13, 2021 11:26 AM UTC

Perfect!
Thanks so much.

Is there a best practice to use the "is null" and "is not null" operator for the null type bit field?


AS Aravinthan Seetharaman Syncfusion Team February 15, 2021 01:34 PM UTC

Hi Stefano, 
 
Thanks for the update. 
 
We have checked your reported query. We suspect that your requirement is about “is null and is not null operators for null type”. In QueryBuilder we have provided support for four types of column field namely Number, String, Date, Boolean. Is null and Is not null operators will work on the type Numer and String only. For your reference we have created video demo and sample here 
 
 
 
If we misunderstood your requirement, please share more details. So that we can work on this and provide you a better solution quickly. 
 
Regards, 
Aravinthan S 


Loader.
Up arrow icon