Description
Compatible with eScript 4.X and 10.X
Works with Webview2 only.
Be sure that the key is in http.config
Go to ..\eScriptRun\Script\Nixxis
Make a backup of existing Nixxis_eScript.js file.
Download latest js:
..\eScriptRun\Script\Nixxis
Make a backup of existing Nixxis_eScript.js
Edit the Nixxis_eScript.js; replace with AppServer IP or FQDN:
KEY_PLUGIN: null,
appURI: "10.0.0.1:8088",
host: "10.0.0.1",
Nixxis global variables
Agent name: v_NixxisVar_AgentName
Available from 2.4f or later.
ActivityId: v_NixxisVar_Activity
Agent description: v_NixxisVar_AgentDescription
ContactId: v_NixxisVar_ContactId
Activity description: v_NixxisVar_Context
Agent extension: v_NixxisVar_Extension
From: v_NixxisVar_From
Media: v_NixxisVar_Media
Direction: v_NixxisVar_Direction
Queue: v_NixxisVar_Queue
State: v_NixxisVar_State
StateDescription: v_NixxisVar_StateDescription
To: v_NixxisVar_To
UserAccount: v_NixxisVar_UserAccount
UserName: v_NixxisVar_UserName
UUI: v_NixxisVar_UUI
ContactListId: v_NixxisVar_ContactListId
CustomerId: v_NixxisVar_CustomerId
Available from 2.5 or later.
Language: v_NixxisVar_Language
Copy to clipboard
Available from 2.5 or later.
- NixxisScript.Utilities.copyTextToClipboard(text)
Example, copy to clipboard value of tb_kp (_sp_26):
Action on event "ON CLICK" button _sp_27.
Javascript code
- var kp = _sn_tb_kp.val();
- NixxisScript.Utilities.copyTextToClipboard(kp);
Split date and time for DateTime text
Available from 2.5 or later.
- NixxisScript.Utilities.SplitDateTime(datetime, type)
Example, split tb_DateTime (_sp_28) date to tb_date (_sp_30) and time tb_time (_sp_31):
Action on event "ON BLUR" tb_DateTime (_sp_28).
Javascript code
- var datetime = _sn_tb_DateTime.text();
- var dd = NixxisScript.Utilities.SplitDateTime(datetime, 'date');
- var tt = NixxisScript.Utilities.SplitDateTime(datetime, 'time');
- _sn_tb_date.setVal(dd);
- _sn_tb_time.setVal(tt);
Result:
Available from 2.5 or later.
- NixxisScript.Utilities.ToSqlDateTime(datetime)
Action on event "ON BLUR" tb_DateTimeSQL (_sp_39).
Javascript code
- var dt = _sn_tb_DateTimeSQL.val();
- var dtd = NixxisScript.Utilities.ToSqlDateTime(dt);
- _sn_tb_dateSQL.setVal(dtd);
Result: