1

Topic: I want to display sample:comment field in report grid.

I have a report that produces a downloadable report, I have alomost every field I need except the sample comment field.

My Preset parameter values list looks llike:

survey_id=3
taxon_group_id=1
smpattrs=3
occattrs=3
smpAttr=sample:comment

For the last I've reied various guesses as what it should be with no success.  I've also tried:

[
  {
    "fieldname":"sample:comment",
    "visible":true,
    "display":"Comment"
  }
]

for Columns Configuration, (various guesses again) all without success.

Mike Evans

2

Re: I want to display sample:comment field in report grid.

Hi Mike
Because that's a core field it can't be added dynamically to a report - you need to write a report file on the server that outputs this field. Which specific report are you using? You probably want to find the appropriate file in the reports folder on the warehouse, then duplicate it and edit the copy to add the required field.

You can find out about the report format at http://indicia-docs.readthedocs.org/en/ … ormat.html and this link includes a tutorial at the top.

Best wishes
John

John van Breda
Biodiverse IT

3

Re: I want to display sample:comment field in report grid.

Hi John

OK.  At least I now know what to do next.  I think the relevent file is reports/library/occurrences/occurrences_list.xml, I assume that it's just that file I need to edit to add the extra column and no other files need to be touched?

Regards

Mike

4

Re: I want to display sample:comment field in report grid.

Hi Mike,

You are correct: only the report file needs altering for it to return additional fields.
To add a new report you just have to put it in the reports folder (or sub-folder) and it is automatically picked up.

Jim Bacon.

5

Re: I want to display sample:comment field in report grid.

Thanks Jim, John.  On it.