09-16-2013 09:57 AM
I know this is a simple solution, but I haven't figured it out. Maybe what I am trying to do is the wrong way for c++.
I have the applicationui class that handles the main application functions.
I have another class called MarketingService that handles the web service calls and return to store my data to a database.
So, far, everything works fine. I'm able to use the app to get input from the user, store the data locally to the sql database and then send the data to the server the web service. The issue comes when the ListView needs to be refreshed with the updated status after the web service returns.
Trying this in the trigger doesn't work, because the function doesn't return the web service update complete, so the status hasn't been updated yet before the emit is sent.
So, what I want to do is call the _app.refreshDataModel() or maybe even an _app.updateStatus() function in the MarketingService results function.
I have included the applicationui.h file in the MarketingService file.
I've attempted to create another instance of ApplicationUI.
ApplicationUI appt = new ApplicationUI(); appt.updateLeadStatus(idValue, "1");
I'm not sure what to do to get this fixed. Refreshing the ListView with the updated data is the end goal.
I guess last resort is to put the web service call
09-16-2013 10:06 AM
09-16-2013 10:23 AM
I think you might be misinterperting what I need to do.
The web service result needs to call the function in the ApplicationUI after it finishes.
In the soapXML example, the "app" class handles everything, in my app, I seperated the web service into its own class.
Unless you are saying that I should be able to call the signal in ApplicationUI from MarketingService without creating an instance of the ApplicationUI.
09-16-2013 10:29 AM
09-16-2013 11:07 AM
And doing that apparently didn't fix the initial issue.
The ListView still doesn't update after the value has changed.
09-16-2013 11:14 AM
Fixed the ListView issue by callin the read list again.
I think I will look at the Twitter Timeline example some more to see if that has a fix for the different class for webservice issue.
09-16-2013 11:28 AM