on 06-19-2006 2:50 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.