Skip to Content
author's profile photo Former Member
Former Member

Call UDO EditTextBox SAP B1 SDK

Dear All,

How to Call UDO in EditTextBox using SAP B1 SDK?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on May 11, 2016 at 08:18 AM

    Hi Lakshmi,

    What do you mean with call? You can bind an edittext to your UDO.

    Parameters

    Bound

    Indicates whether to bind or unbind the item:

    False: Unbind (default)

    True: Bind

    TableName

    The name of a database table. For user data sources, leave this field empty.

    Alias

    For DBDataSource: The alias of a database field

    For UserDataSource: The unique ID of the user data source

    Remarks

    This method is valid for user-defined items only.

    Example

    Binding a data source to an item (Visual Basic)

    Public Sub BimdingDataSourceToItem()

    Dim oForm As SAPbouiCOM.Form

    Dim oEditText As SAPbouiCOM.EditText

    '// Add a form

    Set oForm = SBO_Application.Forms.Add("SimpleForm")

    '// Add a UserDataSource to the form

    oForm.DataSources.UserDataSources.Add "EditSource", dt_SHORT_TEXT, 20

    '//*************************

    '// Adding a TextEdit item

    '//*************************

    Set oEditText = oForm.Items.Add("EditText1", it_EDIT).Specific

    '// Bind the text box to the UsedDataSource

    oEditText.DataBind.SetBound True, "", "EditSource"

    End Sub

    See Also

    DataBind Object

    More information in the SDK Help Center and in the Samples directory.


    Best regards,

    Pedro Magueija


    View Pedro Magueija's profile on LinkedIn

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.