JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums General Discussions Query Builder is not working if the value is having special characters in query

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #103761
    Pavan
    Participant

    Hi Team,

    I am using smart-query-builder.

    My fields and input value are as shown below:

    fields: [
    { label: ‘Program Name’, dataField: ‘programName’, dataType: ‘string’, filterOperations: [‘status_equals’, ‘startswith’] },
    { label: ‘Part Number’, dataField: ‘partNumber’, dataType: ‘string’, filterOperations: [‘status_equals’] },
    { label: ‘Unit Price’, dataField: ‘price’, dataType: ‘number’, filterOperations: [‘<‘, ‘status_equals’] },
    ],

    value: ‘partNumber = “PN-5478” && programName = “#*” && price < “10”‘

    Here programName value is “#*” having special characters.

    If it is having special characters then the field is not showing in query builder UI.

    The condition after programName which is “&& price <” is populating instead of empty value.

    Codepen for reference.

    https://codepen.io/PakkiPavan/pen/oNdEYPx?editors=0010

    Can you please help with this why the fields having special characters is not showing in query builder UI?

     

    Thanks,

    Pavan.

    • This topic was modified 1 year, 6 months ago by Pavan.
    • This topic was modified 1 year, 6 months ago by Pavan.
    • This topic was modified 1 year, 6 months ago by Pavan.
    • This topic was modified 1 year, 6 months ago by Pavan.
    • This topic was modified 1 year, 6 months ago by Pavan.
    #103777
    ivanpeevski
    Participant

    Hi Pavan,

     

    Thanks for the feedback! We will further investigate the issue and fix it for our next releases.

    Until then, the best workaround is to set value as an array like our demo here

     

    Best Regards,
    Ivan Peevski
    Smart UI Team
    https://www.htmlelements.com/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.