<h2>How to avoid the rpt-tempdXXX-View when using list-reports</h2><br/><div style="overflow-x:auto"><article><div ><h3 >Issue </h3><section><p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-family: Verdana, sans-serif; font-size: 8pt;">Create a list report with the following details:</span></p> <p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-size: 8pt;"><strong><span style="font-family: Verdana, sans-serif;">Data</span></strong></span></p> <p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-family: Verdana, sans-serif; font-size: 8pt;">Report Name: Active Incident List</span></p> <p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-family: Verdana, sans-serif; font-size: 8pt;">Source type: Table</span></p> <p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-family: Verdana, sans-serif; font-size: 8pt;">Table: incident</span></p> <p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-size: 8pt;"><strong><span style="font-family: Verdana, sans-serif;">Type</span></strong></span></p> <p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-family: Verdana, sans-serif; font-size: 8pt;">Select List type report</span></p> <p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-size: 8pt;"><strong><span style="font-family: Verdana, sans-serif;">Configure</span></strong></span></p> <p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-family: Verdana, sans-serif; font-size: 8pt;">Choose columns: leave it with default selected columns</span></p> <p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-family: Verdana, sans-serif; font-size: 8pt;">Group by: Assignment group</span></p> <p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-family: Verdana, sans-serif; font-size: 8pt;">Click on Run and Save the report.<br /><br /></span></p> <p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-family: Verdana, sans-serif; font-size: 8pt;"><img src="/sys_attachment.do?sys_id=209de6c71bcbc9d0acdc54e56b4bcbdc" width="847" height="351" /></span></p> <p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-family: Verdana, sans-serif; font-size: 8pt;">Clicking on the first Assignment group will open the list of records.</span></p> <p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-family: Verdana, sans-serif; font-size: 8pt;">Notice that a temporary view is created on this list.</span></p> <p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;"> </p> <p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-size: 8pt;"><img src="/sys_attachment.do?sys_id=689de6c71bcbc9d0acdc54e56b4bcbe0" width="755" height="266" /></span></p> <p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;"> </p> <p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-family: Verdana, sans-serif; font-size: 8pt;">The list layout of the report does not get preserved when clicking on the group. </span></p></section></div><div ><h3 >Cause</h3><section><p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-family: Verdana, sans-serif; font-size: 8pt;">The system creates a temporary view when clicking on any of the group from the grouped list report to ensure to view the same list layout as the Report.</span></p></section></div><div ><h3 >Resolution</h3><section><p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-family: Verdana, sans-serif; font-size: 8pt;">To avoid showing the temporary view, create the following Business Rule:</span></p> <p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-size: 8pt; font-family: 'Courier New'; color: #455464;"><br /><span style="background: white; color: #000000;">function testGetViewName() { </span><br /><span style="background: white; color: #000000;">if(view.startsWith("rpt-temp")){ </span><br /><span style="background: white; color: #000000;">answer = ""; </span><br /><span style="background: white; color: #000000;">} </span><br /><span style="background: white; color: #000000;">} </span><br /><br /><span style="background: white; color: #000000;">function testListGetViewName() { </span><br /><span style="background: white; color: #000000;">testGetViewName(); </span><br /><span style="background: white; color: #000000;">} </span></span></p></section></div></article></div>