cancel
Showing results for 
Search instead for 
Did you mean: 

ObjectTable swipe behaviour not working

04-02-2025 9:10 AM
Girish_KR Participant
1415 views 7 comments
0 Likes
SAP Managed Tags
Labels
SAP Mobile Development Kit
Subscribe

Hi,

I am facing an issue with implementing swipe behaviour in ObjectTable.

Scenario:

  1. I have added a ObjectCell to display list of notifications.
  2. If the user right swipes on a row, user to able to delete the notification.
  3. After clicking on a single row of list, user is navigated to detail screen.
  4. Once user comes back from detail screen, the above clicked row item is not showing swipe behaviour. If the user tries to swipes on other rows, the behaviour is working as expected.

Please provide your guidance.

MDK SDK used: 24.11.2-002

0 Likes

Accepted Solutions (0)

Answers (3)

Answers (3)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Likes

I am not seeing this behavior in my tests.  Can you provide more detail?

ArunJacob
Active Participant
0 Likes

Hi,

//deselect the row before nav. to detail page.

context.getPageProxy().getControl('YourObjectTableSection').getSelectedItems().forEach(item => item.setSelected(false));

Thanks

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Likes

I tested on MDK 24.11.3 and am unable to reproduce the issue.  After going to the detail page and returning when I swipe on the same item I am still seeing the context menu appear and work as expected.  Can you provide more details?

Girish_KR
Participant
0 Likes
Hi Bill, The issue is happening on both android and iOS. Scenario: User navigates to the Notification List. After clicking on a particular notification user navigates to notifcation detail screen. Once user comes back to Notification List the initially tapped notification is not showing swipe behaviour. Once I refresh the page, the swipe behaviour starts working.
Girish_KR
Participant
0 Likes
Also I am not able to upload any code snippet or screen recording of the issue we are facing.
bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Likes
You can send a private message and attach files