1. Tony Fahlberg
  2. SnapDevelop
  3. Thursday, 23 January 2020 07:27 AM UTC

Hi - I was converting some DataWindows to a C# modal that has some Computed Fields that use a custom global function written in PowerBuilder.  How can I add a C# static function written to do the same when evaluating expressions (DWCompute) on these modals.  

When looking for information I found the following but this may not apply to DWNet.Data.

PbExpressionFactory.Current.AddGlobalFunc<TClass>();

thanks,

Tony

 

Logan Liu @Appeon Accepted Answer Pending Moderation
  1. Saturday, 25 January 2020 09:37 AM UTC
  2. SnapDevelop
  3. # 1

Hi Tony,

There is still a bug in this Beta release  and it need to be fixed, the custom function only works in IDataStore.Evalute (), but fails for DwCompute attribute. I have reported it.

You can try DwFunctionManager.AddGlobalFunction<TClass>(), or add "services.AddExpressionFunc<TClass>()" in StartUp.cs - ConfigureServices to inject a class, which contains custom PB functions (static methods).

Regards,

Logan

Comment
  1. Tony Fahlberg
  2. Wednesday, 29 January 2020 04:56 AM UTC
Hi Logan,

Thanks for the information. Is there a bug number for me to track the issue so that I can identify that it has been resolved? Do you happen to know when the libraries with this fix will be made available?



Thanks again for the information,

Tony
  1. Helpful
  1. Logan Liu @Appeon
  2. Thursday, 30 January 2020 06:59 AM UTC
Hi Tony,

Sorry, I reported this bug by another inner bug system, so there is no bug number for you to track it.

Please report this bug via our support ticketing system to ensure it is being properly tracked at https://www.appeon.com/standardsupport/

Then I can reply to the ticket once I get some updates.

Regards,

Logan
  1. Helpful
  1. Tony Fahlberg
  2. Wednesday, 5 February 2020 23:38 PM UTC
Created the following bug. - thanks,

Bug 4036 - DwCompute attribute fails when using custom function
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.