cancel
Showing results for 
Search instead for 
Did you mean: 

can have multiple threads of execution whith SDK??

former_member373665
Participant
0 Kudos

hi,

can i pause the execution of record and continue it when i want??

thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Mariano,

Yes, you can use multiple threads, if you can build in .net you can (in most cases) use it in SBO.

I am not sure if I get your question, maybe you could be more specific.

HTH.

Regards Teun

former_member373665
Participant
0 Kudos

Hi Teun;

this is my code to add a BusinessPartners. see how I can pause the execution until I get a value from another form; how can do it???

-


If BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD And 
 BusinessObjectInfo.BeforeAction = True Then

BP = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oBusinessPartners)
BP.Browser.GetByKeys( BusinessObjectInfo.ObjectKey )//open Form1
oXmlDoc.Load(NameForm)

creationPackage = SBO_Application.CreateObject (SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)


creationPackage.XmlData = oXmlDoc.InnerXml
oForm1 = SBO_Application.Forms.AddEx(creationPackage)

dim Class as NewClass = new (oForm1 ,BP) 

// PAUSE. I Dont want to add this record until the Form1 get me a value.
// This value I have to selected from a Grid on the Form1,
// so until I select it I can't continue with the execution,
// because I need to assign the value to the BusinessPartners. how can do it??? 

// assign to the IC the Value
IC.UserFields.Fields().Item("UserField").Value = Class.Value 

End if

Please, help me.Thanks