jQWidgets Forums

jQuery UI Widgets Forums Grid Set Column Alias In Searching

This topic contains 0 replies, has 1 voice, and was last updated by  C.S.Putera 11 years, 3 months ago.

Viewing 1 post (of 1 total)
  • Author
  • Set Column Alias In Searching #50631

    C.S.Putera
    Participant

    Hello. I am using jqxgrid to display data. My query is this :

    SELECT item.item_name, supplier.company_name AS supplier_company_name
    FROM tbl_item item LEFT JOIN tbl_supplier supplier ON item.supplier_id = supplier.supplier_id;

    Now, if I search using text field on column Supplier Name, it will generate error saying :

    Unknown column ‘supplier_company_name ‘ in ‘where clause’

    How to set column alias name for the grid ? Thank you

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.