• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1438
  • Last Modified:

Datatable.Compute using Filter for Boolean Field.

Hi,

What's wrong with my code?

dtTable.Compute("SUM(PayAmount)", "Selected = TRUE")

Thank you.
0
emi_sastra
Asked:
emi_sastra
  • 2
1 Solution
 
BTosonCommented:
Try the following:
dtTable.Compute("SUM(PayAmount)", "Selected = 1")
0
 
Juan_BarreraCommented:
Hi,

What's the error you get?

Anyway, there is nothing obviously wrong. except that I would try:
 
dtTable.Compute("SUM(PayAmount)", "Selected = 1")

but, without more information, it's just a guess.
0
 
Juan_BarreraCommented:
Sorry BToson, just typing at the same time :)
0
 
emi_sastraAuthor Commented:
Hi BToson,

Thank you very much for your help.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now