I have created class library which have one interface and one class. It have two methods one return string other number which is received in input. I have tested it its working fine on .NET but when i publish them and import as library in demo app, then after using method as server action the hardcoded output of getName() method is also getting blank
What you’re seeing is a known “optimization” behavior when calling server logic (server actions / extensions) from a Client Action in Reactive / ODC applications.
OutSystems only evaluates the result of a server call if at least one of its outputs is effectively used in something that affects the UI or further logic. If the output of your getName() method (or the server action that wraps it) isn’t used in a way that OutSystems considers “needed”, the platform skips returning it, and you’ll see it as blank in the client action debugger, even though the method executed correctly on the server. This is the same behavior described in the articles you provided for both static entity defaults and extension calls. Data Loss from server action to callback function
getName()
How you call the library method
Whether the output is actually used
Testing that the output is really there
Feedback_Message
YourServerActionName.Out_Name
YourLocalVariable
If after binding the result to the UI or using it in a feedback message you still get an empty value, describe how your client action is structured (where you assign / use the result), and I can suggest a more precise fix.
Hi @shreyans wadyalkar
Is there any interface present in your .NET code?
Thanks,
Sudip
@shreyans wadyalkar please refrein from double posting the same question.
I will close this post, the discussion can continue at https://www.outsystems.com/forums/discussion/106375/external-library-integration-in-odc/