cancel
Showing results for 
Search instead for 
Did you mean: 

I am trying to get the value of data table using getvalue method but its showing undefined

Sourabh1
Explorer
0 Kudos
116

Hello everyone,

I am trying to get the value of data table using getvalue method but its showing undefined

can anyone of you please help me in resolving this issue

View Entire Topic
bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

What is the use case here? 

Typically only the Form Cell (input controls) will have a getValue() method associated to them.  For other controls list Object Table and Data Table if you need the selected row when processing an OnPress event you can call getActionBinding() to get the selected row data.

Sourabh1
Explorer
0 Kudos
Hi Bill_Froelich, I want to get the inputted value in a data table. Let's say my data table has two columns: Material Name: This column contains material names coming from a REST API. Quantity: This column is where I will enter the values of the quantity for each material. After clicking on the submit button, all the materials and their quantities should be posted through a POST API. This is my use case. I am following the tutorial about data tables in this blog: What's New in Mobile Development Kit Client 23.4 url of blog - https://community.sap.com/t5/technology-blogs-by-sap/what-s-new-in-mobile-development-kit-client-23-...
bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos
In that case you would use the getChanges() API call to get the values entered and then loop over them to post to the backend.