[Vtigercrm-developers] Select all & filters

nilay khatri nilay.spartan at gmail.com
Thu Jun 18 12:46:38 GMT 2020


GetRecordIdsFromRequest   if you need to get the IDS on the server side.
Otherwise add an ajax call to call an action which call the mentioned
function and return back the Ids as JSON?!

On Thu, Jun 18, 2020 at 2:01 PM Sukhdev Mohan <s.mohan at myti.it> wrote:

> Hi Alan,
> I need to get the ids selected from the user when they click “select all”
> instead of selecting the items one by one. I need to know this in case they
> had filtered by some parameters and even if they didn’t . I know that when
> you filter in the url there is set the “search_params” key which is usually
> in this form:
> [[[dbcolumn, operator, value]]]
>
> There is also the view name key which is the id in vtiger_customview
>
> So My question is how do I mimic the tiger core functionality to present
> data when searched for some value in some columns?
>
> Secondly I noticed that apart from the URL keys, vtiger stores them also
> in the session. So I was wondering which should I look for? It seems that
> Request object also tries to interrogate the session.
>
> Best Regards,
> Sukhdev Mohan
> ———————————
> Cel. (+39) 320 7020345
> Email s.mohan at myti.it <s.mohan at myti.it>
>
>
>
>
> Il giorno 18 giu 2020, alle ore 10:17, Alan Lord <alanslists at gmail.com>
> ha scritto:
>
>
>
> On 17/06/2020 23:54, Sukhdev Mohan wrote:
>
> Upping this
>
>
> Question number 2: do you know if it's the query sent in get (appended to
> uri) to command or it's the array set in the session?
>
>
> I don;t actually properly understand your main question (maybe try
> re-phrasing it?).
>
> But to answer to #2 simply turn on the Javascript console in your browser
> and examine the contents of the relevant POST or GET request.
>
> Also checkout the Vtiger_Mass_Action class and the
> getRecordsListFromRequest() method :-)
>
> HTH
>
> Al
> _______________________________________________
> http://www.vtiger.com/
>
>
> _______________________________________________
> http://www.vtiger.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20200618/41b3133d/attachment.html>


More information about the vtigercrm-developers mailing list