Question

5
Replies
1146
Views
MohammadS4753 Member since 2013 48 posts
Accenture
Posted: 3 years ago
Last activity: 2 years 11 months ago
Closed
Solved

how to pass parameters to custom populator function to filter data page

Hi,

I have a requirement to fetch data from 'D_pyUserWorkList' data page and filter the results using user input parameters and load to a different data page 'D_UserWorkList_filter'. But this is not working, I suspect parameters are not being passed correctly.

As I am filtering on 'D_pyUserWorkList' data page, I am not whitelisting. but I whitelisted 'D_UserWorkList_filter' data page. and I am using below custom popular function to load data.

var UserworklistcustomFunction = function(parametersMap, clientStore, onSuccess, onFailure) {
var targetDatapageName = "D_UserWorkList_Filter";
var query = "SELECT * from D_pyUserWorkList WHERE pxRefObjectInsName = ?";
var queryParameters = [parametersMap.SearchID];
clientStore.runQuery(query, queryParameters , targetDatapageName, onSuccess, onFailure);
};
pega.u.ClientCache.registerLargeDatapage("D_UserWorkList_Filter", UserworklistcustomFunction, ["D_pyUserWorkList"]);

SearchID is a property on clipboard to which user selected value will be posted.

Any help would be appreciated.

Thanks,

Mohammad Gouse.

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Mobile
Moderation Team has archived post
Share this page LinkedIn