Skip to main content

Dynamic charts based on related data

Comments

2 comments

  • Zack Robison
    I'm not sure that I follow you, apologies.  Are you asking for a way to make a chart in a report (rpx) or in the viewer?  And is your central issue that you can't append a where clause to your query?  I would wonder why you can't append the where clause, are you getting some error?
    0
  • Permanently deleted user
    Dear Zack,

     

    Thank you for your interest,

     

     

     

    What I am looking for is drawing the chart for layer data based on the data extracted from related table, the following example better elaborates my case:

     

    I have wells layer with unique IDs stored in Well_ID field, In addition to this layer, I have a table for wells PH readings, in which many PH readings are stored for each well and the well in this table is also identified by Well_ID field

     

    I want to design a report (rpx) that will be installed on wells layer, such that when it is run on a specific well (e.g. with ID W101) it queries the data from the readings table for W101 well, and based on this data the chart is drawn as shown in the screenshots below

     

    User-added image

     

    User-added image

     

    When the report is run for W102 well, the report should query the data for W102 from the readings table and draw the PH chart based on it as in the following screenshots, and the same can be done for any well that report is run for

     

    User-added image 

     

    User-added image

     

    My question is how to define such query in datasource section, that queries data from readings table based on the selected Well ID in the layer

     

     

     

    Kind Regards,

     

    Hani
    0

Please sign in to leave a comment.