Page tree
Skip to end of metadata
Go to start of metadata

How can I select or pass multiple values?

You can select and pass multiple records with some UI elements.
See also Choosing Multiple Values within Visual Composer

Table

Select the table, switch to the Configure Element pane and select in the drop down field Selection Mode the value Multiple.

Listbox

Add a Form View element, and add a field of type Listbox. Then specify the Entry List.

Passing multiple values to backend

In order to pass multiple values to an RFC or web service, make sure that your RFC / web service accepts multiple records.

ABAP RFC

  1. Your RFC must have a table parameter. By default the table parameters of RFCs are output ports. Right-Click the output port and choose "Flip port".
  2. Connect the "flipped port" of your data service (RFC) with your table component.
  3. Change the Selection mode of the table to "Multiple".
  4. Click on the line that connects your table and data service and change mapping scope to selected data rows.
  5. Assign the values to the corresponding fields
  6. Add an action to a toolbar button or other element to fire the event.

Working in SP10.

Have also a look into this forum thread

Web service

Option 1

  1. Change the selection mode from table 1 to multiple.
  2. From table 1 (the one that comes from the first WS) drag a line and connect it to the second Web service.
  3. Click on the line that connects them and change mapping scope to selected data rows.
  4. Drag a table from the second Web service and a table.
    deploy.

Expected result:
The lines that you choose in the first table get transferred to the second table.
Actual results:
Working in SP11.

Option 2
In Step 3 of the first option change the mapping scope to all data rows.
Click on the first WS output port and select its capacity (determines how many rows to display in the first table).

Expected result::
In RT only the number of rows that where chosen as capacity will be displayed in the first table.
All table rows will be passed to the second web service and will be displayed in the table.

Option 3
Signal in and out.

  1. From table1 drag a line and select Signal Out.
  2. Select the fields you want and click ok.
    In this example will use:
    field name x data type number
    y data type date
    z data type text.
  3. Add a submit button to the table.
    Right Click on table and select create tool bar.
    1. Click on plus sign to add a button.
    2. Click Change button action to system action.
    3. Change action name to a desired name.
      Click on the line that connect the signal out to the table and change the event name to submit.
  4. Click on Compose and drag a signal in to the story board.
  5. Connect the Signal in to the second Web service.
  6. Change the Signal in name to much the signal out name
  7. Add fields to the signal in:
    Field name x data type number
    y data type date
    z data type text.
  8. Click on the line that connect the Signal in to the second web service and map the fields.
  9. Add a table view to the Second web service.

Deploy.
Note: For me it worked only when I have changes the Capacity of the first web service.

General remark

To select multiple values in your application, many controls require you to hold the CTRL-key while selecting each entry with mouse-clicks.

  • No labels