[Vtigercrm-developers] Filter a popup from another popup
Alan Lord
alanslists at gmail.com
Fri Feb 8 10:15:49 GMT 2019
If I understand you right,
You need to use the source fieldname:
> $sourceField = $request->get('src_field');
as the source of the popup (so you know which popup your custom query
should relate to), then have a custom function to retrieve whatever
value you need, e.g. from your first UIType10 field, then pass this to
the ListView model.
But you have to start from the Popup view class and pass the relevant
information from there into the RelationListView model to use in the query.
But do bear in-mind that none of this will work for the typeahed search
feature of UIType10s as I mentioned previously.
Al
On 07/02/2019 19:32, nab wrote:
> Thank you Alan for this clarification.
> If we can find a solution to this issue, it will be really beautiful because
> this situation of using two dependent popups occurs frequently. However,
> the solution that I'm sure 100% is to retrieve the id or the name of the
> item selected in the pop-up window and use it to modify the ListQuery query
> located in modules / Vtiger / models / ListView.php. In the
> "getListViewEntries ($ pagingModel)" function, insert your condition to
> modify $ listQuery. In our case, we will use our retreived id or name as a
> condition. Now, how can we retreive the selected id from ListView.php file,
> Have you an idea?
>
>
>
>
> --
> Sent from: http://vtiger-crm.2324883.n4.nabble.com/vtigercrm-developers-f4.html
> _______________________________________________
> http://www.vtiger.com/
>
More information about the vtigercrm-developers
mailing list