cancel
Showing results for 
Search instead for 
Did you mean: 

How to validate a particular cell in table?

former_member494990
Discoverer
0 Kudos

When I click add button,an empty row is inserted,now I want to validate this cell in a newly added row . please help me to do that.capture.png

Accepted Solutions (0)

Answers (2)

Answers (2)

irfan_gokak
Contributor
0 Kudos

Hi Rajeshwari,

If you want to validate table cell with input field onChange event. Then do as following.

// In View:
<Input type="Text" value="{prodListMdl>ReqQty}" change="validateVal" />

// In Controller
validateVal : function(oEvent){
   var vReqQty = oEvent.getSource().getValue();
   // Your validation code goes here
   // Your action on error/ success
}

Regards,

Irfan G.

Sharathmg
Active Contributor
0 Kudos

You can validate any cell in the table. What is the roadblock that you facing?

The cells will be part of the table structure and also the model linked to the table.

Regards,

Sharath