Skip to Content
0
Former Member
Jun 29, 2012 at 10:11 AM

How to bind the data to listview which is retrieved from the sqlite db through custom code in workflow

30 Views

Hai friends,

I started developing an offline application using workflow, in the sence that it works whenever the network is not available also. what i am doing is, i will get the the data from the backend and store them locally using the HTML5 sqlite database API. Upto that part i was successful.

Now i am strucking in binding the data retrieved from the sqlite database to the listview through custom code.

My have designed my application as follows.

I have created two menu items in start screen as

1) Get Online records

2)Get offline records,

where "Get Online records" menu item is bind with MBO operation which always hit the backend the gets the data(if the network is available) , i am binding the result to listview by using the generated listkey. At the same time i am storing the result in sqlite database.

Now my challenge is to bind that data when I click on the "Get offline records" menuitem. i have following queries in this case.

1) During the design level we need to bind one key(user defined) to listview which acts as a datasource, let us assume that we need to bind the Customer data.

Then how can we create a key of type Customer(that should not be bound to the Customer MBO).

2) How can store the data retrieved from the sqlite db into that userdefined key.