Search found 26 matches

Go to advanced search

by Andrew6784445
Wed Feb 03, 2021 10:26 pm
Forum: Issues
Topic: REST api works using API Express but not when set up as a Service
Replies: 1
Views: 2074
 
Jump to post

REST api works using API Express but not when set up as a Service

I have created a REST api using NodeJS running on MacOS using http AND https. I am able to create a service that successfully connects to my API using https and returns JSON when using the appery "Test". I can access my REST api using Postman and any web browser. Unfortunately I cannot get...
by Andrew6784445
Fri Aug 12, 2016 4:50 pm
Forum: Issues
Topic: Calling an Api Express from server code
Replies: 10
Views: 1727
 
Jump to post

Calling an Api Express from server code

Sergiy, Thank you for your help. I wasn't clear on what you meant by "read a response" so upon looking at the example, I saw and added the line: Apperyio.response.success(XHRResponse.body, "application/json"); This alone did not work. I had to add a "body" option in my ...
by Andrew6784445
Tue Aug 09, 2016 1:47 pm
Forum: Issues
Topic: Calling an Api Express from server code
Replies: 10
Views: 1727
 
Jump to post

Calling an Api Express from server code

Sergiy, Thanks for the reply. I have updated my APIExpress Service to accept the query parameters as parameters instead of headers. When tested in API Express it works fine. When calling from Server Code using the following code I get no errors but also continue to not see results. Is there some sor...
by Andrew6784445
Mon Aug 08, 2016 5:17 pm
Forum: Issues
Topic: Calling an Api Express from server code
Replies: 10
Views: 1727
 
Jump to post

Calling an Api Express from server code

I changed the Server Code to the following but it still doesn't update the record: var XHRResponse = XHR2.send("PUT"," https://api.appery.io/rest/1/apiexpre... ", { "headers": { "X-Appery-Api-Express-Api-Key" : "xxxxx", "pUserID": "1&q...
by Andrew6784445
Thu Aug 04, 2016 10:10 pm
Forum: Issues
Topic: Calling an Api Express from server code
Replies: 10
Views: 1727
 
Jump to post

Calling an Api Express from server code

No Errors. The Service is an Update Query. Here is the Server Code call: XHR.send("PUT"," https://api.appery.io/rest/1/apiexpre... ", { "headers": { "apiKey":"xxxxx", "pUserID": "1", "pPasscode" : "abcdef", } }...
by Andrew6784445
Thu Aug 04, 2016 8:25 pm
Forum: Issues
Topic: Calling an Api Express from server code
Replies: 10
Views: 1727
 
Jump to post

Calling an Api Express from server code

Galyna, I have created an API Express service that connects to MySQL. The service works when tested in API Express AND works directly in my app. I would like the service to run as Server Code but it does not work. No errors occur. Could you please elaborate on "making our application servers DN...
by Andrew6784445
Mon Nov 10, 2014 3:06 pm
Forum: Issues
Topic: Is there a sample of how to update a collection from a multiple row grid?
Replies: 9
Views: 1245
 
Jump to post

Is there a sample of how to update a collection from a multiple row grid?

Thank you Yurii.

I had to use:

var grd=jQuery('[name="grdPhones"]');

to get it to work but you pointed me in the right direction.

Thanks again.

by Andrew6784445
Sat Nov 08, 2014 9:23 pm
Forum: Issues
Topic: Is there a sample of how to update a collection from a multiple row grid?
Replies: 9
Views: 1245
 
Jump to post

Is there a sample of how to update a collection from a multiple row grid?

I set a local storage variable to keep track of the number of rows when fetching data using my query service. Is there a better way? My counter correctly reports the right number of rows but when I try to iterate through the grid rows (row = jQuery(grd )) only the first iteration returns data...the ...
by Andrew6784445
Sat Nov 08, 2014 1:50 pm
Forum: Issues
Topic: Is there a sample of how to update a collection from a multiple row grid?
Replies: 9
Views: 1245
 
Jump to post

Is there a sample of how to update a collection from a multiple row grid?

I am now able to update using the body parameter with "_id":rowid. Unfortunately, the grd.length is returning 1 even though the grid may contain multiple rows from the response that it is linked to. Is the grd.length linked to the "design time" rows? How do I get the actual numbe...
by Andrew6784445
Fri Nov 07, 2014 5:55 am
Forum: Issues
Topic: Is there a sample of how to update a collection from a multiple row grid?
Replies: 9
Views: 1245
 
Jump to post

Is there a sample of how to update a collection from a multiple row grid?

Thanks Yurii, I copied and pasted but still get the error: {"code":"DBSG002","description":"database id not specified"} The console shows the correct row in my collection that needs to be updated. Do I need to modify the service at all? I know that _id and Pho...

Go to advanced search