[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Basic consumption of rest response by simple javascript

Status
Not open for further replies.
E

egarcia

Guest
Hello Jorge, Yes, you need to access the corresponding property. Depending on how you have mapped the parameters of the REST API, you would get a response object. In this case, you are getting a response object. You can use the following code to get the desired value for data. var data = JSON.parse(this.response).response Please notice that "this.response" corresponds to the property of the request object. The 2nd response is the property in the value of the actual response. Also, notice that the 1st ttPrecios is the name of the parameter and the 2nd ttPrecios is the array reference in the value which is a temp-table. The following article gives you some additional info in the context of JSDO invoke operation: - community.progress.com/.../2938.calling-invoke-operations-with-the-jsdo I hope this helps.

Continue reading...
 
Status
Not open for further replies.
Top