Leave feedback
  • Question

    Repeating block by given value in StoryTeller

Enter a new topic
  • Grzegorz Ciepiela Grzegorz Ciepiela
    0 likes 314 views

    hello, 

    i working on following structure in StoryTeller.

    <xml>

    <block>

    <data>Item1</data>

    <NumberofCopies>2</<NumberofCopies>

    </block>

    <block>

    <data>Item2</data>

    <NumberofCopies>3</<NumberofCopies>

    </block>

    </xml>

     

    Each block is one page printout ( label).

    How to based on NumberofCopies repeats block by given value.   ??

    So normally using that xml i should get 5 pages on output. 

    Greg

     

     

     

     

    Thursday 13 April, 2017
  • Best Answer
    Mukund Sawant Mukund Sawant
    2 likes

    Hello Greg ,

     

    PFA project , it may fit to your requirement ,,,developed in 5.6.2

     

    Regards,

    Mukund

    Saturday 15 April, 2017

    Attached files

  • Sreenivas Reddy Sreenivas Reddy
    1 likes

    hi,

    you can configure a FREE_BLOCK in the process view of the XMLOUT page. 

    -> block

    ->data

    @item

    ->NumberofCopies

    @value

    the preview on the right-hand side will automatically align with tags according to the free block structure.

    2. create a BLOCK_CONTAINER in the document node of the MESSAGE in process view which will basically loop through the repeating data/block of data from the RDI.

    after reading the Data and Numberofcopies from the block, configure the after script of the BLOCK_CONTAINER to call the FREE BLOCK using the CALLBLOCK("<blockname>") method.

    This process repeats as long as there are different blocks of data coming from the RDI.

    hope this gives you some clue.

    cheers,

    Sreenivas

    Thursday 20 April, 2017
  • Grzegorz Ciepiela Grzegorz Ciepiela
    0 likes

    thanks for help

    Friday 28 April, 2017

 

Latest from the blogs

Read more