AppMachine Help Center

How can we help you?

Follow

AppMachine API - Step 11-12: Connecting Products to the Wish List Web Service

Previous steps taken

  • Added a “Store” to our app
  • Made info screen with several options and a wish list button
  • Created a (POST) web service + data store to hold our wish list items

Step 11: Connecting the fields to our Wish list web service

Step 1: Click on the web service and go to input parameters→ Body and fill in the fields

As you can see we've added some fields that we want to have in my data store. We are sending along the {user:email} so that later we can show the items in the wish list based on the loggedin user and of course we want to show a nice little template that’s why we are sending along some other fields like Image and Title and some other info.

In this case the columns in our data store will be:

 

firstName

lastName

email

item_id

item_title

item_discount

item_oldPrice

item_newPrice

item_image

item_color

item_size

item_cat

 

And we fill those columns with the data from our Excel like:

item_title = {title}

item_title = {discount}

In this case a column in our Excel file is named “title” and “discount”

* item_color & item_size are empty because we have to connect them in our detail template of a product.

 

Step 12: CONNECT ITEM_COLOR & ITEM_SIZE  + CONNECT THE THE WISH LIST BUTTON TO OUR POST WEB SERVICE

Step 1: Go to “info” view

Step 2: Go To Logic → wishBtn

Step 3: Connect the “Post Wishlist” web service to the button.

Step 4: Click “Assignment” and fill in the values of the drop down controls.

columnName from datastore = !{controlNameOnTheForm.value}

item_color = !{dropdownColor.value}

item_size = !{dropdownSize.value}

And for the success /error you can just show a message. So if everything went okay you can now add items to your wish list.

 

Summary

  • Connected our columns from our wish list data store to the fields from the Excel
  • Connected item_color & item_size through Set Property in the Logic tab
  • Next step is to add items to our wish list and show them in our App
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk