Developer

getInputValueWithWarning() method

Similar to getInputValue() but this method throws RequiredParameterMissingException when the input attribute is not optional (or mandatory) but the value is null (or not populated).

Syntax
Syntax
public InputValue getInputValueWithWarning () throws DBException, RequiredParameterMissingException

Returns

value in InputValue type

Exceptions

  • DBException Exception when accessing the session variable from database
  • RequiredParameterMissingException This is a required input field but the value has not been populated

Remarks

This method is useful for processing multiple required input attributes as shown below:

               try {
                       // Attribute 1
                       attrib1.getInputValueWithWarning();

                       // Attribute 2
                       attrib2.getInputValueWithWarning();

               catch (RequiredParameterMissingException rex) {
                       handle the missing mandatory attributes
               }