Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2300

Re: Call UDO EditTextBox SAP B1 SDK

$
0
0

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


Viewing all articles
Browse latest Browse all 2300

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>