cancel
Showing results for 
Search instead for 
Did you mean: 

select command

Former Member
0 Kudos

hello expert

sir i want to select some feilds from database and display in perticular edit box during loading the form pls help me because i am new person for this

Accepted Solutions (1)

Accepted Solutions (1)

edy_simon
Active Contributor
0 Kudos

Hi vmaskey,

For getting your data from database, you can use the oRecordset Object of the DI.

something like


Dim oRS as SAPBobsCom.oRecordset
oRS = ocompany.GetBusinessObject(boRecordset)
Dim sSQL as string = "SELECT yourfields FROM yourtable WHERE yourcriteria"
oRS.DoQuery(sSQL)

Dim sValue1 as string = oRS.Fields.Item("yourfields").Value

To Put it into the desired field during form load, please refer to your SDK Help Files.

Basically you need to catch the etFormLoad event at BeforeAction = False. and then assign your field as


oEdit = oForm.Items.Item("fieldID").Specific
oEdit.String = sValue1

Regards

Edy

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Which tool do you use for that?