Trouble Adding a String to a system Edit Text box
On the Service Call form, I would like to fill in the "Subject" edit text box using code.
Here's my code:
Dim objForm1 As SAPbouiCOM.Form Dim objFormItem1 As SAPbouiCOM.Item Dim objEditText1 As SAPbouiCOM.EditText objForm1 = objSboApp.Forms.Item(<FormUID>) objFormItem1 = objForm1.Items.Item("6") objEditText1 = objFormItem1.Specific objEditText1.Value = "Some Text"
Prior to this I am also setting the ActiveItem to the "Mfr Serial No." field.
When this code runs, it sends an error:
...and it brings up a Customer Equipment Card List window. It also places my string, "Some Text" into the 'Find' field in the Customer Equipment Card List window. The 'Find' field also happens to have a UID of "6".
I get the same error if I try to first set the ActiveItem to "6" (objForm1.ActiveItem = "6") and also the same error on (objEditText1.Active = True)
Message was edited by: