SetListItem

The SetListItem component enables you to return specific List Items that are defined.

ScreenShot

Supported Functions

Double Click on the SetListItem component title bar to launch the SetListItem Editor Window.

ScreenShot

To create input variables click on the ScreenShot icon. Once an index is created, its data type could be changed and each index that is created will expose a Data out port.

Ports

The SetListItem component exposes Control In, Control Out, Data In and dynamic Data Out ports by default.

Port Description
Control In Must be connected to the Control Out port of one or more components.
Control Out Must be connected to the Control In port of any other component.
Data In Must be connected to the Data Out port of another component from where data is to be collected. The For Loop component exposes the From and To of the Data In ports.
Dynamic Data Out Must be connected to the Data In port of another component where data is to be displayed (Object). This port is displayed when we add items into the component.

Properties

To edit the properties of the Get List Item component, in the Properties window, change the required property. You can edit the following properties:

Property Description
Search Search for the respective property.
Delay After Execution Specifies the wait time (in seconds) after the action is executed.
Delay Before Execution Specifies the wait time (in seconds) before the action is executed.

Example

Let us consider an example of retrieving data from a return statement.

ScreenShot

  1. Click on this link: https://in.finance.yahoo.com/quote/AAPL?p=AAPL.

    To extract the table:

    • In the Toolbox, expand the Actions category.

    • Drag the Get Table component and drop it on the design surface.

    • To select the List to extract, click ScreenShot.
      The Press “CTRL+SHIFT” for selection message is displayed.

    • Press CTRL+SHIFT. The mouse pointer becomes a cross cursor.

    • Select the webpage List to extract.
      The selected content is displayed in the Get Table component.

    • Drag the For Each component and drop it on the Design surface.

  2. Add the GetListItem component.

    • In the Toolbox, expand Utilities and expand Reflections.

    • Drag the GetListItem component to the design surface.

    • Double click on the GetListItem title bar to launch the Get List Item editor.

    • Click on the ScreenShot to add additional parameters.

  3. Add a SetListItem component.

    • In the Toolbox, expand Utilities and expand Reflections.

    • Drag the GetListItem component to the design surface.

    • Double click on the GetListItem title bar to launch the Get List Item editor.

    • Click on the to add additional parameters.

    • Click OK.

  4. Add a WriteToExcel component to display output of the Get List Item component.

    • In the Toolbox, expand Utilities and then expand Data Writer.

    • Drag the WriteToExcel component and drop it on the Design surface.

    • To specify the file location, double-click the FilePath box and enter the required file path.

  5. Connect:

    • The control ports of all components.

    • The Data Out port of the Get Table component to the Data In port of the For Each component.

    • The Data out port of the For Each component to the Data In port of the GetListItem component.

    • The Loop out port of the For Each component to the control in port of the GetListItem.

    • The Object {0} Data out port of the GetListItem component to the {0} Data In port of the SetListItem component.

    • The Object {1} Data out port of the GetListItem component to the {1} Data In port of the SetListItem component.

    • The Data Out port of the SetListItem component to the Data In port of the WriteToExcel component.

    • In the toolbar, click Run.