cancel
Showing results for 
Search instead for 
Did you mean: 

Object table /Contact Cell Table MDK extension with Switch Button

0 Kudos
514

Hi MDK Experts,

I am very new to SAP MDK .Need some guidance from your end.

I am using Object table in a particular requirement similar like below :


I am able to add Attributes like Description,Footnote,Status,Image by binding to the service and displaying it dynamically.I am binding with the Custom oData service.


There is certain requirement to include the switch button for every item in the list.Whenever the user clicks on the switch button an CRUD operation takes a certain property changes(Updates) from yes to no.Based on the particular condition the switch button will be changed.For example if it is on it will signify the Product has been received for the particular Line Item if the switch button is off it will signify that the product has not been received.

We will be building both Web and Mobile application for the above requirement.
For Web it can work fine with UI5 but for mobile our approach is with MDK(offline).

I just want to know if switch button is technically possible inside the Object Table or Contact Table.
And it will highly helpful if i can get some reference

Thanks,

Arka Basu

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

arkabasu8974

Were you able to resolve your issue? If any of the below responses helped you, then please mark the helpful answer by accepting it OR post an answer so others might benefit from your findings and then close this discussion.

Regards,
Jitendra (SAP Community Moderator)

Accepted Solutions (0)

Answers (2)

Answers (2)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

arkabasu8974

MDK 5.2 is out in case you might be interested to try out what Bill suggested for the new custom accessory icon support.

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

MDK does support custom extension controls. We do not have an out of the box solution for this use case. If you want an actual switch control embedded in the object cell you would have to write an extension control to provide that functionality.

You might also be able to use the new custom accessory icon feature coming in MDK 5.2 to display two icons (selected, unselected) and toggle the state in the OnAccessoryButtonPress event when performing your other actions. MDK 5.2 is targeted for release before the end of the month.