new issue (for me): concat repeating section - InfoPath Dev
in

InfoPath Dev

new issue (for me): concat repeating section

Last post 11-18-2010 12:48 PM by milko. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 11-17-2010 01:46 PM

    • milko
    • Top 500 Contributor
    • Joined on 11-12-2010
    • Posts 28

    new issue (for me): concat repeating section

    first of all I apologize if i post a problem very similar to others who have already responded.

    this is my problem. i have some repeating section like this:
    page_numbers --> page_number --> value

    i want to create a view with an expression box that display all the page_number --> value. something like this:
    5,12,14,16,20,28

    my attempts with the eval and concat functions always give me an error.

    tvm for your help (thanks Hilary for the suggestion).

  • 11-17-2010 02:52 PM In reply to

    Re: new issue (for me): concat repeating section

    Can you attach your template? If you reply to this post and look under Options, you'll see where you can attach a file....
    Hilary Stoupa

  • 11-18-2010 02:27 AM In reply to

    • milko
    • Top 500 Contributor
    • Joined on 11-12-2010
    • Posts 28

    Re: new issue (for me): concat repeating section

    Hello Hilary and thank you for reply.
    i've attached my form.

    you can create a new view or you can use "vista_rapportino"; in my intention this view is a read-only view.
    I look forward to your response :-)

     

  • 11-18-2010 07:48 AM In reply to

    Re: new issue (for me): concat repeating section

    There was a data connection to a local XML file that was preventing me from saving the template after I made changes -- I hope you don't mind, but I had to remove it. Before you publish your template for others to use, be sure any XML files are stored with the template as resource files.

    Let me know if these changes were what you were needing -- I did add the num field to the form for testing.

    Hilary Stoupa

  • 11-18-2010 11:27 AM In reply to

    • milko
    • Top 500 Contributor
    • Joined on 11-12-2010
    • Posts 28

    Re: new issue (for me): concat repeating section

    i want to thank you for your reply.
    the result is what i need but in the wrong field.

    the "totale_pagine" field must display the value present in the xml file (just one number).

    i need an expression box that display the concatenation of the "num" field.
    unfortunately if i put the formula valutazione(valutazione(numero_pagina; 'concat(num, ";")'); "..") inside the expresion box i get an error:
    "../numeri_pagina/numero_pagina" non fa riferimento a un percorso di posizione valido di un campo o gruppo.

    if i append another expression box and insert the formula above, i get a different error (see attached image)

    thanks Hilary for the help you're giving me.

     


  • 11-18-2010 12:04 PM In reply to

    Re: new issue (for me): concat repeating section

    The numero_pagina group needs to be selected using Insert field or group. Where does your expression box need to be on your form? That will change the XPath to the group. Here's another sample with an expression box, but since I'm not sure if the box is correctly located, the XPath may still not be correct.
    Hilary Stoupa

  • 11-18-2010 12:48 PM In reply to

    • milko
    • Top 500 Contributor
    • Joined on 11-12-2010
    • Posts 28

    Re: new issue (for me): concat repeating section

    the expression box should be inside the optional section, so the expression box disappear if there are no occurrence of the father (pagine_VR).

    I am envious of your skills
    :-)

    you think infopath will be used for a long time?
    in the next future i mean (5 - 10 years).

Page 1 of 1 (7 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.