Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Updating Rest Service

Hi, this screen shot shows the mapping before I removed the excess fields.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Updating Rest Service

Here is how to issue a PUT request:

Collection before update:
Image

Service settings:
Image

Service request:
Image

Service test:
Image

Updated collection:
Image

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Updating Rest Service

Hi Max,

Thanks for your input, I have tested the service successfully as in the screen shot so hopefully that suggests the settings are OK. But when I attempt to invoke the service I get:

{"code":"undefined","description":"No resource method found for PUT, return 405 with Allow header"}

The object_id is mapped as was suggested earlier, Is this correct or do I need to have custom JS to set the object_id.

Test:
Image

Mapping:

Image

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Updating Rest Service

PUT works from a page as well. Can you share the app link or email it to support@tiggzi.com?

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Updating Rest Service

Hi Max, I have shared the app which is named Trans_App, I have been testing the service from a button on the jobslist page called settings. Thanks

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Updating Rest Service

The objectid is not added to the URL. I added this to the mapping:

code
console.log('id: ' + value);
return value;
/code

you can see in the console that nothing is displayed. Check to make sure the value was saved into local storage.

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Updating Rest Service

Hi Max,

I had set the value of the local storage variable from code and to update this you have to select a list item, after your test I double checked this and the variable was being populated and the table is being updated. Thank you and also Marina for your perseverance.

Regards,
Joe

Return to “Issues”