Page 4 of 4

How to create app with grid?

Posted: Thu Aug 29, 2013 8:57 am
by Maryna Brodina

Hi, working on it. I'll update.


How to create app with grid?

Posted: Thu Aug 29, 2013 9:12 am
by Oleg

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


How to create app with grid?

Posted: Thu Aug 29, 2013 9:13 am
by Maryna Brodina

We didn't change anything yet.


How to create app with grid?

Posted: Thu Aug 29, 2013 12:22 pm
by Oleg

how much time i must wait?


How to create app with grid?

Posted: Thu Aug 29, 2013 12:36 pm
by Maryna Brodina

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.


How to create app with grid?

Posted: Thu Aug 29, 2013 3:59 pm
by Maryna Brodina

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.


How to create app with grid?

Posted: Thu Aug 29, 2013 6:59 pm
by Oleg

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


How to create app with grid?

Posted: Thu Aug 29, 2013 8:46 pm
by Maryna Brodina

yes