03-30-2011 08:03 PM
Hi Guys,
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?
Regards,
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
Hi,
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 06:41 PM
What type of control is the data provider assigned to?
Can you supply ample code of the issue?
03-31-2011 07:08 PM
Hi,
Its a RoundList control.
Code is some what like
//constructor
app()
{
list.dataProvider=new DataProvider(messages);
}
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
Try just the QNX List class. I have lots of issues with the RoundList and having it update properly. One of those item you may need to change back after 1.0.
03-31-2011 07:45 PM