cancel
Showing results for 
Search instead for 
Did you mean: 

Cursor Position

Former Member
0 Kudos

Hi To All,

i had added controls in system form. whenever i opens the screen, the cursor is placed in the control which i had added. but i want the control to be in the first item of the form.... what to do.. i had given form.active.. but for tat it gives


Cannot get information for an item when the form is not active  [66000-109]

i had given this form.active after adding controls in


 Case SAPbouiCOM.BoEventTypes.et_FORM_LOAD

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Catch event SAPbouiCOM.BoEventTypes.et_FORM_LOAD and pval.beforeaction = false

and in this event emulate click on first item.

Former Member
0 Kudos

Now also, i had got the same error.. Here is my source..


  Case SAPbouiCOM.BoEventTypes.et_FORM_LOAD And pVal.BeforeAction = False
                Try
                    objFrm.Freeze(True)
                    AddControls(pVal.FormUID, pVal)
                    objFrm.ActiveItem = "54"
                    objFrm.Freeze(False)
                Catch ex As Exception
                    objFrm.Freeze(False)
                End Try

Whether its correct...

Nussi
Active Contributor
0 Kudos

Hallo Sridhar,

what Petr wanted to say that you should try your luck with click.

oForm.Items.Item("54").Click

move this code over oForm.Freeze(true)

lg David

Former Member
0 Kudos

Hi Petr and David,

Thanks for Response... its worked well. but i dont know to whom i shd give points....? plz tell.....?

Nussi
Active Contributor
0 Kudos

give Petr full points

iam satisfied with 2

lg David

Answers (0)