Page 2 of 2

Mapping data to database from a button click, button in grid row

Posted: Wed Feb 12, 2014 7:12 pm
by Vaishali Patel

I also do not have the login services in my app

Image


Mapping data to database from a button click, button in grid row

Posted: Wed Feb 12, 2014 7:38 pm
by Vaishali Patel

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?


Mapping data to database from a button click, button in grid row

Posted: Wed Feb 12, 2014 7:53 pm
by Kateryna Grynko

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.


Mapping data to database from a button click, button in grid row

Posted: Wed Feb 12, 2014 8:18 pm
by Vaishali Patel

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.


Mapping data to database from a button click, button in grid row

Posted: Wed Feb 12, 2014 8:47 pm
by Kateryna Grynko

Thank you, we'll test this.


Mapping data to database from a button click, button in grid row

Posted: Wed Feb 12, 2014 9:12 pm
by Vaishali Patel

Thank you


Mapping data to database from a button click, button in grid row

Posted: Thu Feb 13, 2014 11:20 am
by Vaishali Patel

Any luck?


Mapping data to database from a button click, button in grid row

Posted: Thu Feb 13, 2014 11:25 am
by Maryna Brodina

Hello! Not yet, sorry. Working on it.


Mapping data to database from a button click, button in grid row

Posted: Thu Feb 13, 2014 2:34 pm
by Maryna Brodina

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.


Mapping data to database from a button click, button in grid row

Posted: Thu Feb 13, 2014 7:05 pm
by Vaishali Patel

Thank you so much, that worked....On to the next problem lol