Question
IP Australia
AU
Last activity: 16 Oct 2018 12:03 EDT
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.