" /> Connection from CCPulse to a external D.B using Java Script - Genesys CTI User Forum

Author Topic: Connection from CCPulse to a external D.B using Java Script  (Read 4863 times)

Offline Mat

  • Newbie
  • *
  • Posts: 36
  • Karma: 0
Connection from CCPulse to a external D.B using Java Script
« on: October 06, 2008, 12:40:36 PM »
Advertisement
Hello

I need to connect from CCPulse whith an other data base, access or my sql for extract information and meke new formulas using the two information

Thank You

Offline Mat

  • Newbie
  • *
  • Posts: 36
  • Karma: 0
Re: Connection from CCPulse to a external D.B using Java Script
« Reply #1 on: October 06, 2008, 02:30:02 PM »
La conexión la consigo con


wscript = new ActiveXObject("wscript.shell")
path = wscript.CurrentDirectory
mdb = path + "\\PruebaJava.mdb"
conn = new ActiveXObject("adodb.connection")
connString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+ mdb +";User Id=admin;Password="
conn.open(connString);
Select * from Clientes;

Ahora para hacer consultas o insertar datos?

Offline Mat

  • Newbie
  • *
  • Posts: 36
  • Karma: 0
Re: Connection from CCPulse to a external D.B using Java Script
« Reply #2 on: October 06, 2008, 03:45:57 PM »
wscript = new ActiveXObject("wscript.shell")
path = wscript.CurrentDirectory
mdb = path + "\\PruebaJava.mdb"
conn = new ActiveXObject("adodb.connection")
connString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+ mdb +";User Id=admin;Password="
conn.open(connString);
("SELECT Nombre FROM Clientes");

But when I´m going to create a new view a box said me that the sql snetence was removed

I need to show in CCPulse the actual agents logued in and the agent should be logued this are in my data base


Thank you

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Connection from CCPulse to a external D.B using Java Script
« Reply #3 on: October 06, 2008, 03:50:29 PM »
? And why not use StatServer tables instead?

Offline Mat

  • Newbie
  • *
  • Posts: 36
  • Karma: 0
Re: Connection from CCPulse to a external D.B using Java Script
« Reply #4 on: October 07, 2008, 07:42:57 AM »
I need show in CCPulse the number of agent logged in and show our planification. Then I will create a thresold  if aggent loged < agent planificated.

Thank you