How to make the custom query for popup view, I made changes in ViewList as mentioned above but it doesn't affect on the list which came in popup view list.
My requirement is to pass product type when I open this from invoice module.
In invoice, we have a product line and service line, and from product module, i have differentiated product by type while adding new product as a "Goods" or "Service".
Now i have created 2 custom files, view.list.php, and view.popup.php.
But do not understand how to pass type flag from view.popup.php to view.list.php
Will be great if someone suggests me how to filter product data when relating popup called from the service line and popup called from the product line.
Thanks
You will need to change the listing query and add condition accordingly.
Following are the steps you need to follow in order to extend the LlistView query:
Step 1: Create or edit
custom/modules/Opportunities/views/view.list.php
and add following code,Step 2: Refresh list view!
The probable customizations you will see in the query are:
This is what we had to do to make it upgrade safe:
$html .= '<script src="modules/AOS_Products_Quotes/line_items.js"></script>';
To call your custom Line_Items.php you have to do this change on AOS_Quotes/Ext/Vardefs/vardefs.ext.php:
Make sure to edit the custom line_items.js to filter based on your needs. Look for
sqs_objects
that have acondition
property where you can filter things, leaving hardcoded/default values or (what we do) get it from another JS call likewindow.getCurrenUserSettings