company logo

ControlContext :: fieldExist - Check whether field exists or not

The function searches for a subordinated field context with the name passed sField. When a field with the name passed has been found, the function returns true. Since field names are defined in the context of the owning control, field names should be unique (but need not).

The field name might be defined as context path, which refers to the field hierarchy starting with the current control. In contrast tocontrolExist() and buttonExist(), the function uses the field name hierarchy rather than the control name hierarchy.

In order to go up one or more levels in the hierarchy, a corresponding number of dots may precede the path.

fieldExist("my_city");            // search my_city field in current control

fieldExist("..my_city");          // search my_city field in parent-parent-control

fieldExist("my_address.my_city"); // search my_city field in subordinated address form

Return value:  State of function return ( bool  )

A State true indicates, that the function was executed successfully. Otherwise state is false.

Implementation details

bool ControlContext  :: fieldExist ( odaba::String &sField )
  • sField - Field name

    The field name is the name of the field resource (ADK_Field) as being defined within the control.