Vaishali Patel
Posts: 0
Joined: Thu Feb 06, 2014 1:39 pm

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

I also do not have the login services in my app

Image

Vaishali Patel
Posts: 0
Joined: Thu Feb 06, 2014 1:39 pm

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

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?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

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

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.

Vaishali Patel
Posts: 0
Joined: Thu Feb 06, 2014 1:39 pm

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

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

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

Thank you, we'll test this.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

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

Hello! Not yet, sorry. Working on it.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

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

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.

Vaishali Patel
Posts: 0
Joined: Thu Feb 06, 2014 1:39 pm

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

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

Return to “Issues”