On the policy search page you can search by different transactions by selecting a typecode from the Search For TypeKeyInput field. Is there a way to have the results return all transactions (cancellation, policychange, submission, etc) and not just the one selected. Is there a way to have search all functionality?
Asked
Active
Viewed 181 times
1 Answers
0
PolicySearchScreen PCF uses DatabasePolicySearchPanelSet and it uses search function in gw.search.PolicySearchCriteriaEnhancement, there you can to add the condition that you like if transaction type isn't selected

Carlos Duque
- 482
- 3
- 7
-
I'm not sure where to add the condition on the DatabasePolicySearchPanelSet.pcf – iceMan33 May 06 '19 at 12:19
-
You must not add the condition in DatabasePolicySearchPanelSet.pcf, you must add the condition in the Enhacement. – Carlos Duque May 06 '19 at 13:21
-
I am in the Enhacement but not sure how to create a condition that would return all results since it's returning IQueryBeanResult in that search() function. – iceMan33 May 06 '19 at 14:01
-
-
Hi. I'm seeing OOTB Enhacement and the query is in a .class then you can't modify. You must do a Query.make(PolicyPeriodSummary) and add each one compare that you needs (to build your own query) – Carlos Duque May 13 '19 at 11:36
-
Do you have an example? Also, how can I return it all as an IQueryBeanResult? – iceMan33 May 13 '19 at 14:58
-
Query.make(PolicyPeriodSummary).select() --- select() function return a IQueryBeanResult of Query entity, before of select you must add compare conditions. – Carlos Duque May 13 '19 at 16:36