Page 3 of 3

Updating Rest Service

Posted: Thu Jan 03, 2013 3:34 pm
by Joe Bohen

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


Updating Rest Service

Posted: Thu Jan 03, 2013 7:38 pm
by maxkatz

Here is how to issue a PUT request:

Collection before update:
Image

Service settings:
Image

Service request:
Image

Service test:
Image

Updated collection:
Image


Updating Rest Service

Posted: Thu Jan 03, 2013 8:43 pm
by Joe Bohen

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


Updating Rest Service

Posted: Thu Jan 03, 2013 11:23 pm
by maxkatz

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


Updating Rest Service

Posted: Thu Jan 03, 2013 11:32 pm
by Joe Bohen

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


Updating Rest Service

Posted: Thu Jan 03, 2013 11:51 pm
by maxkatz

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.


Updating Rest Service

Posted: Fri Jan 04, 2013 12:48 am
by Joe Bohen

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