Skip to Content
0

SAPUI5 smarttemplate with multiple record selection and navigation

Feb 26 at 06:27 AM

46

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Vaibhav Maheshwari Feb 26 at 02:53 PM
0

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

Show 3 Share
10 |10000 characters needed characters left characters exceeded

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

0

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

0

Hi Vaibhav,

Thanks for the reply.

This seems to be helpful for my issue.

Thanks & Regards

Sunil

0
Hunter Young
Feb 26 at 10:47 PM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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

0
Sunil SAP Feb 27 at 06:04 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Joseph BERTHE Feb 27 at 11:25 AM
0

Hello,

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

Regards,

Joseph

Share
10 |10000 characters needed characters left characters exceeded