11-13-2015 12:22 PM
I am looking at the phone book sample gadget and trying to figure out how to get the phonebook to update without reloading the entire Finesse webpage. I have tried to create a new finesse.restservices.User to reload the phonebook but the onLoad function never fires. I have also tried to reload the entire gadget using containerServices.reloadMyGadgetFromUrl(). This will reload the gadget but it does not appear to grab the modified phonebook.
Does anyone know of a way to reinitialize the gadget similar to hitting the refresh button in the browser using code?
Solved! Go to Solution.
11-18-2015 10:08 AM
If you are only trying to reload the phone book, you might try just refreshing the data.
Here, the user object is initiated for the REST calls.
user = new finesse.restservices.User
It is then called on load. You could call this a second time, when you need to.
_phoneBooks = user.getPhoneBooks({
onLoad : _handlePhoneBooksLoaded,
onError : _handlePhoneBooksError
});
11-18-2015 10:08 AM
If you are only trying to reload the phone book, you might try just refreshing the data.
Here, the user object is initiated for the REST calls.
user = new finesse.restservices.User
It is then called on load. You could call this a second time, when you need to.
_phoneBooks = user.getPhoneBooks({
onLoad : _handlePhoneBooksLoaded,
onError : _handlePhoneBooksError
});
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide