cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 smarttemplate with multiple record selection and navigation

sunsapblr
Participant
0 Kudos

Hi All,

I have a requirement wherein there will be a list/table report in the first screen after applying the search criteria. Then I will be selecting multiple records from this list and I need to navigate to the second screen, where all these records are to be shown in edit mode and I need to select multiple records in this report and update all these records.

Can you please suggest a smart template or standard control suitable for this App?

Do I need to look for freestyle App?


Thanks & Regards

Sunil

Accepted Solutions (0)

Answers (4)

Answers (4)

Joseph_BERTHE
Active Contributor
0 Kudos

Hello,

Please, refere to the SAP Fiori Guideline to mass editing procees

Regards,

Joseph

sunsapblr
Participant
0 Kudos

Hi Vaibhav/Hunter,

Thanks for the quick reply.

Can you please guide me on how to navigate from multiple records in one screen to another screen?

Regards

Sunil

Former Member
0 Kudos

Hi Sunil,

In addition to Vaibhav's suggestion, you may want to look into using the master/detail template since that would allow you to easily swap between records, and control which fields are editable. If all fields associated with an individual record need to be editable, then perhaps using the sap.m.Table in edit mode would be your best choice.

Best Regards,

Hunter Young

sunsapblr
Participant
0 Kudos

Hi Hunter,

Thanks for the quick reply.

Can you please guide me on how to navigate from multiple records in one screen to another screen?

Regards

Sunil

mvaibhav
Contributor
0 Kudos

hi Sunil,

sap.m.Table should be best suited for our requirement.

Please refer the following link for more details :

https://sapui5.hana.ondemand.com/#/entity/sap.m.Table

Editable Scenario - https://sapui5.hana.ondemand.com/#/sample/sap.m.sample.TableEditable/preview

Thanks,

Vaibhav

sunsapblr
Participant
0 Kudos

Hi Vaibhav/Hunter,

Thanks for the quick reply.

Can you please guide me on how to navigate from multiple records in one screen to another screen?

Regards

Sunil

mvaibhav
Contributor
0 Kudos

hi Sunil,

There are various way to do it. One of the possible ways is as follows:

You can read the selected records from the table on an event...say click of a Button.

Store those records in a named model and set the model at component level.

Eg :

var selectedRecords = table.getSelectedItems();

this.getOwnerComponent().setModel(selectedRecords, "selectedData")

Then once you navigate to next view, you can read the named model and bind it to the table.

this.getOwnerComponent().getModel("selectedData");

Thanks,

Vaibhav

sunsapblr
Participant
0 Kudos

Hi Vaibhav,

Thanks for the reply.

This seems to be helpful for my issue.

Thanks & Regards

Sunil