Support Article
Wrong List View is picked up during delete row in List View
SA-34181
Summary
Two old style data table Listview reports, which are used to edit instances of the data class, are referred in two report shortcuts.
In the user portal when any of the report shortcut is clicked the corresponding report window appears. If user tries to delete a record it works fine.
Now clicking on the other shortcut opens the other report.
However, clicking the delete icon fails to delete the a row from this second report.
Error Messages
Not Applicable.
Steps to Reproduce
1. Create two Listviews which can edit/delete records of a data table
2. Create two Report shortcuts.
3. Open user or manager portal and execute the reports one after another.
4. Try to delete record in each execution.
Root Cause
Everytime a report is invoked the pyListViewContent page is updated, for first run the content of this page is copied to the "ListPage" clipboard page.
In the @baseclass ListEditor activity step 13 the second When condition skips copying if the "ListPage" already exists.
Thus when the second report is opened the record data corresponding to this report is not updated to the ListPage.
In the subsequent stages the actual delete which works on the ListPage content fails. This is because this page holds the record from the first report and the delete is trying to work on the context of the second report.
Resolution
Apply HFix-32284 to resolve this issue.
Published April 23, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.