cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Forms

Former Member
0 Kudos

We have some 8 to 10 user-defined screens. We are unable to open 2 0r 3 screens at a time as we do the original SBO screens. Please help with any procedure that we could use for opening many screens at a time rather than opening one by one.

Thanks,

Jona

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi, Jona!

You have to play with <i>Form.UniqueID</i>. I use something like timestamp for this purpose

sResourceFile = "myForm.xml"
oXMLDoc.Load(sResourceFile)

creationPackage = SBO_Application.CreateObject(BoCreatableObjectType.cot_FormCreationParams)
creationPackage.UniqueID = "myForm_" & Format (Now, "HHmmssffff")
creationPackage.FormType = "myForm"
creationPackage.BorderStyle = BoFormBorderStyle.fbs_Fixed
creationPackage.XmlData = oXMLDoc.InnerXml

oForm = SBO_Application.Forms.AddEx(creationPackage)

Regards,

Sergey

AdKerremans
Active Contributor
0 Kudos

Hi,

Sergey is right, I think you use the same unique formid for all your forms.

Regards

Ad

Answers (0)