Contents
Display Legacy Contents

 Print
    Set Selection  
Selects the specified item on a control.

Parameters

Control
The control that you want to set the selection of.


Selection Type
The type of selection you want to make.

It can be one of:
  • By return value.
    You'll specify the return value of the item you want to select.


    Value string
    The return value, specified in the Control's content, of the item you want to select.

  • By index.
    You'll specify the index of the item you want to select.


    Value numeric
    The index of the item you want to select.

    Specify 0 to unselect the Control.

     
  • Indexes in Kalipso always start in 1.
  • If we make a "Set Selection" to a table and immediately after, we use an Action like "Table Get Column Value" without specifying the line index (therefore passing the value zero), Kalipso returns an error, saying:

    - Trying to get value from selected line, but there is no selected line!

    This happens because the Action "Set Selection" sends a message indicating that a selection should be done, but kalipso doesn’t control when this selection is done. So Kalipso tries to execute immediately an action that doesn’t work by message. This action is executed immediately, but doesn´t indicates the line index and the selections wasn’t yet done. Therefore an error is returned.

    To resolve this issue you only need to pass the same index to all table actions where you have to use the line index and that index can be zero.

See also
Samples

 
 
Updated : 3/21/2018 5:52 PM