Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

UCCX8.5 XML Document update

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.                  

Everyone's tags (4)
8 REPLIES

UCCX8.5 XML Document update

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.

New Member

Re: UCCX8.5 XML Document update

Sounds right. So you have a script I can browse ?

Regards Bob

Sent from my iPhone

Re: UCCX8.5 XML Document update

... 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.

New Member

Re: UCCX8.5 XML Document update

Regards Bob

Sent from my iPhone

New Member

Re: UCCX8.5 XML Document update

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

New Member

Re: UCCX8.5 XML Document update

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:

 

-

-

  false

 

-

  true

 

-

  01/01/2010

  02/04/2010

  05/04/2010

  03/05/2010

  31/05/2010

  30/08/2010

  27/12/2010

  28/12/2010

  01/01/2011

  01/01/2007

 

-

  08:00

  18:00

  off

  08:00

  18:00

  off

  08:00

  16:00

  off

  08:00

  16:00

  off

  08:00

  16:00

  off

  09:00

  13:00

  off

  00:00

  00:00

  off

 

 

UCCX8.5 XML Document update

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.

New Member

Re: UCCX8.5 XML Document update

Thank you for this,  I will LAB it over the weekend and provide some feedback.

Regards  Bob

553
Views
0
Helpful
8
Replies