Hello,
I migrated a project from PB 11.2 to 2017R3. Then I created .net assembly project, included several libraries containing NVOs and many datawindows and deploy it as a .net assembly.
When I add this new dll as a reference to another C# project built in Visual studio I'm able to call a method XYZ from NVO compiled in dll. So far it's ok.
The problem appears when I try to retrieve a datastore in my PB method XYZ. The dataobject is assigned dynamically from string. SetTransObject always returns -1 and retrieve() as well.
The same method XYZ called directly from PB application works fine.
It looks like the object of datawindow is not included or generated in .net assembly and therefore cannot be used. Am I wrong?
I read about planned feature of C# datastore in PB2018. Will it help in my case?
lds_data = create datastore
lds_data.DataObject = "d_data"
lds_data.SetTransObject(ltr_sqlcatran)
lds_data.retrieve()
Thank you
Robert