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

How to create app with grid?

Hi, working on it. I'll update.

Oleg
Posts: 0
Joined: Mon Aug 26, 2013 10:22 am

How to create app with grid?

sorry but i try it and see nothing update when i change quantity

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

How to create app with grid?

We didn't change anything yet.

Oleg
Posts: 0
Joined: Mon Aug 26, 2013 10:22 am

How to create app with grid?

how much time i must wait?

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

How to create app with grid?

Usually it fails outside the scope of our support because you need to implement some part of custom app logic and use custom JS for updating information the way you need in DB. We'll be glad to help you, but it might take some time, unfortunately I can't tell you exact time.

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

How to create app with grid?

1) In service oleg_data_update_service in response should be only _updatedAt.
2) on page startScreen in update_service in mapping of Request parameters delete all mapping, on Responce tab add mapping from updatedAt в data to Text
3) On Click on update button run the following code:
code$('[dsid^=mobilegrid_13]').not('[tmpl=true]').each(function(){
var $this = $(this),
quantity = $this.find('[dsid=quantity]').val(),
id = $this.find('[dsid=mobilelabel_22]').text();
update_service.execute({"data":{"object_id":id, "quantity": quantity}});
});/code

You want to change only quantity. That's why when you call the service you only need to send quantity (and object_id). If you want to update any other parameter you need to send it too.

Oleg
Posts: 0
Joined: Mon Aug 26, 2013 10:22 am

How to create app with grid?

Thank you very much
So if i need to change all parameters on screen and save to database
i must include in code you gived to me changing other parameters?
i thinked when i invoke update service it change data automatically

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

How to create app with grid?

yes

Return to “Issues”