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

  • SEARCH
  • Home
  • 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 6824853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:57:04+00:00 2026-05-26T21:57:04+00:00

Suppose I have a table with a colour field — red/white/blue — and every

  • 0

Suppose I have a table with a colour field — red/white/blue — and every time my app receives an event over TCP/IP and inserts a new row into the database, I want a data-aware pie chart component to auto-update showing the ratio of those colours. How can I do that?

I’ve seen examples of data-aware components, but they just show the value of each row of a table (I haven’t gotten too far yet). In fact, I am not even sure that adding another row in the database will add another row to the DB-aware grid (push, as opposed to pull).

  • 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-05-26T21:57:05+00:00Added an answer on May 26, 2026 at 9:57 pm

    I am not even sure that adding another row in the database will add another row to the DB aware grid (push, as opposed to pull).

    If the dataset is live, adding a row to the dataset will update the grid.

    Look, let’s just imagine that I have a table who’s primary key is a colour – red/white/blue – and every time my app receives an event over TCP/IP and inserts a new row into the database I want a data-aware pie chart component to auto-update showing the ratio of those colours.

    1. Add a Connection to your form, set it up so it connects to your database.
    2. Set the connection active property to true
    3. Add a Query to your form, set the connection to connection1
    4. Set the sql property to SELECT (count(*) / b.totalcount) as percentage, b.totalcount FROM table1 a CROSS JOIN (select count(*) as totalcount from table1) b GROUP BY a.color
    5. Set the active property to true
    6. Drop a datasource on the form, set its dataset to query1
    7. Drop a DBChart on the form, set its datasource to datasource1
    8. Fiddle with the DBChart to make it display a piechart.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have table A with a field that can be either 1 or
Suppose I have table tags which has a field count that indicates how many
Suppose I have table Person table Employee, which inherits Person. I want to get
Suppose I have a table like: create table { id numeric(5,3), code varchar(10) }
Suppose you have a table in SQL: Prices ------ 13.99 14.00 52.00 52.00 52.00
Suppose I have a table of users. Something like: ID integer, USER text, POSITION
Suppose you have a table like this: id user score It's a dump of
Suppose I have a table MEETING as follows M_DATE M_RACE_NO M_VENUE M_ATHLETE The primary
I use JPA2 for the dao layer. Suppose i have a table as follows
Suppose we have the following table data: ID parent stage submitted 1 1 1

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.