Hello
Ok I have implemented login and have a sessiontoken
I have mapped the session token and still no data in my orderitems collection.
Is there anyway you can get in to my app and have a look at the Products Page and the Add button?
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hello
Ok I have implemented login and have a sessiontoken
I have mapped the session token and still no data in my orderitems collection.
Is there anyway you can get in to my app and have a look at the Products Page and the Add button?
Vaishali,
Please share your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and tell in detail how it is supposed to work.
Screen 1 - Just click New Order
Screen 2 - Login
username - vpatel27
password - password1
If successful login, the sessiontoken gets saved in local variable and it moves on the customer details screen
Screen 3 -
Enter firstname, lastname, email and mobile number, click Order Products
If successful the customer details will get saved into the Customer collection and customerid will go in to local variable CustomerId.
Screen 4
Click Load
All the products from the Products Collection will get loaded into grid.
An Order will be created in the Order Collection - with the CustomerId.
The OrderId will be saved into local varible OrderId
The part that is not working.
The user can enter a number in to quantity box of a product and then click Add.
When Add is clicked a row in the OrderItems collection should be created, with the OrderId, ProductId, and Quantity that was entered by user.
Thank you, we'll test this.
Thank you
Any luck?
Hello! Not yet, sorry. Working on it.
After mapping you have a few txtProductId on page and because of that while mapping in CreateOrderItem service to ProductId is passed no ProductId, but all ProductId from one line. On Products page on Add button add Set local storage action and bind created localStorage variable to txtProductId. Do mapping not from txtProductId, but from created localStorage variable.
Thank you so much, that worked....On to the next problem lol