Send Console Command [ ] with P1 = [ ] and P2 = [ ]

Command

SENDCONSOLECOMMAND

Image
Group Engine
Section Events
Description

Used to raise messages to the Console

Parameter 1

The Command to be raised, being one of the following:

  • BROWSER_EVENTONCHANGE
  • BROWSER_EVENTONCOMPLETE
  • BROWSER_EVENTONNAVIGATING
  • BROWSER_EVENTONTIMER
  • BROWSER_GETFIELD
  • BROWSER_GETSTATE
  • BROWSER_GETURL
  • BROWSER_IGNOREELEMENTS
  • BROWSER_INSERTSCRIPT
  • BROWSER_INVOKEFUNCTION
  • BROWSER_ONCHANGEFIELD
  • BROWSER_PUSHBUTTON
  • BROWSER_SETFIELD
  • BROWSER_SETURL
  • BROWSER_SUPPRESSERRORS
  • BROWSER_UNSUPPRESSERRORS
  • GATEWAY
  • OPENTAB
  • SETSPLIT
  • STARTTASK
Parameter 2

1st parameter for the command, which will vary depending on command:

  • BROWSER_xxx: The title of the web tab that will be given the command
  • GATEWAY: The variable you wish to send to the Gateway service
  • OPENTAB: The "tag" of the menu item to be opened; it is related to the code in the sMenuOption table
  • SETSPLIT: Allows you to specify the size of the split between the contact manager panel and the other console dlls.  Is either a size as:
    • n% ie 25%
    • npx ie 250px
    • SWITCH
    • MINIMUM
    • MAXIMUM
  • STARTTASK: Description of task to be started
Parameter 3

2nd parameter for the command, which will vary depending on command. If the command is not listed then this parameter is not required.

  • BROWSER_EVENTONTIMER: The interval in seconds that needs to elapse before the current variables of the browser page are raised to the script
  • BROWSER_GETFIELD: The id of the HTML element you wish to read the value for. If you wish for a more accurate match prefix the id with '='.

    You can also suffix the id with |<type> to assist in extracting the correct value. The supported <type> values are:

    • SELECT
    • RADIOBUTTON
    • CHECKBOX
    • SPAN
    • MULTICHECK-TEXT
    • MULTICHECK-VALUE
    • TABLECELL
  • BROWSER_IGNOREELEMENT: This parameter holds a comma separated list of element types that you do not want raised back to the script. The possible values are:

    Code Element
    SEL Select
    BTN Button
    OPT Option
    ITM Item
    OLI Ordered Item
    ULI Unordered Item
    SPN Span
    DIV Div
    ANC Anchor
    LAB Label
    TEX Textbox
    RAD Radiobutton
    CHE Checkbox
  • BROWSER_INSERTSCRIPT: This parameter holds the javascript that is to be injected into the browser
  • BROWSER_INVOKEFUNCTION: The name of the javascript function to be invoked in the browser
  • BROWSER_ONCHANGEFIELD: This parameter holds a comma separated list of element ids/names, that will be used to trigger the sending of the browser elements back to the script
  • BROWSER_PUSHBUTTON: The id of the HTML button you wish to “push”.
  • BROWSER_SETURL: This parameter holds the URL that the browser is to navigate to
  • GATEWAY: The value you wish to send to the Gateway service.
  • OPENTAB: This parameter holds a string made up of the following values:
    • P:<id> - the project ID the tab should open for
    • I:<id> - the ID of any record to be opened by the tab
    • T:<name> - the title to be given to the tab
  • SETSPLIT: Not used
  • STARTTASK: A string detailing the script to be launched built up using one or more of the following items in a pipe delimited string
    • A:<data> - Additional Info to be passed to the script
    • U:<id> - the ID of the contact record to be used
    • C:<cli> - the CLI to be passed to the script
    • CB:<id> - the ID of the call back record
    • L:<id> - the List ID to be used
    • P:<id> - the ID of the project, if not set then the current project ID will be automatically added
    • T:<id> - the ID of the task type
    • TR:<id> - the ID of any related task ie pEmail record
    • X1:<data> - data for script variable SCRIPTX1
    • X2:<data> - data for script variable SCRIPTX2
    • X3:<data> - data for script variable SCRIPTX3