Chart selection Criteria

Use this board to ask questions or have discussions with other Genie users.
Post Reply
FoxBill
Profound User
Posts: 38
Joined: Mon Jun 20, 2011 11:44 am
First Name: Bill
Last Name: Streit
Company Name: Fox Metro WRD
Contact:

Chart selection Criteria

Post by FoxBill »

I am trying to fill in a chart with multiple records per each account. I want the chart to only display the records for the selected account. I am trying to use the selection criteria properties on the chart. I wonder if my syntax is not correct. I am trying to link to account by getting a value from the screen. I tried variations of the following logic:



TSACCT = (getElementValue('I_2_15'))
User avatar
Emily
Profound Logic Staff Member
Posts: 89
Joined: Tue Jun 21, 2016 8:30 am
First Name: Emily
Last Name: Seage
Company Name: Profound Logic
Contact:

Re: Chart selection Criteria

Post by Emily »

Hi FoxBill,

You should be able to accomplish this by using the 'selection criteria' and 'parameter value' properties for your chart. There's more information on using these properties in our Charts documentation: http://www.profoundlogic.com/docs/displ ... sionCharts (under Database-Driven Chart).

The 'selection criteria' property acts as the WHERE clause of your SQL statement. If you wanted your chart to populate with only the records for a specific account and the account value is on your screen, you could do something like this:
example.png
example.png (3.68 KiB) Viewed 1576 times
This uses the get() API to get the value of the field with the I_2_15 id and will show the records where TSACCT equals the value of this field.

I hope that this helps!
Emily Seage
Support Team Lead
FoxBill
Profound User
Posts: 38
Joined: Mon Jun 20, 2011 11:44 am
First Name: Bill
Last Name: Streit
Company Name: Fox Metro WRD
Contact:

Re: Chart selection Criteria

Post by FoxBill »

Thanks Emily,
That is exactly what I was looking for that worked fine.

Bill
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest