<div dir="ltr">Thanks! for the notification Alan. We will review this post release.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 10, 2020 at 2:20 PM Alan Lord <<a href="mailto:alanslists@gmail.com">alanslists@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">anyone?<br>
<br>
On 07/07/2020 13:30, Alan Lord wrote:<br>
> I'm looking at the vtws_retrieve_related and the vtws_query_related apis.<br>
> <br>
> vtws_retrieve_related is OK - but it is limited in the sense you get <br>
> back everything.<br>
> <br>
> I would like to, maybe, add LIMIT and/or ORDER BY clauses...<br>
> <br>
> If I keep the query extremely simple, e.g.<br>
> <br>
>> $query = "SELECT * FROM HelpDesk";<br>
>> $data = vtws_query_related($query, '11x566', 'HelpDesk', $current_user);<br>
>> print_r($data);<br>
> <br>
> Then it works - but I can't add an ORDER BY clause. I couldn't add a <br>
> simple WHERE clause either. The VTQL_Parser threw an exception no matter <br>
> what I tried.<br>
> <br>
> Is it possible to use an ORDER BY clause? Can you provide some <br>
> documentation and/or examples? If not - what would a Marketplace module <br>
> have to do? Would it have to iterate/post process *all* the returned <br>
> data to effectively introduce ordering and/or limits?<br>
> <br>
> <br>
> Also, I note that in my simple query above, unlike vtws_query, if I <br>
> include the semi-colon in the query the query fails. This isn't <br>
> consistent - in vtws_query you MUST terminate the query with a ";".<br>
> (I expect it is the preg_match test in QueryRelated.php that is causing <br>
> this.)<br>
> <br>
> <br>
> Cheers<br>
> <br>
> <br>
> Al<br>
> <br>
> <br>
> <br>
> <br>
> _______________________________________________<br>
> <a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
> <br>
<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">With<br>Best Regards<br>Uma.S<br><div>Vtiger Team</div></div></div>