Page 1 of 1

multiple collums in my database collection

Posted: Thu Apr 21, 2016 11:08 pm
by Gosse Westra

hi,

I created a database collection with multiple collums.
the 2 collums i have are item and owner.
now i want to populate those to collums with the dbcreate rest api
but only the item collum is showing up when i want to map the input fields to the database collums.

Image Image

how can i populate those to collums with the data i want?

Thanks


multiple collums in my database collection

Posted: Fri Apr 22, 2016 12:32 am
by Yurii Orishchuk

Hello,

As i can see you don't have "owner" request parameter in body section.

If so, you need:

1 Open "create" service.
2 Navigate to "request" tab.
3 Navigate to "body" subtab.
4 Add "owner" request parameter.
Details on screen shot: http://prntscr.com/av94pq/direct

Then you can implement "before send" mapping for this service datasource to fill this "owner" field in new item.

Regards.


multiple collums in my database collection

Posted: Fri Apr 22, 2016 12:59 am
by Gosse Westra

thanks for the quick reply and the good answer.
This makes it much easier for me:)

Thanks again.