new RMP_RadioButton(conf)
        This constructor allows you to create a radioButton widget that can be inserted dynamically in your web interface
    
    
    
    
    
    
    
        Parameters:
| Name | Type | Description | 
|---|---|---|
| conf | Object | JSON structure which contains the configuration of the radioButton | 
Example
var conf = {"id":"id_list","label":"My List","variable":[{"name":"my_list_label","ref":"label"},{"name":"my_list_value","ref":"value"}],"url":"live/1/data/6fb67310-5307-11e1-a3cc-f0bf97e1b068?P_version=${P_version}&P_mode=${P_mode}","list_type":"custom_list","label-field":{"tagname":"json:label"},"value-field":{"tagname":"json:value"},"visible-items":"1","label":{"text":"My List"}};
var id_list= new RMP_RadioButton(conf); 
id_widget.insertBefore(id_list); 
 Methods
- 
    getContainerIndex() → {String}
- 
    
    
    
    
    
    
    
    
    
Returns:the index of the container of the widget, it might be the index of the column if the widget is in an array or the index of the tab if it's in a tab panel- Type
- String
 
- 
    getElement() → {object}
- 
    
    
    This function returns the html object of the widgetReturns:- Type
- object
 
- 
    getLabel() → {String}
- 
    
    
    This function returns the label of a widget (if he has one)Returns:- Type
- String
 
- 
    getList() → {RMP_List}
- 
    
    
    Returns the content of a list- See:
- 
        - RMP_List to know more about the "RunMyProcess List" structure
 
 Returns:- Type
- RMP_List
 ExampleThe content of a list is returned with the following structure[{"label":"label1","value":"value1"},{"label":"label2","value":"value2"},{"label":"label3","value":"value3"}] 
- 
    getListOfMyVariables() → {object}
- 
    
    
    This function returns the list of variables of the widgetReturns:- Type
- object
 Example["id8.label","id8.value"] for list or ["textvar"] for a text input 
- 
    getListVariableName() → {String}
- 
    
    
    
    
    
    
    
    
    
Returns:returns the variable name of a variable based list widget- Type
- String
 
- 
    getMissingVariableMessage() → {String}
- 
    
    
    This function returns the message displayed if a mandatory widget's variable is missingReturns:- Type
- String
 
- 
    getName() → {String}
- 
    
    
    This function returns the id as string of the widgetReturns:- Type
- String
 
- 
    getParent() → {object}
- 
    
    
    
    
    
    
    
    
    
Returns:the parent widget of a widget- Type
- object
 
- 
    getSelectedLabel() → {String}
- 
    
    
    
    
    
    
    
    
    
Returns:returns the label selected by the connected user- Type
- String
 
- 
    getSelectedValue() → {String}
- 
    
    
    
    
    
    
    
    
    
Returns:returns the value selected by the connected user. It does not work with multi selection list.- Type
- String
 
- 
    getTooltip() → {String}
- 
    
    
    This function returns the tooltip text of the widgetReturns:- Type
- String
 
- 
    getType() → {String}
- 
    
    
    This function returns the type of the widget(RMP_Image, RMP_Html, RMP_Scripter, RMP_StaticTextwidget, RMP_Button, RMP_TextInput, RMP_ListBox, RMP_MultiSelectionCheckBox, RMP_RadioButton, RMP_Array, RMP_FileUpload... )Returns:- Type
- String
 
- 
    getValidationVariableMessage() → {String}
- 
    
    
    This function returns the message displayed if a validation rule is not metReturns:- Type
- String
 
- 
    getValue() → {String}
- 
    
    
    This function returns the value of the widget's variable. It does not work for list's widgets (check box list, radio button list and list) where you should use widgetID.getSelectedValue.Returns:- Type
- String
 
- 
    getVariableValue(varName) → {String}
- 
    
    
    This function returns the value of a given variable of the widgetParameters:Name Type Description varNameString Returns:- Type
- String
 
- 
    insertAbove(widget)
- 
    
    
    This function allows you to insert above widgetID, the new widget created thanks to new RMP_xxx() functionParameters:Name Type Description widgetobject the inserted widget 
- 
    insertAfter(widget)
- 
    
    
    This function allows you to insert on the left of widgetID, the new widget created thanks to new RMP_xxx() functionParameters:Name Type Description widgetobject the inserted widget 
- 
    insertBefore(widget)
- 
    
    
    This function allows you to insert on the right of widgetID, the new widget created thanks to new RMP_xxx() functionParameters:Name Type Description widgetobject the inserted widget 
- 
    insertBelow(widget)
