"generate a report by loop"

currantcurrant MemberPosts:14Contributor II
edited May 2019 inHelp
Dear All,

I want to use the loop operators of RM to generate a report:
In a survey we had a lot of questions. For each question I want tocreate a bars-plot for each question on single page within a pdf-file.
So the loop should be based on the attribute "question", right? If so, is the operator "Loop attributes" the correct one? I tried this operator, but it does not work ...

Thanks in advance!

BW
currant

Answers

  • colocolo MemberPosts:236Maven
    Hi currant,

    if you have each question as an example in your example set, you should use "Loop Examples". Otherwise you might have to give a little info about the structure of your data, if you need further suggestions.

    Regards
    Matthias
  • currantcurrant MemberPosts:14Contributor II
    Dear Matthias, dear all

    here is my table:
    question YearTxt Mean
    07 2006 3,4
    07 2011 3、9
    08 2006 2,4
    08 2011 1,5
    09 2006 4,0
    09 2011 2,2
    so, the loop should generate a bar plot for the question 07 on one side of the pdf-file, then on thenext sideof the pdf-file the bar plot forquestion 08and so on.
    可能很容易设计循环process, but ...

    Thanks a lot
    currant
  • currantcurrant MemberPosts:14Contributor II
    Hi All,

    ... after hours of searching and testing, I found out how to introduce the loop...

    I use now theLoop Values-operator (select the attribute "question"; set the iteration macro = loop_value);
    inside the loop value-operator I use the "Filter example"-operator withcondition class = attribute_value_filterandparameter string = "question = %{loop_value}"

    I hope some other people can use this process-info.

    currant
  • wahoo_pawahoo_pa MemberPosts:3Contributor I
    Currant,

    Thank you so much, this post was a huge help, I'd be struggling with the same problem for a while now.
Sign InorRegisterto comment.