• Partners
  • Email Us
  • Product
    • Channels
      • Voice
      • Email
      • SMS
      • Chat
      • Messenger
      • Omnichannel
    • Features
      • Predictive Dialer
      • VCC Live Pay
      • Outbound IVR
      • Inbound IVR
      • Voicemail Detection
      • Live Dashboards
      • ACD
      • Salesforce Integration
      • Dialogflow
  • Solutions
    • Customer Service
    • Sales Teams
    • Debt Collection
    • Virtual Call Center
  • Pricing
  • Resources
    • Blog
    • Case Studies
    • Ebooks
    • Courses
    • Webinars
    • Information Security
    • Learning Center
    • Developers
  • Company
    • About us
    • Careers
    • News
    • Partners
  • Partners
  • Email Us
+44 208 638 0169
GET STARTED
Developer GuidesScript SDKObjectsCONTROLLER_OBJECT
  • Overview
    • About Script SDK
    • Examples
  • Constants
    • CONTROLLER_HELPERS
    • DISPOSITION_ASSESMENTS
    • FIELD_QUOTAS
    • FIELD_TYPES
  • Variables
    • fields
    • isAgent
    • isInbound
    • isTest
  • Functions
    • addVoicefileTag
    • alert
    • callCustomerApi
    • clearDtmf
    • confirm
    • contains
    • dump
    • getChannelVariable
    • getCommission
    • getController
    • getCurrentPage
    • getFieldNames
    • getFieldProp
    • getFieldValue
    • getFieldValues
    • getGoogleAccessToken
    • getMicrosoftAccessToken
    • getPages
    • getPrice
    • getQuotaFieldData
    • getScriptVariable
    • getTabs
    • goNext
    • goTab
    • httpRequest
    • inArray
    • isSelected
    • isVoiceRecordingActive
    • runApplication
    • salesforce.getAccessToken
    • searchObject
    • setDisposition
    • setEventListener
    • setFieldValue
    • startVoiceRecording
    • stopVoiceRecording
    • toggleVoiceRecording
    • transfer
  • Events
    • controller.afterSetData
    • controller.onLoadData
    • global.beforeSetDisposition
    • global.onCall
    • global.onLoad
    • global.onHangup
    • page.checkBeforeLoad
    • page.onLoad
    • page.onNext
  • Objects
    • CONTROLLER_OBJECT
    • DISPOSITION_OBJECT
    • FIELD_PROPERTY_OBJECT
    • FIELD_VALUE_OBJECT
    • QUOTA_DATA_OBJECT
Back to Support and Learning Center
English Hungarian

CONTROLLER_OBJECT

Structure of the controllers of the script.

Summary

Variables
disabled {Boolean} true if the controller is disabled.
hidden {Boolean} true if the controller is hidden.
Functions
clearHelper Hide the small icon.
controller.watch Watches input elements on the loaded web page.
maximizeOpBrowser Opens Browser control in full screen mode.
rebuild Rebuild the structure of the controller.
refresh Refresh the controller based on the selected values of the fields belonging to it.
showHelper Show a small icon beside the controller.

 

disabled

{Boolean} true if the controller is disabled.

 

VARIABLES

hidden

{Boolean} true if the controller is hidden.

 

FUNCTIONS

clearHelper

Hide the small icon.

Parameters

none

Returns

none

Example

see showHelper

 

maximizeOpBrowser

Opens Browser control in full screen mode. Only available for Browser control.

Parameters

none

Returns

none

Example
$('page1').onLoad = function() {
    vcc.getController('browser').maximizeOpBrowser();
    });
};

 

refresh

Refresh the controller based on the selected values of the fields belonging to it. (Important: it only refreshes the selection/value of the controller, not the selectable values.)

Parameters

none

Returns

none

Example

We have the original data in a text field, but we don’t want them to be changed. We have a field for the actual data, and for the simplicity we would like to copy the original data to the actual field and controller by clicking on a button.

