multiple collums in my database collection

This forum contains topics that were moved from Get Satisfaction
Gosse Westra
Posts: 0
Joined: Tue Jun 16, 2015 8:05 pm

multiple collums in my database collection

Post 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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

multiple collums in my database collection

Post 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.

Gosse Westra
Posts: 0
Joined: Tue Jun 16, 2015 8:05 pm

multiple collums in my database collection

Post by Gosse Westra »

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

Thanks again.

Post Reply