📚 SAP Business One SDK Help

SetAutoManagedAttribute Method
See Also 
AttrType

Specifies the item attribute for which you want to set a behavior. The behavior is set in the Behavior parameter.

ModeMask
Specifies the form mode in which you want to set the item behavior. The value is a mask for BoAutoFormMode values allowing you to select multiple form modes.
Behavior
Specifies the item behavior in the selected item attribute ( AttrType) and form mode ( ModeMask).

Description

Sets the behavior of this item when the form mode changes in forms that are managed automatically by the application.

You can use this method to manipulate items behavior in specific form modes when the form modes are managed automatically by the application.

Syntax

Visual Basic
Public Sub SetAutoManagedAttribute( _
   ByVal AttrType As BoAutoManagedAttr, _
   ByVal ModeMask As Long, _
   ByVal Behavior As BoModeVisualBehavior _
) 

Parameters

AttrType
ValueDescription
ama_VisibleSelects the visible item attribute.
ama_EditableSelects the editable item attribute.

Specifies the item attribute for which you want to set a behavior. The behavior is set in the Behavior parameter.

ModeMask
Specifies the form mode in which you want to set the item behavior. The value is a mask for BoAutoFormMode values allowing you to select multiple form modes.
Behavior
ValueDescription
mvb_FalseThe setting in AttrType parameter is false.
mvb_TrueThe setting in AttrType parameter is true.
mvb_DefaultThe item attribute behaves according to the attribute default in the specified form mode.
Specifies the item behavior in the selected item attribute ( AttrType) and form mode ( ModeMask).

Remarks

This method is valid only for user-defined forms.

See Also