cancel
Showing results for 
Search instead for 
Did you mean: 

meaning of code

Former Member
0 Kudos

dear sir,

what does this coding mean

oForm.DataSources.UserDataSources.Add("EditSource", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 20)

Thanks

regards

Isha.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Isha,

Data Sources are used to show data on the screen. Each control (or most of them at least) needs to be bound to a data source to be able to display and hold information. A DB Data Source is a container of information that is retrieved directly from the database and written back to that database field. A User Data Source is a container for data that is not bound to the database. Lets say you want to calculate someone's age based on their birth date (and this age is not stored in the database) you'll use a user data source to display and hold the data on screen. Another reason for using a user data source is that a matrix can only hold information from one database table. If you want to retrieve data into a matrix from another table you will have to use a user data source and retrieve the data manually.

Hope it helps,

Adele

Answers (0)