[Vtigercrm-developers] Select all & filters
Sukhdev Mohan
s.mohan at myti.it
Thu Jun 18 08:30:04 GMT 2020
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
> 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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20200618/8f82770a/attachment.html>
More information about the vtigercrm-developers
mailing list