How to filter SQL values
Last Post 10-18-2012 10:54 AM by Collin. 4 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages
CollinUser is Offline
going with the flow
going with the flow
Posts:57
Avatar

--
10-18-2012 10:10 AM
    I created successfully a combo box filter to equal:

    SELECT Product as SearchOption, ProductID as SearchOptionValue FROM vw_xxx
    Group by Product, ProductId

    But it does not filter the data from vw_xxx when a product is selected.

    Am I using the correct syntax?

    Thanks
    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    10-18-2012 10:25 AM
    Hi Collin - Are you using the "Free Form SQL" option? If so, please refer to the user guide for how to utilize the free form query with search fields.

    Thanks,

    Chad
    CollinUser is Offline
    going with the flow
    going with the flow
    Posts:57
    Avatar

    --
    10-18-2012 10:32 AM
    No, I'm not using free form SQL. I'm pulling from a table/view and the search field is reference the same view.

    I might have thrown you off originally by saying "filter" when I meant "search field."
    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    10-18-2012 10:34 AM
    Hi. That is strange then... You might consider enabling Debug Mode within the module and so forth. So when you change this are you then clicking "Search"?

    -Chad
    CollinUser is Offline
    going with the flow
    going with the flow
    Posts:57
    Avatar

    --
    10-18-2012 10:54 AM
    I'm liking that debug mode...

    Turns out it was searching on the incorrect value, so the correct statement should be:

    SELECT Product as SearchOption, Product as SearchOptionValue FROM vw_xxx
    Group by Product


    ---
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi