1
0
-1

Hello,

I'm a newbie on Maestro and I'm stuck to do a specific thing.

For a pdf form (but I think my question can also help for regular form), I need to create dynamically the different component "Text Display" to display data on page load. I don't really know what method should I use to do it.

Can anybody help with this use case?

 

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      Please review the following link and advise if this resolves your query:

      Property Prefill Mapping for Text Display

       

      1. Kamel Bourahla

        Hello. Thank you for your reply. that is not working in a dynamic context.

        For example I have this piece of XML :

        <AvokaSmartForm>
        <taxeInformation>
        <CTRY>
        <item>Australia</item>
        <item>France</item>
        </CTRY>
        </taxeInformation>
        <AvokaSmartForm>
        
        
        
        

        I mapped the repeat component with CTRY and my dataField to item. Then I display content of dataField on a TextDisplay.

        But instead to create one element by country, it will display the array of data directly on one textDisplay.

        Have you any idea why?

        I also noticed that is working well if the XML structure is composite and not a list like :

        <AvokaSmartForm>
        <taxeInformation>
        	<ID>id1</ID>
        	<CTRY>Australia</CTRY>
        </taxeInformation>
        <taxeInformation>
        	<ID>id2</ID>
        	<CTRY>France</CTRY>
        </taxeInformation>
        <AvokaSmartForm>

        In that case the component is created correctly and dynamically according data.

        So it's seems linked to XML structure

         

      2. Ben Warner

        Yes, that makes sense as the CTRY is not the repeat in the first XML - the item is. It looks for a value named item in the CTRY element and finds 2 so presents them as an array.

      CommentAdd your comment...
    2.  
      1
      0
      -1

      So the solution in my case was to keep a composite list.

        CommentAdd your comment...