Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8033839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:49:37+00:00 2026-06-05T01:49:37+00:00

I am populating a DataWindow with some data. Some of the column names are

  • 0

I am populating a DataWindow with some data. Some of the column names are “Request No”, “Status”, etc.

“Status” column can contain values like “Pending”, “Active”,”Expired”.

Whenever the DataWindow is populated I want to count the number of records in PowerBuilder which are having status as “Active”.

After getting the count of the records I will be populating the count in some static text.

Can anybody help me , how to achieve this, as I am new to PowerBuilder.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T01:49:39+00:00Added an answer on June 5, 2026 at 1:49 am

    This will get you your answer, but it introduces you to what we PowerBuilder developers know as “Tilde Hell”.

    ll_Count = Long (dw.Describe ("Evaluate('sum (if((status = ~~~"Active~~~"),1,0))',1)"))
    

    The tilde-craziness has to do with what each level of string evaluation boils the expression down to for the next evaluation. (~~ boils down to ~, and ~” boils down to ” which is useful if your string is enclosed in double quotes)

    Evaluate(<expression>, <row>) inside a Describe() will return the value for <expression> on a given row. (Since <row> is irrelevant to a sum() operation which works across the full data set, all you need to do is make sure it’s a valid row, i.e. in this example, that there is at least one row.)

    Good luck,

    Terry.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

im populating the data in the combo box using dataset tables...with some table name..now
As my gridview is populating I want to add an extra column with some
I am dynamically populating my page like this: <script type=text/html id=ContainerTemplate> <span data-bind=template: {
OK so I'm populating a selectbox with a JSON which looks something like this:
I'm populating a CheckBoxList from database table. As per requirement, all the values should
I am populating the list view with data I am getting from a JSON
When populating a textarea with special characters from a jQuery GET request, the special
I am populating Employee Data in JTable using Netbeans. I want to add Radiobutton
I'm dynamically populating a select box with option values based on search results returned
I am populating an array with data to be sent on the I2C, my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.