- 
    
    
    This function allows you to insert below widgetID, the new widget created thanks to new RMP_xxx() functionParameters:Name Type Description widgetobject the inserted widget 
- 
    isActive() → {boolean}
- 
    
    
    This function returns true if the widget is active and false otherwiseReturns:- Type
- boolean
 
- 
    isEmptyVariable(variable) → {boolean}
- 
    
    
    This function returns true if the the widget's variable is empty and false otherwiseParameters:Name Type Description variableString Returns:- Type
- boolean
 
- 
    isEnabled() → {boolean}
- 
    
    
    This function returns true if a widget is active and false otherwiseReturns:- Type
- boolean
 
- 
    isIndexed() → {boolean}
- 
    
    
    This function returns true if the the widget's variable is an array and false otherwiseReturns:- Type
- boolean
 
- 
    isIndexedVariable(name) → {boolean}
- 
    
    
    This function returns true if the the widget's variable is an array and false otherwiseParameters:Name Type Description nameString Returns:- Type
- boolean
 
- 
    isRequired() → {boolean}
- 
    
    
    This function returns true if the the widget's variable is required and false otherwiseReturns:- Type
- boolean
 
- 
    isValid(checkRules) → {boolean}
- 
    
    
    This function returns true if the the widget's variable is valid and false otherwiseParameters:Name Type Description checkRulesboolean Returns:- Type
- boolean
 
- 
    isValidVariable(varName) → {boolean}
- 
    
    
    This function returns true if the the widget's variable is valid and false otherwiseParameters:Name Type Description varNameString Returns:- Type
- boolean
 
- 
    isVisible() → {boolean}
- 
    
    
    This function returns true if the widget is visible and false otherwiseReturns:- Type
- boolean
 
- 
    loadList(url)
- 
    
    
    Set URL field of your list widgetParameters:Name Type Description urlString 
- 
    moveAfter(widget)
- 
    
    
    This function allows you to move widgetID2 after (on the the right) widgetID1Parameters:Name Type Description widgetobject the inserted widget 
- 
    moveBefore(widget)
- 
    
    
    This function allows you to move widgetID2 before (on the left) widgetID1Parameters:Name Type Description widgetobject the inserted widget 
- 
    remove(widget)
- 
    
    
    This function allows you to remove widgetID. If removeVariable is set to true, it will also deleted content of variable attached to widgetParameters:Name Type Description widgetobject the inserted widget 
- 
    reset()
- 
    
    
    reset a list selection to empty
- 
    setActive(active)
- 
    
    
    This function allows to set the widget as active/inactiveParameters:Name Type Description activeboolean 
- 
    setEnabled(e)
- 
    
    
    This function allows to set a widget as active/inactiveParameters:Name Type Description eboolean 
- 
    setLabel(text)
- 
    
    
    This function sets the label of a widget (except for html, image, array and static text widgets which don't have label field)Parameters:Name Type Description textString 
- 
    setListVariableName(name)
- 
    
    
    Sets the variable name of a variable based list widgetParameters:Name Type Description nameString 
- 
    setMissingVariableMessage(msg)
- 
    
    
    This function sets the message displayed if a mandatory widget's variable is missingParameters:Name Type Description msgString 
- 
    setPicked(label, value)
- 
    
    
    Set the picked itemParameters:Name Type Description labelString valueString 
- 
    setPostLoadedScript(script)
- 
    
    
    Sets the post loaded script of a listParameters:Name Type Description scriptString 
- 
    setRequired(req)
- 
    
    
    This function sets the mandatory status of the widget's variableParameters:Name Type Description reqboolean 
- 
    setSelectedLabel(label)
- 
    
    
    Sets label (value) displayed to the connected userParameters:Name Type Description labelString 
- 
    setSelectedValue(value)
- 
    
    
    Sets value (label) displayed to the connected userParameters:Name Type Description valueString 
- 
    setTooltip(tooltip)
- 
    
    
    This function sets the tooltip text of the widgetParameters:Name Type Description tooltipString 
- 
    setValidationVariableMessage(msg)
- 
    
    
    This function sets the message displayed if a validation rule is not metParameters:Name Type Description msgString 
- 
    setValue(value)
- 
    
    
    This function sets the value of the widget's variable. It does not work for list's widgets (check box list, radio button list and list) where you should use widgetID.setSelectedValue.Parameters:Name Type Description valueString 
- 
    setVariableValue(varName, value)
- 
    
    
    This function sets the value of a given variable of the widgetParameters:Name Type Description varNameString valueString 
- 
    setVisible(v)
- 
    
    
    This function allows to set the widget as visible/invisibleParameters:Name Type Description vboolean 
