when user clicks on delete button i need to show confirm popup(do you really want to delete ?(yes/no)) if user clicks on yes then need delete the item and after that show another popup(deleted successfully) .Here the problem is that i cannot use OOTB delete item and if i remove the primary(current page of list) page then i cannot show the second popup which will be throwing error(no page reference so searching in @baseclass for the rules).
when user clicks on add button : need to validate already added records if validation passed then only record will be added after the focused record.
Posted: 5 years ago
Updated: 5 years ago
Posted: 22 Oct 2015 8:08 EDT Updated: 22 Oct 2015 8:11 EDT
when i refresh section after clicking on the yes button(on click i am deleting(page-remove) current page and refreshing current section ) it is throwing error.this might be becoz the primary page is removed.
for add functionality i can write an activity to do validation and append a page after the last item but i cannot add item after the focused row(which is the requirement).
Based on information you provided to add, if you want to add new row not at end of list but after focussed row you can use pyRowSelected.
Use of pyRowSelected Selectable ListView Property to store true/false based upon listview row selection.
The row selected has pyRowSelected flag as true and other rows as false, based on this you can add new row after the selected row and not after last row in grid.
In activity use <INSERT> instead of <APPEND>.
<INSERT > index Use the <INSERT> keyword followed by an integer to insert a new element and its value into a Value List or Page List property at a numeric index position. Any elements with the same or higher index value are "pushed down" by one. This keyword can only be used in target property references, not expressions.