Hi,
I need some help about LoadBatchActions.
I create a form whith ScreenPainter.
In my code, I load this form with loadbatchaction and after i add some control (Grid, linked button, CFL, etc..) and other thing.
But my problem is when i do the loadbatchaction and instance the form with her UniqueID, the form is visible in SAP BO and i don't want this... because we see it without the control a add after..
How can i do the form invisible as soon as i draw all controls ?
Here's my code :
Dim objForm As SAPbouiCOM.Form
Dim objXml As New Xml.XmlDocument
'Load the form by xml
objXml.Load("ALP_Forme1.srf")
objSAPBOApplication.LoadBatchActions(objXml.InnerXml)
' Instanciation of the form
objForm = objSAPBOApplication.Forms.Item("ALP_F1")
objForm.Freeze(True)
' Adding the other controls
AddGrid(objForm)
' Addind the UDS and DataBinds
AddUserDataSource(objForm)
' Adding CFL
AddChooseFromList(objForm)
' Traduction
'SetLocalization(objForm)
objForm.Freeze(False)
objForm.Visible = True