Reputation: 148
We are displaying today followup on Dashboard. Like
While user click on view link filter data is displayed on SalesOrder module on Vtiger list view page
But while we click on pagination count it displays different.
I have update query in list view while my custom parameter pass from dashboard and I will get result accordingly on list page but I don't know how we can set pagination according to my custom parameter or Custom query.
Upvotes: 0
Views: 536
Reputation: 148
In Vtiger, Any Module List page pagination count will come from "getListViewCount()"
function.
We have put this function in our salesOrder/models/Listview.php
After that i have taken one hidden variable in ListViewContents.tpl
file for our custom parameter also we have update getDefaultParams
Event from layouts\vlayout\modules\Vtiger\resources\List.js
and pass our custom parameter with custom variable.
with the help of that we can perfect count for custom parameter query.
here you can see the result,
now, click on view link
Upvotes: 1