Ketan Panchal
Ketan Panchal

Reputation: 148

How we can set Pagination as per custom parameter in Vtiger

We are displaying today followup on Dashboard. Like

enter image description here

While user click on view link filter data is displayed on SalesOrder module on Vtiger list view page

enter image description here.

But while we click on pagination count it displays different.

enter image description here

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

Answers (1)

Ketan Panchal
Ketan Panchal

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,

enter image description here

now, click on view link

enter image description here

Upvotes: 1

Related Questions