Trouble autopopulating read only textbox on incrementing expression box value in repeating table - InfoPath Dev
in

InfoPath Dev

Trouble autopopulating read only textbox on incrementing expression box value in repeating table

Last post 03-12-2015 04:04 PM by jack eagly. 86 replies.
Page 3 of 6 (87 items) < Previous 1 2 3 4 5 Next > ... Last »
Sort Posts: Previous Next
  • 03-03-2015 02:14 PM In reply to

    Re: Trouble autopopulating read only textbox on incrementing expression box value in repeating table

    I'm not sure - I don't quite understand, I'm afraid - can you attach a screenshot of what you are wanting?

    Hilary Stoupa

  • 03-03-2015 08:11 PM In reply to

    Re: Trouble autopopulating read only textbox on incrementing expression box value in repeating table

    Sure, We set default values for 1 - 8 in this repeating table. Now I need to set default values for when I get down to row 8 when I insert the next set of sub-paragraphs with out setting the defaults for sub-paragraphs 1 - 7. Thanks!
  • 03-03-2015 08:13 PM In reply to

    Re: Trouble autopopulating read only textbox on incrementing expression box value in repeating table

    Here's the form.
  • 03-04-2015 12:08 PM In reply to

    Re: Trouble autopopulating read only textbox on incrementing expression box value in repeating table

    To clarify, I'm trying to set default values for 8. a., 8. b., 8.c. but not for any of the other values for  sub paragraphs 1 - 7.

    Thanks.

  • 03-04-2015 03:40 PM In reply to

    Re: Trouble autopopulating read only textbox on incrementing expression box value in repeating table

    Ok. So, here is a sample with rules on group 4 and group 6. The first group 6 gets inserted with group 4, which is why the rules are split out.

    Hilary Stoupa

  • 03-04-2015 07:14 PM In reply to

    Re: Trouble autopopulating read only textbox on incrementing expression box value in repeating table

    I can't see any rules for group 4 or 6. Am I looking in the wrong place?
  • 03-05-2015 07:45 AM In reply to

    Re: Trouble autopopulating read only textbox on incrementing expression box value in repeating table

    I probably uploaded the wrong file - sorry about that. :)

    Hilary Stoupa

  • 03-05-2015 01:13 PM In reply to

    Re: Trouble autopopulating read only textbox on incrementing expression box value in repeating table

    Wow, this is going to help me a lot. I'm having a little trouble following it but I'll keep trying. Do you recommend an xml file if I have 12 or more entries, or should I just enter the xPath you provided 12 or so times? I've attached another form with new xml file, I'm trying to achieve the same results as you showed me in the previous attachment but I'm stuck on the second row xPath. Bonus, how do I include an apostrophe in my xml file. Thanks so much!
  • 03-05-2015 01:19 PM In reply to

    Re: Trouble autopopulating read only textbox on incrementing expression box value in repeating table

    My expression box on insert the second repeating table is telling me it doesn't point to a valid field or group... here's my xPath. GetDOM("test")/execution/subpara/subunit[count(current()/preceding-sibling::my:group6) + 1]/Code
  • 03-06-2015 07:16 AM In reply to

    Re: Trouble autopopulating read only textbox on incrementing expression box value in repeating table

    http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Predefined_entities_in_XML - apostrophe is &apos;

    Your XPath is missing xdXDocument: before GetDOM. What node were you trying to use that expression in a rule on? Group4? Group 4 doesn't repeat, so we wouldn't use preceding-sibling here.

    Hilary Stoupa

  • 03-06-2015 12:08 PM In reply to

    Re: Trouble autopopulating read only textbox on incrementing expression box value in repeating table

    I was trying to use this particular xpath in the expression box in group 6 and in field 3 group 6 of the attachment in the previous post. Thanks!
  • 03-06-2015 12:12 PM In reply to

    Re: Trouble autopopulating read only textbox on incrementing expression box value in repeating table

    I changed the group 4 to group 6 but it still doesn't work.
  • 03-06-2015 12:18 PM In reply to

    Re: Trouble autopopulating read only textbox on incrementing expression box value in repeating table

    I think since you only want to set field3 in certain cases (this is 8.a, 8.b, etc) you will have to use a rule rather than a default value. Also, subunit code is not capitalized.

    xdXDocument:GetDOM("test")/execution/subpara/subunit[count(current()/preceding-sibling::my:group6) + 1]/code

    Hilary Stoupa

  • 03-06-2015 12:56 PM In reply to

    Re: Trouble autopopulating read only textbox on incrementing expression box value in repeating table

    Hmm. I capitalized code but still get the error. As far as using rules, do you think I can still use xml with the rules to populate 8a, 8.b, or is this strictly for rules? Thanks for the help! GetDOM("test")/execution/subpara/subunit[count(current()/preceding-sibling::my:group6) + 1]/Code
  • 03-06-2015 01:00 PM In reply to

    Re: Trouble autopopulating read only textbox on incrementing expression box value in repeating table

    Did you try what I pasted on the rule on group6 that set's field3's value?

    xdXDocument:GetDOM("test")/execution/subpara/subunit[count(current()/preceding-sibling::my:group6) + 1]/code

    Code is not capitalized in your test data source when under subunit. That is why I said it is not capitalized. XPath is case sensitive.

    You can set field3 to a value from an XML file.

    Hilary Stoupa

Page 3 of 6 (87 items) < Previous 1 2 3 4 5 Next > ... Last »
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.