<![CDATA[ Support/Comments for Rowboat 1.0.0-rc1 - MODX Community Forums]]> https://forums.modx.com/thread/?thread=39264 <![CDATA[Re: Support/Comments for Rowboat 1.0.0-rc1]]> https://forums.modx.com/thread/39264/support-comments-for-rowboat-1-0-0-rc1?page=7#dis-post-553545 BobRay Sep 02, 2017, 05:11 AM https://forums.modx.com/thread/39264/support-comments-for-rowboat-1-0-0-rc1?page=7#dis-post-553545 <![CDATA[Re: Support/Comments for Rowboat 1.0.0-rc1]]> https://forums.modx.com/thread/39264/support-comments-for-rowboat-1-0-0-rc1?page=7#dis-post-553524
(
    [MODx version] => 2.5.7-pl
    [Php version] => 5.6.31-4+ubuntu16.04.1+deb.sury.org+4
    [MySql version] => 5.7.19-0ubuntu0.16.04.1
    [AdvSearch version] => 2.0.0 beta2
)


local
[AdvSearch] System environment: Array
(
    [MODx version] => 2.5.7-pl
    [Php version] => 5.6.31
    [MySql version] => 10.1.25-MariaDB
    [AdvSearch version] => 2.0.0 beta2
)

any php setting need to be enabled. Other than this rest of functionality seems working fine. Please guide me]]>
apsar_809 Sep 01, 2017, 10:44 AM https://forums.modx.com/thread/39264/support-comments-for-rowboat-1-0-0-rc1?page=7#dis-post-553524
<![CDATA[Re: Support/Comments for Rowboat 1.0.0-rc1]]> https://forums.modx.com/thread/39264/support-comments-for-rowboat-1-0-0-rc1?page=7#dis-post-553500 BobRay Aug 31, 2017, 08:42 PM https://forums.modx.com/thread/39264/support-comments-for-rowboat-1-0-0-rc1?page=7#dis-post-553500 <![CDATA[Re: Support/Comments for Rowboat 1.0.0-rc1]]> https://forums.modx.com/thread/39264/support-comments-for-rowboat-1-0-0-rc1?page=7#dis-post-553495
[[!Rowboat? 
&table=`[[++table_prefix]]site_tmplvar_contentvalues` 
&tpl=`test_tpl` 
&limit=`0` 
&columns=`{"DATE_FORMAT(value,'%Y-%m-01') ":"seminar_month_value"," DATE_FORMAT(value,'%M, %Y')":"seminar_month_name"}`
&debug=`1`
&sortBy=`value`
&cacheResults=`0`
&where=`{"tmplvarid:=":7}`
]]

this code is working fine. But if I change
&columns=`{"DISTINCT DATE_FORMAT(value,'%Y-%m-01')  ":"seminar_month_value","DATE_FORMAT(value,'%M, %Y')":"seminar_month_name"}`

It is running no results.
query generated.
 	SELECT DISTINCT DATE_FORMAT(value,'%Y-%m-01') AS `seminar_month_value`, DATE_FORMAT(value,'%M, %Y') AS `seminar_month_name` FROM `modx_site_tmplvar_contentvalues`
WHERE `tmplvarid` = 7
ORDER BY `value` ASC

While running same code in local windows system it is working fine. Please guide me how to add distinct in rowBoat]]>
apsar_809 Aug 31, 2017, 04:23 PM https://forums.modx.com/thread/39264/support-comments-for-rowboat-1-0-0-rc1?page=7#dis-post-553495
<![CDATA[Re: Support/Comments for Rowboat 1.0.0-rc1]]> https://forums.modx.com/thread/39264/support-comments-for-rowboat-1-0-0-rc1?page=7#dis-post-506465 sottwell Aug 13, 2014, 10:58 PM https://forums.modx.com/thread/39264/support-comments-for-rowboat-1-0-0-rc1?page=7#dis-post-506465 <![CDATA[Re: Support/Comments for Rowboat 1.0.0-rc1]]> https://forums.modx.com/thread/39264/support-comments-for-rowboat-1-0-0-rc1?page=6#dis-post-506464
SELECT * FROM `modx_doodles` WHERE `id` IN "Array" ORDER BY `name` ASC LIMIT 10 

So the function for handling the "where" property isn't dealing with the inner array:
if (!empty($where)) {
    $where = $modx->fromJSON($where);
    if (!empty($where)) {
        $c->where($where);
    }
}

This produces
array(1) { ["id:IN"]=> array(2) { [0]=> int(2) [1]=> int(3) } }
]]>
sottwell Aug 13, 2014, 10:50 PM https://forums.modx.com/thread/39264/support-comments-for-rowboat-1-0-0-rc1?page=6#dis-post-506464
<![CDATA[Re: Support/Comments for Rowboat 1.0.0-rc1]]> https://forums.modx.com/thread/39264/support-comments-for-rowboat-1-0-0-rc1?page=6#dis-post-506458 jisaac Aug 13, 2014, 07:42 PM https://forums.modx.com/thread/39264/support-comments-for-rowboat-1-0-0-rc1?page=6#dis-post-506458 <![CDATA[Re: Support/Comments for Rowboat 1.0.0-rc1]]> https://forums.modx.com/thread/39264/support-comments-for-rowboat-1-0-0-rc1?page=6#dis-post-505529 ]]> BobRay Aug 04, 2014, 10:23 PM https://forums.modx.com/thread/39264/support-comments-for-rowboat-1-0-0-rc1?page=6#dis-post-505529 <![CDATA[Re: Support/Comments for Rowboat 1.0.0-rc1]]> https://forums.modx.com/thread/39264/support-comments-for-rowboat-1-0-0-rc1?page=6#dis-post-505452 jisaac Aug 04, 2014, 10:24 AM https://forums.modx.com/thread/39264/support-comments-for-rowboat-1-0-0-rc1?page=6#dis-post-505452 <![CDATA[Re: Support/Comments for Rowboat 1.0.0-rc1]]> https://forums.modx.com/thread/39264/support-comments-for-rowboat-1-0-0-rc1?page=6#dis-post-487582
[[!Rowboat?
   &table=`modx_doodles`
   &tpl=`doodleItems`
   &where=`{"id:IN":[1,2,3]}`
]]


not sure, if that will work with Rowboat.

with migxLoopCollection or pdoResources, I think it does.]]>
Bruno17 Jan 17, 2014, 08:46 AM https://forums.modx.com/thread/39264/support-comments-for-rowboat-1-0-0-rc1?page=6#dis-post-487582