on 06-13-2009 6:09 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Which tool do you use for that?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.