1. Adnan Ahmed
  2. SnapObjects
  3. Monday, 8 July 2024 09:28 AM UTC

Hi,

 
I have written this condition for Model [DwFilter("UPPER(lastname) = 'ASHLEY'")] but it doesn't return the specified criteria data.
 
Secondly, I am facing an issue with the DwCompute() attribute which always returns a NULL value. Please help me out to get the computed value from that property instead of NULL value. 
 
For now I am doing this task manually for every property in the whole project by writing C# code as shown in the property below the red line.
 
image.png
I need the value from [DwCompute(" person_lastname +\" \" + person_firstname ")] attribute by returning proper value.
 
Highly waiting for your reply.
 
Larry Peters Accepted Answer Pending Moderation
  1. Wednesday, 10 July 2024 07:47 AM UTC
  2. SnapObjects
  3. # 1

Hi Adrian,  My two bit suggestion re dw_filter. Try:  DwFilter("TRIM(UPPER(lastname)) = 'ASHLEY'") 

 

Comment
There are no comments made yet.
Logan Liu @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 10 July 2024 02:49 AM UTC
  2. SnapObjects
  3. # 2

Hi Adnan,

For the DwFilter attribute, the filter expression should work when calling DataStore<T>.Retrieve method. Alternatively, you can call IDataStore.Filter<TModel>(Func<TModel, bool> predicate) Method (appeon.com).

For the DwCompute question, there is this limitation due to performance consideration. Please refer to a similar topic here: ASP .NET Core Web API project: problem with datawindow computed fields (appeon.com)

Regards, Logan

Comment
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.