Hoppa till huvudinnehållet

date format on a chart report and dynamic data source

Kommentarer

3 kommentarer

  • John Nerge

    Jie,

    In response to your first question, you have to set up a parameter on the data link to use the LocationID value from the GIS layer. To do this, go to the Data Links tab of the layer and click on the advanced button (looks like a gear) on the data link in question. On the next screen, click Add Parameter and specify which Feature Field is the LocationID and then give it a Name.

    After setting up the parameter, change you selection query to read: Select * from Test_Benzene where [LocationID]={ParameterName}

    where ParameterName is the name you specified for the LocationID parameter (keep the squiggly brackets as these tell GE to get the value from the layer). This will pass the value of the selected feature to the query, which can in turn be used in your report by setting up a subreport that points to this data link.

    0
  • Chris Roberts

    Hi Guys

     

    I'm probably pushing my luck considering that this post is over a year old....but....

    I tried to implement Johns suggestion, with the query SELECT * FROM WILMA_DataMart.Land.TV_WILMA_USAGE WHERE DOCNO = {DOCNO} in the chart control in Report Designer but I get the error below

    /customer/servlet/servlet.FileDownload?file=00P6000000elzJOEAY

    If i take the WHERE Clause out the chart draws up OK, but then it wont be able to pass the DOCNO parameter in.

     

    Would appreciate any thoughts you might have.

    Cheers

    Chris

    0
  • John Nerge

    Are you writing the query for a data link or in the report? If I'm reading my old post correctly, it was for setting up the query in a data link and using it as a sub-report in the main report. It should also be  where [LocationID]= @ParameterName

    The sub-report just returns the value based on the way the data link query is written.

    0

Du måste logga in om du vill lämna en kommentar.