On "Insert Item" in a repeating table/section, I need to assign a value to a field - InfoPath Dev
in

InfoPath Dev

On "Insert Item" in a repeating table/section, I need to assign a value to a field

Last post 12-24-2008 10:12 AM by shivajidatta. 8 replies.
Page 1 of 1 (9 items)
Sort Posts: Previous Next
  • 12-17-2008 09:14 AM

    On "Insert Item" in a repeating table/section, I need to assign a value to a field

    Q1.  How can I assign a value to a field (e.g. a text field) when I click on "Insert Item" in a repeating table/section to insert a new record?  Any pointers?

     Q2. Also, when I click on "Insert Item" in a repeating table/section, can I automatically create a new row in a different section along with the one I clicked on?

     Thanks guys!

  • 12-17-2008 09:32 AM In reply to

    Re: On "Insert Item" in a repeating table/section, I need to assign a value to a field

    Hello.

    For Q1, I wonder if the attached InfoPath form satisfies your design requirement.

     Please take a look at my rule and let me know.

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 12-17-2008 09:36 AM In reply to

    Re: On "Insert Item" in a repeating table/section, I need to assign a value to a field

    Hi Ernesto (   first to reply as usual :)   )

    Can you send me the template in IP 2003 format?

    ErnestoM:

    Hello.

    For Q1, I wonder if the attached InfoPath form satisfies your design requirement.

     Please take a look at my rule and let me know.

    Thanks!
  • 12-17-2008 10:01 AM In reply to

    Re: On "Insert Item" in a repeating table/section, I need to assign a value to a field

    Attached. :)

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 12-17-2008 10:17 AM In reply to

    Re: On "Insert Item" in a repeating table/section, I need to assign a value to a field

    ErnestoM:

    Attached. :)

     

    Hi Ernesto!

    You're good man!!! :)

    Thanks for the direction.  I think I can work around this and try to come up with something close enough to the stuff my boss wants :)  Thanks a lot!!! 

    Do you think you can play around a little with the other question I had?  If it is not possible, maybe you can get some idea how we can achieve that :)  I tried for some time but no go :(

     Thanks again!

  • 12-17-2008 02:16 PM In reply to

    Re: On "Insert Item" in a repeating table/section, I need to assign a value to a field

    I tried, but I've yet to figure out how to do Q2 without code. I'd reccommend qRules if you were using IP2007...

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 12-24-2008 02:25 AM In reply to

    • Skarn
    • Top 50 Contributor
      Male
    • Joined on 04-20-2008
    • Australia
    • Posts 198

    Re: On "Insert Item" in a repeating table/section, I need to assign a value to a field

    I can think of code way to do this - and also a long 'pre prepare' way.

    But a simple option may be possible - at moment you sound as if you have two seperate repeating sections, when you add one repeating section, you want to also add the other. Is this how it will always be? Perhaps you can merge both repeating sections into one. Then all your fields will be made after the one insert - and just because they are all in same repeating group, it doesn't mean you have to show them all in the same place!

    You can make your repeating section on your form in multiple places pointing to the same repeating group, and only show the fields in each section that you want.

    If this is not a solution then you will need to use the OnAfterChange even of the repeating group to tell it to create the other repeating group insert - I think of two immediate options, using ExecuteAction command if possible, or using XML node code to clone and append etc.

  • 12-24-2008 10:11 AM In reply to

    Re: On "Insert Item" in a repeating table/section, I need to assign a value to a field

    ErnestoM:

    I tried, but I've yet to figure out how to do Q2 without code. I'd reccommend qRules if you were using IP2007...

     Hi Ernesto,

     Thanks for the effort! Really appreciate it.  At this time looks like the managament is not to keen on upgrading to IP 2007.  I had to change my design a little bit to acheive what I needed for Q2.  Thanks again!

  • 12-24-2008 10:12 AM In reply to

    Re: On "Insert Item" in a repeating table/section, I need to assign a value to a field

    Skarn:

    I can think of code way to do this - and also a long 'pre prepare' way.

    But a simple option may be possible - at moment you sound as if you have two seperate repeating sections, when you add one repeating section, you want to also add the other. Is this how it will always be? Perhaps you can merge both repeating sections into one. Then all your fields will be made after the one insert - and just because they are all in same repeating group, it doesn't mean you have to show them all in the same place!

    You can make your repeating section on your form in multiple places pointing to the same repeating group, and only show the fields in each section that you want.

    If this is not a solution then you will need to use the OnAfterChange even of the repeating group to tell it to create the other repeating group insert - I think of two immediate options, using ExecuteAction command if possible, or using XML node code to clone and append etc.

     

    Hi Skarn,

    Thanks for the help.  In fact I modified the design and login a little bit in this directing itself.

    Thanks again!

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