cancel
Showing results for 
Search instead for 
Did you mean: 

retrieving data from drowndown list

Former Member
0 Kudos

We have a business scenario where we need your help.

The business scenario is this is that we have a dropdown list in one of our feature with different values and we have to

retrieve data corresponding to those values in dropdown list.

Now we have two option.

<b>First :</b>

Either we can make separate syncBO for each value of dropdown list to fetch the data from the back end. But the problem is

that every time when we change value from dropdown list every time I have to synchronize my MI CLIENT (PDA) with the MI SERVER which is not user friendly.

Or

<b>Second:</b> we have to make a single syncBO for all values of the dropdown and we will fetch all the data corresponding to all

the values in the dropdown list.

And all the data will be available in local DB (PDA) when we select different value from drop down list. we will get the

data from mi client database with out any need of synchronizing.

Now the problem is that if we make single syncBO for all values of the dropdown list, data volume will be huge and that will

slow down the performance and it might be possible that it data wont be come on PDA due to memory constraints.

Now we want to know that is it possible to synchronize automatically the MI CLIENT every time when ever we change the value

from the dropdown list considering first case.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hello deven,

im not sure, but sounds possible with the awt version of

MI. however you still have to consider the timeout.

the series of action will gonna be something like.

-


dropdown item selection

|

check data repository if syncbo data were already in the

client (e.g. were already retrieved in the previous action)

|

if present use data

if not, create a delta request for such syncbo and

suppress other delta requests; also suppressthe delta

data upload. <- request should be set to SYNC i.e.

direct_request.

then invoke synchronizeWithBackend

|

observe for the SyncEvent.SYNC_SUCCESSFUL or SYNC_READY.

then retrieve the data from the local repository again.

-


the process might be easier if you will gonna use the

generic sync way as you will have the control over the

data you retrieve.

hope this gives you an idea.

regards

jo