jQWidgets Forums

jQuery UI Widgets Forums Grid Filter/Search databse issue

This topic contains 1 reply, has 2 voices, and was last updated by  ivailo 9 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Filter/Search databse issue #84461

    kavvson
    Participant

    Apperently searching/filtering with a left joined table doesn’t work. Do you have any solutions?

    columns: [
    	....
    	 { text: 'Status', datafield: 'Status',cellclassname: cellclassname },
            ....
    ]

    the generator

    foreach ($result as $row)
              {
                $orders[] = array(
                    'Status' => $row->Status,
    ...

    On filter attempt :: Unknown column ‘Status’ in ‘where clause’

    SQL SELECT zlec_status.nazwa AS Status, …. FROM zlec LEFT JOIN zlec_status ON zlec.status_zlecenia = zlec_status.id …..WHERE (Status LIKE ‘%1%’)

    I use your php generator.

    The JS part

    
    function applyFilters()
        {
    
            var filtergroupGeanre = new $.jqx.filter();
            var filtervalue = '1';
            var datafield = 'Status';
            var filtertype = 'stringfilter';
            var filter_or_operator = 1;
            var filtercondition = 'contains';
            var filterGeanre = filtergroupGeanre.createfilter(filtertype, filtervalue, filtercondition);
            filtergroupGeanre.addfilter(filter_or_operator, filterGeanre);
            $("#jqxgrid").jqxGrid('addfilter', datafield, filtergroupGeanre);
    
            $("#jqxgrid").jqxGrid('applyfilters');
        }
    Filter/Search databse issue #84474

    ivailo
    Participant

    Hi kavvson,

    It’s not related to the widget.
    You have to customize your php file. Your php have to return the data correctly.
    Please check your console for errors.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.