Methods
- 
    <static> addListener(listener)
- 
    
    
    Allows to launch a function whenever a field of a web interface is modified.Parameters:Name Type Description listenerRMPApplication~VariableHandler 
- 
    <static> addProcessListener(listener)
- 
    
    
    Allows to launch a function call "processListener" whenever a process launched with RMPApplication.executeProcessParameters:Name Type Description listenerRMPApplication~ProcessExecutionHandler - Deprecated:
- Yes
 
- See:
 
- 
    <static> debug(message)
- 
    
    
    Display the message in the console of the browser only if the web interface has been opened in debug mode (the url contains P_attributes=debug)Parameters:Name Type Description messageString 
- 
    <static> debugable(label)
- 
    
    
    Instrumentalize (monitor) an instance of a javascript Object in debug mode (the url of the web interface contains P_attributes=debug). An instrumentalized Object will log in the console of the browser all its accesses which means: start, end and the stackstrace of the potential exceptions.Parameters:Name Type Description labelString 
- 
    <static> deregisterRequiredVariable(name)
- 
    
    
    This function allows to set a widget as optionalParameters:Name Type Description nameString 
- 
    <static> executeProcess(customerId, processId, key)
- 
    
    
    * This function allows to launch a process from a wen interface without closing it and wait for process return thanks to RMPApplication.addProcessListener function. It has been replaced by API Listener Tab.Parameters:Name Type Description customerIdString processIdString keyString - Deprecated:
- Yes
 
- See:
 
- 
    <static> forEachWidget(visitor)
- 
    
    
    This function calls a javascript function for each widget of web interface.Parameters:Name Type Description visitorRMPApplication~WidgetVisitor The function applied to widgets Examplefunction visitor(widget) { try { widget.setEnabled(true); } catch(err){ console.log(err); } } RMPWidgets.forEachWidget(visitor); 
- 
    <static> get(name) → {String}
- 
    
    
    Alias to RMPApplication.getVariableParameters:Name Type Description nameString Returns:- Type
- String
 
- 
    <static> getAllApplicationVariables() → {Array.<String>}
- 
    
    
    This function returns an array with all variable names of the current web interfaceReturns:- Type
- Array.<String>
 Example(["var1","var2","var3"]) 
- 
    <static> getAllIndexedValues(name) → {String}
- 
    
    
    This function returns all the values of a column of an array("val1","val2",...) Parameters:Name Type Description nameString Returns:- Type
- String
 
- 
    <static> getAllVariablesValues() → {Object}
- 
    
    
    This function returns a Json object with all variable names/values of the current web interfaceReturns:- Type
- Object
 Example{"var1":"val1","array_var":["val1","val2","val3"]}) 
- 
    <static> getAllWidgets() → {Array.<Object>}
- 
    
    
    This function returns all widgets of web interface.Returns:- Type
- Array.<Object>
 Examplevar widgetList = RMPWidgets.getAllWidgets(); for( i=0 ; i< widgetList.length ; i++ ){ widgetList[i].setVisible(true); } 
- 
    <static> getAllWidgetsId() → {Array.<String>}
- 
    
    
    This function returns all widgets' ID of web interface.Returns:- Type
- Array.<String>
 
- 
    <static> getIndexedVariable(name, index) → {String}
- 
    
    
    This function returns the value of a widget of an array (index is a string starting at "0")Parameters:Name Type Description nameString indexString Returns:- Type
- String
 ExampleRMPApplication.getIndexedVariable("mycol1","2") 
- 
    <static> getIndexedVariableLength(name) → {String}
- 
    
    
    This function returns the number of lines of an arrayParameters:Name Type Description nameString Returns:- Type
- String
 
- 
    <static> getInvalidWidgets() → {Array.<Object>}
- 
    
    
    This function returns an array that contains all the invalid widgetsReturns:- Type
- Array.<Object>
 
- 
    <static> getList(name) → {RMP_List}
- 
    
    
    This function returns a RMP_List objectParameters:Name Type Description nameString Returns:list- Type
- RMP_List
 Examplevar myList = RMPApplication.getList( "myListVariable"); 
- 
    <static> getVariable(name) → {String}
- 
    
    
    This function allows to get the value of a widget of your current web page (text input for instance)Parameters:Name Type Description nameString Returns:- Type
- String
 
- 
    <static> isEnabled(name) → {boolean}
- 
    
    
    This function returns true if a widget is active and false otherwiseParameters:Name Type Description nameString Returns:- Type
- boolean
 
