Adding an Input Window Manually

Add an input window to the diagram in the sample PortfolioValuation project.

These steps let you create an Input Window directly, and define the schema, without importing a schema.

If you used the input adapter to discover the schema and generate both input windows automatically, skip these steps and go directly to the next task.

  1. In the Visual editor, in the Palette to the right of the diagram, open the Streams and Windows compartment.
  2. Click Input Window.
  3. Click in an empty area in the diagram where you want to insert the input window
    The input window object is added to the project. The red border indicates that it needs more definition to be valid.
  4. To set the name of the input window, either:
    • In iconic mode, click once to select the shape, then click again to edit the name.
    • In verbose mode, click the edit icon next to the name.
    For this example, enter the name PriceFeed.
  5. Expand the shape to verbose mode, and click Add Column (column.gif) on the input window shape toolbar, to add each new column.
    Tip: Hover over any icon to see its name.
    A new column is created with a default name, and default datatype of integer.
  6. Enter the column name, then click the datatype. Click again to choose a datatype from the drop-down.
    For this example, enter these column names and datatypes:
    • Id – integer
    • Symbol – string
    • Price – float
    • Shares – integer
    • TradeTime – date
  7. Click the column.gif button for the Id column to toggle it to the Key symbol.
    A primary key is required for input windows.
    The Id column is now the primary key for the PriceFeed input window. The red border should change to gray.
  8. Save (Ctrl+S).
The input window and its schema (or deduced schema) are in the diagram. Because you did not set a retention policy, the default policy, save all records, applies.