Untitled
unknown
plain_text
25 days ago
3.1 kB
3
Indexable
{"serviceContext":"appeals", "userDetails":{ "browserName":"Chrome", "deviceType":"browser"}, "currentActionDetails":{ "pageId":"APLPR", "pageAction":"APLPRNext" ,"indvSeqDetails":{}}, "pageCollection":{"programCd":"","programReasonCd":""}} curretly we are getting the pagecollections as above from th ebelow code: createAppealRequest(serviceContext, pageAction, indvId, seqNum, type, activeIndv) { let request = {}; let pageId = AppContext.pagedetails.getPageConfig().pageId; let model = AppContext.model.getValue(pageId); if (!_.isUndefined(indvId) && indvId !== null) { model.indvId = indvId; } //serviceContext request.serviceContext = serviceContext; //userDetails let userDetails = {}; userDetails.loginUserId = AppContext.security.getProfile()._id; if (_.isUndefined(userDetails.loginUserId) || userDetails.loginUserId === null) { userDetails.tokenA = CPUtil.getValueFromAppContext( ApplicationConstants.ANONYMOUS_TOKEN, ); } userDetails.appNumber = PSUtil.getAppNum(); userDetails.browserName = Lift.Device.browserName; userDetails.deviceType = Lift.Device.deviceType; request.userDetails = userDetails; //indvSeqDetails let indvSeqDetails = {}; //currentActionDetails let currentActionDetails = {}; currentActionDetails.pageId = pageAction.pageId; currentActionDetails.pageAction = pageAction.pageAction; currentActionDetails.indvSeqDetails = indvSeqDetails; currentActionDetails.indvSeqDetails.individualSequence = model.indvId; if (!_.isUndefined(seqNum) && seqNum != null) { currentActionDetails.indvSeqDetails.categorySequence = seqNum; } else { currentActionDetails.indvSeqDetails.categorySequence = model.seqNum; } if (!_.isUndefined(type) && type != null) { currentActionDetails.indvSeqDetails.categoryType = type; } else { currentActionDetails.indvSeqDetails.categoryType = model.type; } request.currentActionDetails = currentActionDetails; //pageCollection request.pageCollection = model; if (activeIndv) { request.pageCollection.indvIds = DataJsonUtil.getActiveIndvList(); } return request; } can you update the above code snippet to return pageCollection in the below manner: { "serviceContext": "Appeals", "userDetails": { "loginUserId": "b6db655b-94ac-4f89-b8e1-c2b3d65512cd", "appNumber": "" }, "currentActionDetails": { "pageId": "APLPR", "pageAction": "APLPRNext", "indvSeqDetails": {} }, "pageCollection": { "appealId": "796cfb5b-f7f1-4329-a4c1-9c50b7050a0a", AppealsProgram_Collection": { "programCd": "SNAP", programReasonCd": "PRC" } } }
Editor is loading...
Leave a Comment