📚 SAP Business One SDK Help

User ObjectMD_FormColumns Object
See Also  Members  Example

Description

UserObjectMD_FormColumns is child object of the UserObjectsMD object that represents the default fields (columns) to display in the default form (UDO form with the matrix style).

Source table: UDO3.

Remarks

If the user-defined object uses the default form service (CanCreateDefaultForm), then the mandatory field in SAP Business One is: SonNumber.

When adding fields to a default form, the first field must be as follows:

  • For Master data object type - Code.
  • For Document object type - DocEntry.

Example

Adding fields to a default form of Master Data object type (Visual Basic)Copy Code
oUserObjectMD.FormColumns.FormColumnAlias = "Code"
oUserObjectMD.FormColumns.FormColumnDescription = "Code"
oUserObjectMD.FormColumns.Add

'Add the remaining columns to the default form
Adding fields to a default form of Document object type (Visual Basic)Copy Code
oUserObjectMD.FormColumns.FormColumnAlias = "DocEntry"
oUserObjectMD.FormColumns.FormColumnDescription = "DocEntry"
oUserObjectMD.FormColumns.Add

'add the remaining columns to the default form

See Also