- 
    <static> isIndexedVariable(name) → {boolean}
- 
    
    
    This function returns true if a widget is part of an array and false otherwiseParameters:Name Type Description nameString Returns:- Type
- boolean
 
- 
    <static> isValid(name) → {boolean}
- 
    
    
    This function returns true if a widget matches its pattern and false otherwiseParameters:Name Type Description nameString Returns:- Type
- boolean
 
- 
    <static> isValidIndexedVariable(name, index) → {boolean}
- 
    
    
    This function returns true if a widget of an array matches "pattern" validation and false otherwiseParameters:Name Type Description nameString indexString Returns:- Type
- boolean
 
- 
    <static> isVisible(name) → {boolean}
- 
    
    
    This function returns true if a widget is visible and false otherwiseParameters:Name Type Description nameString Returns:- Type
- boolean
 
- 
    <static> registerRequiredVariable(name)
- 
    
    
    This function allows to set a widget as mandatory (display message should be configured during form Design phase)Parameters:Name Type Description nameString 
- 
    <static> removeListener(listener)
- 
    
    
    This function allows to remove the previous listener.Parameters:Name Type Description listenerRMPApplication~VariableHandler 
- 
    <static> save(successCallback, failureCallback)
- 
    
    
    This function saves current web interface with data filled by user, it does the same job as the widget button "save document"Parameters:Name Type Description successCallbackRMPApplication~SaveCallback failureCallbackRMPApplication~SaveCallback 
- 
    <static> set(name, value)
- 
    
    
    Alias to RMPApplication.setVariableParameters:Name Type Description nameString valueString 
- 
    <static> setEnabled(name, enabled)
- 
    
    
    This function allows to set a widget as active/inactiveParameters:Name Type Description nameString enabledboolean 
- 
    <static> setIndexedVariable(name, value, index)
- 
    
    
    This function sets the value of a widget of an array index is a string starting at "0") :RMPApplication.setIndexedVariable("mycol1","newvalue","2") Parameters:Name Type Description nameString valueString indexString 
- 
    <static> setList(name, list)
- 
    
    
    This function sets a RMP_List. If your variable based list is in an array, don't forget to add "array variable" before "variable based list variable".Parameters:Name Type Description nameString listRMP_List ExampleRMPApplication.setList( "mylistvar", rmpList ); RMPApplication.setList( "myarray.mylistvar", rmpList ); 
- 
    <static> setVariable(name, value)
- 
    
    
    This function allows to set the value of a widget of your current web page (list for instance)Parameters:Name Type Description nameString valueString 
- 
    <static> setVisible(name, visible)
- 
    
    
    This function allows to set a widget as visible/invisibleParameters:Name Type Description nameString visibleboolean 
- 
    <static> showErrorBox(title, message)
- 
    
    
    This function opens a pop-up box (like an "alert").Parameters:Name Type Description titleString messageString 
- 
    <static> transpose(object) → {Object}
- 
    
    
    This function transposes a JSON object to a JSON array and vice versaParameters:Name Type Description objectObject to transpose Returns:- Type
- Object
 Examplevar rows=[{"a":"a1","b":"b1"},{"a":"a2","b":"b2"}]; var to_columns = RMPApplication.transpose(rows); // {"a":["a1","a2"],"b":["b1","b2"]} var to_rows = RMPApplication.transpose(to_columns); // [{"a":"a1","b":"b1"},{"a":"a2","b":"b2"}] 
- 
    <static> uuid() → {String}
- 
    
    
    This function generates a RFC4122 v4 UUIDReturns:- Type
- String
 Example"109156be-c4fb-41ea-b1b4-efe1671c5836" 
- 
    <static> validate() → {boolean}
- 
    
    
    This function returns true if all mandatory fields are filled and match their pattern and false otherwise.Returns:- Type
- boolean
 
Type Definitions
- 
    ProcessExecutionHandler(name, status, content)
- 
    
    
    This callback is used to handle the execution of a processParameters:Name Type Description nameString process name statusString process execution status contentString execution result - Deprecated:
- Yes
 
- See:
 
- 
    SaveCallback()
- 
    
    
    Called after the save of the web interface
- 
    VariableHandler(name, newvalue, P_index, widget)
- 
    
    
    This handler is used when a variable value changedParameters:Name Type Description nameString variable name newvalueString variable value P_indexint index of the selected RMP_Array line (-1 if any) widgetObject widget object (null if any) 
- 
    WidgetVisitor(widget)
- 
    
    
    Function applied to a widgetParameters:Name Type Description widgetObject 
