📚 SAP Business One SDK Help

EditText Object Members
See Also  Overview 

Public Methods

Public Method ClickPickerSimulates a user click (main mouse button) on an icon to open a picker, setting the focus on the item and opening the picker form.

Public Properties

Public Property ActiveIndicates whether the item has the focus. Set the property as follows:
  • True: Puts the focus on the item.
  • False: Removes the focus from the item. If the item had been in focus, the focus moves to the next item that can get the focus.
Public Property BackColorDeprecated in UI API 2004.
The property is supported for backward compatibility in the next two releases. Use Item.BackColor instead.
Public Property ChooseFromListAliasThe database field by which to filter a ChooseFromList attached to the edit box.

When the user enters a value in the text box and then presses the tab key, the ChooseFromList dialog is displayed with only those rows where the value of the field specified in this property starts with the entered text. 

For example, if the ChooseFromList displays business partners and this property is set to CardCode, when the user enters A in the edit box and presses the tab key, the ChooseFromList is displayed with only rows where the code starts with an A. If this property is set to CardName, then the same action displays only rows where the name starts with an A.

In either case, after the user selects a value, the key of the selected row is entered into the text box.

Public Property ChooseFromListUIDThe unique ID of the ChooseFromList object to attach with this item.
Public Property DataBindThe DataBind object tied to this item.
Public Property FontSizeDeprecated in UI API 2004.
The property is supported for backward compatibility in the next two releases. Use Item.FontSize instead.
Public Property ForeColorDeprecated in UI API 2004.
The property is supported for backward compatibility in the next two releases. Use Item.ForeColor instead.
Public Property IsPasswordSpecifies whether the input data is of the same look and feel as a password field.

The default value is false; setting it to true makes the EditText behaves like a password field.

If you get the value of the EditText via UI API, the value returned is the real value of the field.

Public Property ItemThe item properties of the edit text. You can get the item that specifics the edit text, and set the item properties if necessary.
Public Property PickerTypeThe picker type for this item.
Public Property ScrollBarsIndicates whether the text box has a scroll bar.
Public Property StringThe text displayed in the textbox.
Public Property SuppressZerosIndicates whether to hide leading zeros as well as trailing zeros after a decimal point.
Public Property TabOrderThe item's tab order, which can be any long integer equal to or greater than 0.

Tab order is the order in which form items get focus when the user presses the TAB key. Only items that can get focus can get a tab order value, for example, you cannot set a tab order for cells or columns.

Two items can have the same tab order, in which case the order is not guaranteed.

Public Property TextStyleDeprecated in UI API 2004.
The property is supported for backward compatibility in the next two releases. Use Item.TextStyle instead.
Public Property ValueThe value associated with the edit box, provided as a string.

Events

Public Event ChooseFromListAfterThe event occurs after the user makes a selection in the ChooseFromList form or chooses Cancel.
Public Event ChooseFromListBeforeThe event occurs before the ChooseFromList form is displayed.
Public Event ClickAfterThe event occurs after the main mouse button was clicked.
Public Event ClickBeforeThe event occurs before the main mouse button was clicked.
Public Event DoubleClickAfterThe event occurs after the main mouse button was double clicked.
Public Event DoubleClickBeforeThe event occurs before the main mouse button was double clicked.
Public Event GotFocusAfterGotFocusAfter
Public Event KeyDownAfterThe event occurs after the key was pressed.
Public Event KeyDownBeforeThe event occurs before the key was pressed.
Public Event LostFocusAfterLostFocusAfter
Public Event PickerClickedBeforeThe event occurs before the Picker form is displayed.
Public Event PressedAfterThe event occurs after the item was pressed, that is, a mouse is released within an item.
Public Event PressedBeforeThe event occurs before the item was pressed.
Public Event ValidateAfterAn item lost focus and validation is required. The event occurs after the validation.
Public Event ValidateBeforeAn item lost focus and validation is required. The event occurs after the validation.

See Also