Technology Blog Posts by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Chamdeep557
Explorer
0 Kudos
4,576

Step1: Create list report fiori elements app

Chamdeep557_1-1727082802104.png

Step2: Add action buttons (Edit,Save,Cancel)

Chamdeep557_2-1727083158854.png

Step3: Once action buttons are added then ext/controller file will be generated

Chamdeep557_3-1727083320994.png

Step4: Prepare edit template for Responsive table

Chamdeep557_4-1727083511493.png

Step5: on Press edit button rebind the responsive table with edit template

Chamdeep557_5-1727083628349.png

Step6:  Now User can edit below editable fields(on edit template we have used Input UI element for 2 columns )

Chamdeep557_6-1727083695273.png

Step7: While changing on the Input itself we can create batch operation

Chamdeep557_7-1727083893309.png

Step8: on Press Save we need to execute batch Operation

Chamdeep557_8-1727083919979.png

Step9: Patch call success

Chamdeep557_10-1727084101329.png

 

Thanks,

Chamdeep

 



 

 

 

9 Comments
LiyaAjayan
Explorer
0 Kudos

Hi @Chamdeep557 ,

Nice blog that I have been checking for a scenario like this by using list report template. Usually we have to go with freestyle or mass edit options. When I tried to extend the controller, I am not able to get the view details or table details (even from debugging). Could you please share some detailed info on how we can get the details and complete code as the screenshot is cropped.

Thank you.

Chamdeep557
Explorer
0 Kudos

Hello @LiyaAjayan 

Once you action buttons from fiori guided development. Then ext folder will get created.

Right click on the Table, on DOM html you can find Table id, same for action buttons too.

Thanks.

richadwivedi
Explorer
0 Kudos

Hi @Chamdeep557 

If i have filtered data based on some conditions, and click on edit then it is showing edit column option for whole data not for filtered ones only, any idea, how to fix that?

RainaGoyal3
Participant
0 Kudos

Hi @Chamdeep557,

Thanks for your blog, its helpful, but could you please suggest how onInit is triggered in your case, as in my case only press event of Edit button is getting triggered due to which I am unable to change it edit template. Am I missing anything in manifest.json or something else. Kindly help.

Chamdeep557
Explorer
0 Kudos

Hello Raina_Goyal,

OnInit method will trigger by default. It is default method for any controller.

RainaGoyal3
Participant
0 Kudos

Hi @Chamdeep557 , I understand that but in my case this is not getting triggered as once I click the edit button, the call stack goes in edit press function and unable to get this.oTable value despite giving correct Id in OnInit function. Also my debugger is not stopping in onInit function. Kindly help and suggest, what am I doing wrong.

richadwivedi
Explorer

Hi @Chamdeep557 

This code is working only for responsible layout not grid layout, How it's going to work with grid layout?

RainaGoyal3
Participant
0 Kudos

Thank you @Chamdeep557 for sharing quick suggestions, I am using RAP Odata V4 fiori element list report with Grid Table and as @richadwivedi mentioned this approach doesn't work with it. I am able to achieve it with different approach by adding new column in UI and mapping it with backend property. Then in Behavior definition and implementation in Update method, modifying the entity.

Also regarding the OnInit method, it triggers after creating extension controller for the app where it overrides the 4 hook lifecycle methods. Thanks again for the help, appreciate your time. 🙂

Thanks,

Best Regards,

Raina