06-06-2012 06:13 AM - edited 03-14-2019 10:00 AM
I am currently using an XML document to detail openning times and bank holidays. This works fine but previous I had a dashbaord that users could access to updat the files. I now require to update these documents with a user calling a CTI checking the current emergency state and amending the state from false to true.
Any assistance woud be appreciated.
06-06-2012 08:48 AM
Hi,
what dashboard? Where? In UCCX? What version?
Updating XML's is quite easy - using some Java code. For instance, you can read the XML using DOM, change the node(s) you need to change, then flush the new XML as file. Is that what you want?
G.
06-06-2012 09:13 AM
Sounds right. So you have a script I can browse ?
Regards Bob
Sent from my iPhone
06-06-2012 09:28 AM
... so you don't have any idea what I am talking about, do you?
No, I don't have a script but I can help you with creating one if you kindly give us some information about details like the desired XML structure, what to change, where would you like to keep that XML file etc.
G.
06-06-2012 09:33 AM
Regards Bob
Sent from my iPhone
06-06-2012 09:38 AM
I do actually know what you are referring to but have not managed to implement. This is my own fault due to time constraints. If you would like to help without being so flippant I would accept.
Regards Bob
Sent from my iPhone
06-06-2012 10:19 PM
Note the xml ws originally displayed and amended as a web application for CUC 3.5
The document I have extracted for use in UCCX8.5(1) is "DBSDashboard.xml" and is stored in the Documents Repository in a folder /DBSDashboard/
It is currently being used to store the openning times, bank holidays and whether the call centre is closed for emergency. I require to amend the 'CallCentreClosed' to true or false accordingly
The current xml is as follows:
06-07-2012 07:46 AM
Hi,
upload the JDOM library on the UCCX server (don't forget to activate it and then restart UCCX). Get it here:
https://github.com/downloads/hunterhacker/jdom/jdom-2.0.1.zip
Then, provided you've got that XML file in the Document repository, as DBSDashboard.xml, you can use this piece of code, like on the picture (including four new variables). Enjoy.
06-07-2012 09:13 AM
Thank you for this, I will LAB it over the weekend and provide some feedback.
Regards Bob
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: