I have created a form in Screen Painter with four folders. But when I try to access the folder item through code it says "Invalid Item". Here's a sample of the code.
Private Sub sbo_Application(Byval FOrmUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles sbo_Application.ItemEvent
Dim f As SAPbouiCOM.Form
Select Case FormUID
Case "FRM_FUTA"
f = SBO_Application.Forms.Item("FRM_FUTA")
If ((pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD) And Not (pVal.Before_Action = True)) Then
oItem = f.Items.Item("207")
objFolder = oItem.Specific()
f.PaneLevel = 1
objFolder.Select()
End If
The item and the form both exists. I can come up with a logical explanation for this.