Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsSimple query suddenly not working! Please Help!Simple query suddenly not working! Please Help!
Previous
 
Next
New Post
4/26/2008 3:03 PM
 

Hi,

    On the home page of my website i have a simple report running against a UDT using the filter. It takes the users from a table of sales figures and returns any that have a total of over 17000.00. It was working absolutely fine I have not changed it and suddenly im getting the following error and i dont know why.


A critical error has occurred.
Cannot perform '>=' operation on System.String and System.Decimal.


My filter statement is simply

Total >= 17000.00

 

 

Any help would be sooo appreciated, im nearing my deadline and this has come out of nowhere!

Thanks Sam

 
New Post
4/28/2008 1:30 PM
 

First off, I apologise for the delay in responding. I hope your deadline hasn't passed (or that you have fixed your problem).

If the UDT column you are using has a data type of "Decimal", you may need to convert the value in your filter using the Convert function (I'll post a link below to the formatting details for this field). If the UDT column has a data type of "Text", you'll need to convert the field to Decimal (since a Text comparison would not have the effect you want), again this is done using the Convert function.

The format of this string is the same as the one expected by the Expression property of the System.Data.DataColumn class. More details on the format can be found here: http://msdn2.microsoft.com/en-us/library/system.data.datacolumn.expression.aspx


Andrew Nurse
DotNetNuke Core Team Member and Reports Module Project Lead
Microsoft Certified Professional Developer

 
New Post
4/29/2008 6:47 AM
 

Thanks for the reply

I am still struggling though. The cloumn I am calling is a calculated column. What data type does this come under. I have tried using the convert function but have had no success as of yet.

Thanks

 
New Post
4/29/2008 3:46 PM
 

I'm afraid I don't know. I'm not really an expert with the UDT module, I just know enough to interface with it for the UDT Data Source. You should try asking this question in the UDT forums.

Hope that helps!


Andrew Nurse
DotNetNuke Core Team Member and Reports Module Project Lead
Microsoft Certified Professional Developer

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsSimple query suddenly not working! Please Help!Simple query suddenly not working! Please Help!


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out