<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Question: Set a field's value</title><link>https://www.infopathdev.com:443/forums/thread/93958.aspx</link><pubDate>Tue, 29 Oct 2013 17:10:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93958</guid><dc:creator>biohazz65</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93958.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=93958</wfw:commentRss><description>Wow, that was fast!

Thank you, I&amp;#39;m plowing on through the book - I should know shortly if your solution worked. I&amp;#39;ll mark it as Answered if it works, if not I&amp;#39;ll ping you if that is OK.</description></item><item><title>Re: Question: Set a field's value</title><link>https://www.infopathdev.com:443/forums/thread/93956.aspx</link><pubDate>Tue, 29 Oct 2013 16:21:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93956</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93956.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=93956</wfw:commentRss><description>&lt;p&gt;Here&amp;#39;s your form - save it locally, right click and select design to open in design mode.&lt;/p&gt;</description></item><item><title>Re: Question: Set a field's value</title><link>https://www.infopathdev.com:443/forums/thread/93955.aspx</link><pubDate>Tue, 29 Oct 2013 16:20:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93955</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93955.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=93955</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m attaching some screenshots and will add another reply with your template with another action added to your rule on course ID. &lt;/p&gt;&lt;p&gt;This is what the XPath for the filter looks like - User from the secondary data source is equal to user from the primary data source:&lt;/p&gt;&lt;p&gt;../d:User = xdXDocument:get-DOM()/my:myFields/my:User&lt;/p&gt;&lt;p&gt;I&amp;#39;m not 100% confident that this is correct - I would think that what you want to know is if the user is registered for this particular course - but it looks like you may be querying for just this course&amp;#39;s data, so this may be just fine.&lt;/p&gt;</description></item><item><title>Re: Question: Set a field's value</title><link>https://www.infopathdev.com:443/forums/thread/93951.aspx</link><pubDate>Tue, 29 Oct 2013 15:43:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93951</guid><dc:creator>biohazz65</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93951.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=93951</wfw:commentRss><description>Thank you!</description></item><item><title>Re: Question: Set a field's value</title><link>https://www.infopathdev.com:443/forums/thread/93950.aspx</link><pubDate>Tue, 29 Oct 2013 15:32:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93950</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93950.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=93950</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Mind attaching your template under the Options tab in a reply?&lt;/p&gt;</description></item><item><title>Question: Set a field's value</title><link>https://www.infopathdev.com:443/forums/thread/93948.aspx</link><pubDate>Tue, 29 Oct 2013 15:13:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93948</guid><dc:creator>biohazz65</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93948.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=93948</wfw:commentRss><description>I asked the publisher of &amp;quot;Microsoft SharePoint 2010 Creating and Implementing Real-World Projects&amp;quot; for clarification and was basically blown off, so I figured I would come to the experts! I&amp;#39;m not a developer and this is prolly a simple problem but I&amp;#39;m asking anyway:)

Here is the syntax from page 92: StudentCurrentlyRegistered=Count(Registration(Secondary) ID, where Registration (UserName)=Main(UserName)

Description: Counts the number of registrations where the UserName in the Registration data set is equal to the current user. If the value is grater than zero we know the user is registered for the course.

On page 94 there is a screen shot which shows: Set a field&amp;#39;s value: StudentCurrentlyRegistered = count(ID[User = User]) This causes an error. I&amp;#39;ve tried numerous permutations but nothing works.

The Main data connection contains
CourseID
User
MaxNumStudents
CurrentNumStudents
StudentCurrentlyRegistered


The Registration (secondary) contains: 
Title
Course ID
User
ID

Hopefully this is enough info for you brainiacs to help get this thing working!

Thanks in advance!!</description></item></channel></rss>