03-30-2011 08:03 PM
In my app I have a messages section, which displays new events,service calls assigned to the agent.
I want to periodically check for new messages by querying webservice.
I am displaying this messages in a roundlist so how can I change the datasource on the fly to be able to display new messages?
03-30-2011 08:10 PM
I don't think we have the abilities to run a "service" in the background to do this. The app would need to be open, and if the app were open couldn't you just have a timer set to trigger the function that checks for updates?
03-31-2011 06:34 PM
Accept my apologies if I couldn't explain it better.
I have been checking the messages periodically but how would I reflect them in the list by changine the dataprovider.
Changing dataprovider doesn't do anything to list, I mean it doesn't refresh, so am I missing something here?
let's say the list was loaded with dataprovider dp1 while loading the app. Then new cases were assigned to the user and now these new messages have to be in the list but it doesn't update after I assign dp2 to the list.
I hope I am explaining right.
03-31-2011 07:08 PM
Its a RoundList control.
Code is some what like
then a function which check for update every 300 seconds and update the messages array and assigns update array to dataProvider of the list.
But it doesn't work and I am sure I am missing something here but don't know what.
Thanks in advance.
03-31-2011 07:40 PM
03-31-2011 07:45 PM