Skip to Content
avatar image
Former Member

how to get all the value of a table after clicking on a particular field in sapui5?

I am working on SAPUI5. I have a table having 4 rows and 4 column. 4th column is a link. If in click on the link then corrosponding table value should come. i.e. all four fields of the table should come. How to do this?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Apr 13 at 11:30 AM

    do you have model? all data are there.....do whatever you want....

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 13 at 01:27 PM

    For example if you have a button on one of the columns, using press function you can get the row value by:

    new sap.ui.commons.Button({    
       text: "Button",
       press: function (e) {
          console.log(e.getSource().getBindingContext().getObject());   
    } })
    Add comment
    10|10000 characters needed characters exceeded