Skip to Content

How to validate a particular cell in table?

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

capture.png (20.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Aug 22, 2017 at 02:46 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 22, 2017 at 12:11 PM

    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

    Add comment
    10|10000 characters needed characters exceeded