Can't get Pop Fields after Select to work - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Can't get Pop Fields after Select to work

Last post 09-28-2005 08:18 AM by Agni Jonnalagadda. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 08-16-2004 10:23 AM

    Can't get Pop Fields after Select to work

    I downloaded the example of populating fields after selection to see how that technique worked.

    After a bit, I discovered that you set rules for the dropdown box:

    Set a fields value

    Field Name

    SQLField[@ContactName=@Name]

    OK, looks simple enough for even me to do!

    But it doesn't work for me...

    So I went back to you sample form, and deleted a rule and tried to recreate it.

    The old rule: @CustomerID[@ContactName=@Name]

    The new rule: @CustomerID[@ContactName=@Name]

    Should be the same, but the old one works and the new one doesn't. I looked at the XPath, and it's different:

    Old Rule:

    xdXDocument:GetDOM("Customers")/dfs:myFields/dfs:dataFields/d:Customers/@CustomerID[../@ContactName = xdXDocument:get-DOM()/my:myFields/my:Customer/@my:Name]

    New Rule:

    xdXDocument:GetDOM("Customers")/dfs:myFields/dfs:dataFields/d:Customers/@CustomerID[xdXDocument:GetDOM("Customers")/dfs:myFields/dfs:dataFields/d:Customers/@ContactName = @Name]

    Do you have to write the write the XPath by hand? I used the insert field selector create the formula.

    Any help would be appreciated!
  • 08-18-2004 02:29 PM In reply to

    Re: Can't get Pop Fields after Select to work

    The XPath you are missing is coming from the Filter. When you are selecting your field, there is a button at the bottom of the dialog box, named Filter. You select the field, click filter, and that's where the other XPath comes in.

    Greg Collins [InfoPath MVP]
  • 08-20-2004 05:37 AM In reply to

    Re: Can't get Pop Fields after Select to work

    That worked perfectly - thanks.

  • 09-26-2005 02:17 AM In reply to

    Re: Can't get Pop Fields after Select to work

    Hi,
    Can you tell me where i can get the example that you downloaded, I am having problems in this area and would be nice to have a working example to learn from.
    Thanks
  • 09-28-2005 08:18 AM In reply to

    Re: Can't get Pop Fields after Select to work

    He might have downloaded fromhttp://www.infopathdev.com/downloads/free/default.aspx

    Agni
    InfoPath Dev India
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.