on 03-13-2010 7:26 PM
Hi all
I do a form for my UDO. When a open the form I want to display the first record of my UDO
how i can resolve it?
Thanks
Hi Alvaro,
You can also simulate clicking the "Go to first record" menu entry:
oApplication.ActivateMenuItem("1290")
Regards,
Vítor Vieira
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Normally UDO from loads with Find mode or otherwise you can forcefully make your query by selecting top one row and then auto click the find button......
Dim strQuery As String = "select Top 1 from [@Table]
Dim RecSet As SAPbobsCOM.Recordset
'Dim oCombo As SAPbouiCOM.ComboBox
RecSet = SBO_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
RecSet.DoQuery(strQuery)
If RecSet.Fields.Item(0).Value <> 0 Then
Me.m_SBO_Form.Freeze(True)
Dim oItem As SAPbouiCOM.Item
oItem = Me.m_SBO_Form.Items.Item("1")
oItem.Click(SAPbouiCOM.BoCellClickType.ct_Regular)
Hope it helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.