close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

create web charts count

Thread began 2/22/2010 2:37 pm by mr hankey | Last modified 2/23/2010 7:15 pm by Dani Chankhour | 1466 views | 3 replies |

mr hankey

create web charts count

hi,

i have a product table which has the company name of the product provider in it.

i want to display a bar graph to show how many products the user who has logged in has sold?

my table structure is:

ProdID
ProdName
Amount
DatePaid
Clients_clientid = foreign key to clients tbl which has a foreign key to users table.

can someone help?

many thanks

Sign in to reply to this post

Dani Chankhour

The first step would be to filter based on the the Clients_clientid, and depending on how you are going to filter (either by a url string or a session), in Dynamic Web Charts on the Data tab, there is a filtering and sorting options where you can select the column to filter. In your case that would be your Clients_clientid column. And then under the X Label there is a Group By option which you need to add, and then under the Y Value there is a calculation drop down list and from that you select the Count function. That should give you how many products a user have sold.

Sign in to reply to this post

mr hankey

thanks dani, how can i have it so it shows the client name from the clients table rather than the fk client_clientid on the page?

many thanks

Sign in to reply to this post

Dani Chankhour

I'm not sure there is a way you could do this through the Wizard. But you should be able to accomplish this by modifying the query manually.

In the DynamicWebChart folder, there is a data folder and inside that folder there should be a file named as follow: <your page name>_data1.php. When you open the file you should see a record set that is used to populate the chart and you should be able to modify it to get the result that you want. However, this is going to require some custom coding using Join to get the client name. If you post back with how the query i will try to help you in getting the query to return the client name.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...