cancel
Showing results for 
Search instead for 
Did you mean: 

SmartTable: How to check errors in edit mode?

CristianBabei
Contributor

Hi! Is there any way to check all the errors in a Smart Table, when you enable the edit mode?

(editable="true" & app:useSmartToggle="true" & app:useSmartField="true" )

For example in a Smart Form, if we want to check before a save if there are any issues, we can use the ".check()"

https://sapui5.hana.ondemand.com/#/api/sap.ui.comp.smartform.SmartForm%23methods/check


Do we have something similar for a Smart Table? Cuz I didnt find anything.

My issue is: I have a Smart Table with a Grid Table, and I want one field to be mandatory, how I can check if all rows have that field filled? Because if they change one row and set it as empty, that change wont appear in the getPendingChanges because technically its an error so it’s not updated. The same way, I can't go one by one of the contexts and get the actual context to check the value in the object, because technically in the model, as it’s an error, it still appears the prev. value and not the updated empty value.


Also as its a grid table, I can't just get the rows aggregation and check it, because that aggregation only contains the visible rows, not ALL the rows from the table.


Any clues?


Thx for your help 🙂

_jonas_
Participant
0 Kudos

Did you ever find a solution to this?

Accepted Solutions (0)

Answers (0)