m z
Posts: 0
Joined: Sat Nov 02, 2013 1:39 am

REST service query then create

I have a query service to load an item from my collection. I'd like to update a few fields then call my create service to add a new item/row to the collection. Do I have to copy all items from the query service to local storage and/or components before I map them back to for the create service call? Or is there a simpler method (similar to an update service)?

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

REST service query then create

You probably don't need to save them all, just the once you need to update. It's really up to the app logic.

m z
Posts: 0
Joined: Sat Nov 02, 2013 1:39 am

REST service query then create

What steps would I take? I'm thinking the following:

1) invoke query service
2) copy response (how do i do this?)
3) get updated fields from app UI
4) invoke create service with copy from 2) plus updated fields.

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

REST service query then create

Hello,

  1. invoke query list service
  2. map fields that you need to input element.
  3. on value change or button click, invoke update service.

Return to “Issues”