on 05-14-2008 12:20 PM
How to give SETVALUE in system form.. i had added a control in that form......
Badri,
U cannot give SETVALUE for system form either u can assign as
PO_Frm.Items.Item("t_vfrom").Specific.Value = "[some value]"
Regards,
Anitha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is my function
Public Function LoadControl()
Try
Dim objRs As SAPbobsCOM.Recordset = objCom.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
Dim DataSource As SAPbouiCOM.DataSource = objFrm.DataSources.DBDataSources.Item("OPOR")
objRs.DoQuery("select (max(U_ID)+1) as num from [OPOR]")
Debug.Print(objRs.Fields.Item(0).Value)
SETVALUE
System.Runtime.InteropServices.Marshal.ReleaseComObject(objRs)
GC.WaitForPendingFinalizers()
GC.Collect()
objRs = Nothing
Return True
Catch ex As Exception
End Try
End Function
Hi,
Set the EditBox direct.
lets say you want to set the Supplier TextBox in the Purchase Order
Supplier Box has the ItemUID "4"
c# code:
((SAPbouiCOM.EditText)(oForm.Items.Item("4").Specific)).Value = objRs.Fields.Item(0).Value.ToString()
thats the way, Anitha was right, she just was posting the code in VB6.
regards
David
Hi Sridhar,
Anitha is right, as long as your added "control" is not a grid/matrix that has a DataTable behind.
so - whats your control ?
regards
David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
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.