Comment Block Example does not insert rows on button click correctly - InfoPath Dev
in

InfoPath Dev

Comment Block Example does not insert rows on button click correctly

Last post 10-07-2013 08:18 AM by Doreen. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 10-04-2013 02:08 PM

    • Doreen
    • Top 50 Contributor
      Female
    • Joined on 08-11-2010
    • Federal Way, WA
    • Posts 291

    Comment Block Example does not insert rows on button click correctly

    Hilary (May this year) helped me develop a history tracking section of a form with her example mentioned in subject line.  I would like to re-use this feature in other forms.  I have created a template part to apply this technique in one section (vs. multiple sections) but it is not behaving exactly as before. 

    On my attached example, the expected behavior is: Notes field to copy a new row into the Copy of Notes field every time the Copy Comments button is clicked whether  the Optional section Insert link is clicked or not. 

    The problem: The copied values are not displaying in 2nd repeating table until the repeating table Insert link is clicked* which means the Optional Section Insert link must be clicked first and if it isn't, nothing displays.  

    It appears as if the Insert link of 2nd repeating table is copying/inserting rather than the button click and its odd that the 2nd repeating table must have the Insert link displayed while in former example this was not the case for it to copy. It was all automatic (or on button click) before.  I think the problem may be with the SubmitFlag and/or ActiveRow field rules.

    Can someone look at this an tell me what is wrong?  I have not created a Template Part before....

     It's an InfoPath 2007 form.

    Edit:  The purpose of this functionality is to track changes (like Word does).  A user may open a form many times to make changes to the textbox field Notes.  Each time they re-submit the form to SharePoint, the changes are copied and inserted into the 2nd repeating table, thus a list of all former changes are retained.  The user may view the history (list of changes) by clicking the Insert (or View History of changes) link in the Optional Section. 

    Filed under:
  • 10-07-2013 06:14 AM In reply to

    Re: Comment Block Example does not insert rows on button click correctly

    Hi Doreen,

    The Form template (XTP) you attached is not downloading for some reason, but have you had a chance to look at our history XTPs? If one of these works for your purpose, then it might save you the trouble of designing a new XTP.

    If using DBXL, use this one:

    http://www.infopathdev.com/files/folders/other_subjects/entry90835.aspx

    If there's no DBXL involved, try these:

    http://www.infopathdev.com/files/folders/templateparts/entry60775.aspx

    http://www.infopathdev.com/files/folders/templateparts/entry60774.aspx

    Hopefully these help save you some time.

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


  • 10-07-2013 08:18 AM In reply to

    • Doreen
    • Top 50 Contributor
      Female
    • Joined on 08-11-2010
    • Federal Way, WA
    • Posts 291

    Re: Comment Block Example does not insert rows on button click correctly

    The template you linked are what Patrick pointed me to a few months ago and they didn't work for me (they wouldn't open--I need 2007 and today the 2007 still wouldn't open for me).  This is why Hilary ended up writing the Comment block sample for me which we modifed to behave as I described yet I cannot get our modified version to replicate its behavior in a template part - and that is what I need help with.

    I can email the form where it works like I want it to if that will help you understand what I am looking to achieve.  The form uses DBXL however the functionality I'm using only uses qRules.  In my proposed new template part I only want this to work in one section whereas the form we created does this in multiple sections.

     Let me know if I should email the form.  I don't want to upload it to a public forum.

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