- Deepti Nimmagadda
- PowerBuilder
- Friday, 17 November 2023 03:22 AM UTC
Hello all,
I have a problem.
I am using Powebuilder 2022 R2. I have a c# class that needs to call a powerscript. The video I came across showed us to do it through Powerbuilder.RegisterObject, PowerBuilder.RegisteredObject.TriggerEvent and .Net Dll importer.
Is there a way to call the powerscript directly from c# code. .NET dll importer is not an option as the function that will call the code is being triggered by c# code and not from powerscript.
The flow is technically like this:
pb code event-> c# code-> c# code -> c# code(method where powerscript needs to be called)-> pb code.
Importing the .dll is not an option because then I would need to trigger the method from .dll through powerscript. The variable I need to be sending to the Powerbuilder.RegisteredObject.TriggerEvent comes from c# code and not through powerscript. Is it still possible to call the PowerBuilder.Register() method and PowerBuilder.RegiseteredObject() without the .NET dll importer?
I am not sure if I'm making much sense.
Thanks in advance.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.