Publishing to the Sybase CEP Server

To set up publishing, associate a custom command with a Control Object such as a Button in the Display Builder.

The RTView Adapter supports publishing data to the Sybase CEP Server from a dashboard display. To set up publishing:

  1. Right-click the actionCommand property of the control, under the 'Interaction' category.
  2. Select Custom Command > C8.
  3. A new window appears. Type in a publish command using the following syntax:
    <conn_name>.publish ## <workspace_name.project_name.stream_name> ## <col_value_1> [## <col_value_2> ...]
    where
    • ## – Is the argument delimiter. You may configure this to be anything using the Add C8 Connection box. To get to this box, select Tools > Options in the Builder application, then select C8 from the list of options in the left, and click Add. Note that a space before and after the delimiter is required or the command does not work as expected.
    • <conn_name> – Is the name of a predefined connection to use for publishing.
    • <workspace_name.project_name.stream_name> – Is the target stream and it is composed of the concatentation of the workspace, project and stream name.
    • <col_value_...> – Is the value to specify for each column. There must be as many column values as there are columns in the target Stream. If you need to specify an empty string, change the Null Value property in the Add C8 Connection window to a different value. For any type other than Strings, an empty value (for example, '' ) always represents a NULL.
      To specify date and timestamp values, use the same format as the one specified in the Date Format and Timestamp Format property in the Add C8 Connection window. The format specification is the same as the one used by the Java SimpleDateFormat object.
      Variables, which are bound to appropriate controls, such as text boxes, radio buttons, and combo boxes, are typically used to supply the column values.
  4. If the publish command is successful, there is no response. If there is an error, a message box appears with the appropriate error message.