How to hardcode values in repeating table - InfoPath Dev
in

InfoPath Dev

How to hardcode values in repeating table

Last post 10-20-2008 10:07 PM by Shiva. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-20-2008 07:22 PM

    • Harij
    • Not Ranked
      Male
    • Joined on 10-21-2008
    • Posts 5

    How to hardcode values in repeating table

    Hi Guys,

    I need to hardcode values in repeating table.

    For example: I have 4 values namely - Category A, Category B, Category C and Category D.

    I need this to be hardcoded in Repeating table as dropdown menu.

    Can we achieve this using VB script.

     Below is example using ARRAY but I want to use repeating table instead.

    For index = 1 to 3

    XDocument.DOM.selectSingleNode("/tns:EAIOutboundCorrespondence/tns:Context/tns:PassThroughData/tns:OPM/tns:gr_String").insertBefore XDocument.DOM.selectSingleNode("/tns:EAIOutboundCorrespondence/tns:Context/tns:PassThroughData/tns:OPM/tns:gr_String/tns:str_GenArray_01").cloneNode(true), XDocument.DOM.selectSingleNode("/tns:EAIOutboundCorrespondence/tns:Context/tns:PassThroughData/tns:OPM/tns:gr_String/tns:str_GenArray_01")

    Next

    XDocument.DOM.SelectNodes("/tns:EAIOutboundCorrespondence/tns:Context/tns:PassThroughData/tns:OPM/tns:gr_String/tns:str_GenArray_01")(0).text = "AMP Bank Limited"

    XDocument.DOM.SelectNodes("/tns:EAIOutboundCorrespondence/tns:Context/tns:PassThroughData/tns:OPM/tns:gr_String/tns:str_GenArray_01")(1).text = "Arab Bank Australia Limited"

    XDocument.DOM.SelectNodes("/tns:EAIOutboundCorrespondence/tns:Context/tns:PassThroughData/tns:OPM/tns:gr_String/tns:str_GenArray_01")(2).text = "Australia and New Zealand Banking Group Limited"

    Thanks

    Hari

  • 10-20-2008 10:07 PM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: How to hardcode values in repeating table

    Hello,

    Before inserting the new node you have to set your default value to that node.

    If you want by default four nodes with hardcode values then you have to add same node four times with different values in template.xml.

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