<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Drop Down List display name</title><link>https://www.infopathdev.com:443/forums/thread/11842.aspx</link><pubDate>Wed, 19 Jul 2006 17:48:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11842</guid><dc:creator>pengbo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11842.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=11842</wfw:commentRss><description>I went and did a search for xdXDocument:get-DOM to see if there were any other examples knocking about and it turns out that it works if you make the filter part&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;../@CCenID = xdXDocument:get-DOM()/my:purchaseOrder/my:items/my:item/my:aCostCentre&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;like this:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;../@CCenID = current()/../my:aCostCentre&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;... I think. Going from memory and the code is in work.&lt;br /&gt;&lt;br /&gt;Thanks for having a look anyway Matt.&lt;br /&gt;&lt;br /&gt;On a bit of a downer with this ATM as I need the username I think and the only way seems to be with certificates and managed code :(  Really don't want to fight with Visual Studio if I don't have to and the certificates part just plane scares me :(</description></item><item><title>Re: Drop Down List display name</title><link>https://www.infopathdev.com:443/forums/thread/11841.aspx</link><pubDate>Tue, 18 Jul 2006 16:56:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11841</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11841.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=11841</wfw:commentRss><description>Hm, that looks right, but current() can get tricky sometimes. What I like to do to debug is to put the formula local-name(current()) into the node that you are trying to use this formula with and then you will know exactly what node you are dealing with and how you should reference your aCostCentre node.</description></item><item><title>Re: Drop Down List display name</title><link>https://www.infopathdev.com:443/forums/thread/11840.aspx</link><pubDate>Mon, 17 Jul 2006 17:22:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11840</guid><dc:creator>pengbo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11840.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=11840</wfw:commentRss><description>Ok getting further but a bit stuck.&lt;br /&gt;&lt;br /&gt;I have a new field in the repeating item node now called iCostCentreAccount and I am trying to set this with a rule on the data entry form.&lt;br /&gt;&lt;br /&gt;If I use the following rule&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;xdXDocument:GetDOM("Cost Centres")/dfs:myFields/dfs:dataFields/d:Cost_Centres/@CCen_Account[../@CCenID = current()/my:aCostCentre]&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;I get nothing in the query view. but if I use:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;xdXDocument:GetDOM("Cost Centres")/dfs:myFields/dfs:dataFields/d:Cost_Centres/@CCen_Account[../@CCenID = xdXDocument:get-DOM()/my:purchaseOrder/my:items/my:item/my:aCostCentre]&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;which is why I thought I needed current()/my:aCostCentre in there like you do for the cascading DDL's but obviously still to new to this to get the hang of the XPaths.&lt;br /&gt;&lt;br /&gt;Anyone suggest where I should put the current() in the second formula?</description></item><item><title>Drop Down List display name</title><link>https://www.infopathdev.com:443/forums/thread/11697.aspx</link><pubDate>Sun, 16 Jul 2006 17:34:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11697</guid><dc:creator>pengbo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11697.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=11697</wfw:commentRss><description>I have 3 cascading drop down lists sourced from a database in a repeating table which are working perfectly now thanks to Greg's tutorial.&lt;br /&gt;&lt;br /&gt;Now I need a summary view that just lists the details of the order.  So I created a new view and constructed a layout that uses expression boxes to give a summary.  Only problem is the drop down list values are all the ID's of the relevant data from the DB tables and not the display names...  they have to be the ID's or the cascade doesn't work as that is where the relationship is.&lt;br /&gt;&lt;br /&gt;Any suggestions how I get the display name and not the value?  Had a good look around and it seems to me it's not going to be possible as the data source container doesn't know anything about the lookup in the database just the value it is storing.&lt;br /&gt;&lt;br /&gt;Currently only have a vague idea of creating a data source item in the repeating group that is read only to hold the relevant display name and getting it to update using a rule.  Is this possible? if so how do you get a rule on the drop down list so that when the user is filling in the form and makes a selection the display name is set in the read only field as well?  I did say it was only a vague idea :)</description></item></channel></rss>