cancel
Showing results for 
Search instead for 
Did you mean: 

Submit Table data to Web Service

Former Member
0 Kudos

Hello Tech Gurus,

                                 I am relativ ely new to SAPUI5 and I have built a app in which there is a table and the data is in json format coming from a Web Service , Now What I need is to just send the selected rows back to the Server @Note I also have a Select option so the Selected value of that also needs to be captured  I am using a multi Select option for the table.

Sample Json :

[

    {

        "userid": "DHORIONS",

        "username": "Horions Dries",

        "department": "US Development",

        "location": "",

        "status": "Unlocked",

        "validfrom": "2014-05-06",

        "validto": "9999-05-06",

       "rstatus": [

            {

                "stats": "1",

                "valfield": "Pending"

            },

            {

                "stats": "2",

                "valfield": "Retain"

            },

            {

                "stats": "3",

                "valfield": "Remove"

            }

        ],

        "succes": true

    },

The one in the bold is used by Select Option.

I need the sample code to send all the selected rows to my Web Service. Its simple but I

am new here so need a helping hand.

Thanks

Somil

Accepted Solutions (0)

Answers (2)

Answers (2)

santhu_gowdaz
Active Contributor
0 Kudos

To get selected table row values here is the example by Dennis-JS Bin - Collaborative JavaScript Debugging

Collect those selected values and pass to backend.

Former Member
0 Kudos

Hi , Please check my response, Could you help in that ?

Somil

Private_Member_15166
Active Contributor
0 Kudos

Check out this blog on crud operations.

or check out this video.

SAPUI5 - oData Operations (Create/Update/Delete) - Part 1 - YouTube

Former Member
0 Kudos

Hi,

        After writing this question I was able to get the Selected  data , But I need to get the selected Value of "Select" ui here is my screenshot

Now as you see , it just gives the selected row , and the corresponding values, what I need is the current selected item in the dropdown ( I am using Select here since I need read only dropdown).

So what exactly should be done to  get the selected value of dropdown?

Thanks

Somil