$('page', 'my_button').afterSetData = function() {
     // copy the value to the new field (it is stored in the database)
     vcc.setFieldValue('actual', vcc.getFieldValue('original'));
     // refresh the controller to load the the value from the database
     vcc.getController('page', 'actual').refresh();
};

 

rebuild

Rebuild the structure of the controller. You need to use it if you want to update the available values.

Parameters

none

Returns

none

Example

After updating the manufacturer field we want to filter the mobile phones according the selected manufacturer. You can find the remaining code in the documentation of the EVENTS.onLoadData> event.

$('page', 'manufacturer').afterSetData = function() {
     vcc.getController('page', 'mobile_phones').rebuild();
};

 

refresh

Refresh the controller based on the selected values of the fields belonging to it. (Important: it only refreshes the selection/value of the controller, not the selectable values.)

Parameters

none

Returns

none

Example

We have the original data in a text field, but we don’t want them to be changed. We have a field for the actual data, and for the simplicity we would like to copy the original data to the actual field and controller by clicking on a button.

$('page', 'my_button').afterSetData = function() {
     // copy the value to the new field (it is stored in the database)
     vcc.setFieldValue('actual', vcc.getFieldValue('original'));
     // refresh the controller to load the the value from the database
     vcc.getController('page', 'actual').refresh();
};

 

showHelper

Show a small icon beside the controller. It can be used for errors, warning, or just an information.

Parameters
Name Type
mode {vcc.CONTROLLER_HELPERS} the mode of the helper
label {String} the main text of the helper
[title] {String} the title of the helper
Example

We want to warn the agent if the amount of the salary is bigger than 2000.

$('page', 'salary').afterSetData = function(data) {
     if (data > 2000) {
         vcc.getController('page', 'salary').showHelper(vcc.CONTROLLER_WARNING,
                 'The salary can be mistyped');
     } else {
         vcc.getController('page', 'salary').clearHelper();
     }
};
Back to Support and Learning Center

Comments

Can’t find what you need? Use the comment section below to connect with others, get answers from our experts, or share your ideas with us.


There are no comments yet.

Click here to cancel reply.

Please note that by clicking on the Submit button, you agree to a member of VCC Live team contacting you with business offers. You can find detailed information on how we can establish contact with you in our Privacy Policy

  • Channels
    • Voice
    • Email
    • SMS
    • Chat
    • Messenger
    • Omnichannel
  • Main Features
    • Call Center Software
    • Predictive Dialer
    • VCC Live Pay
    • Outbound IVR
    • Inbound IVR
    • Voicemail Detection
    • Live Dashboards
    • ACD
    • Salesforce Integration
    • Dialogflow
  • Solutions
    • Customer Service
    • Sales Teams
    • Debt Collection
    • Virtual Call Center
  • Resources
    • Blog
    • Case Studies
    • Ebooks
    • Courses
    • Webinars
    • Information Security
    • Learning Center
    • Developers
    • Download
  • Company
    • About us
    • Careers
    • News
    • Partners
https://vcc.live/wp-content/uploads/2019/07/iso-cert-1.png https://vcc.live/wp-content/uploads/2019/07/iso-cert-2.png https://vcc.live/wp-content/uploads/2019/07/iso-cert-3.png
Social Media
https://vcc.live/wp-content/uploads/2019/07/linkedin.svg https://vcc.live/wp-content/uploads/2019/07/twitter.svg https://vcc.live/wp-content/uploads/2019/07/facebook-1.svg https://vcc.live/wp-content/uploads/2019/07/instagram-1.svg
Call us
Hungary
+36 19996400
UK
+44 2086380169
Germany
+49 3021782516
Poland
+48 123950886
Romania
+40 31706167
USA
+1 3024988337
Hungary
+36 19996400
UK
+44 2086380169
Germany
+49 3021782516
Poland
+48 123950886
Romania
+40 31706167
USA
+1 3024988337
  • Privacy Policy
  • Cookie Policy
  • Legal Statement
  • General Terms of Agreement
  • Magyar nyelvű jogi dokumentumok