on 08-28-2015 7:03 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check out this blog on crud operations.
or check out this video.
SAPUI5 - oData Operations (Create/Update/Delete) - Part 1 - YouTube
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.