<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Query by ID and Date</title><link>https://www.infopathdev.com:443/forums/thread/124229.aspx</link><pubDate>Tue, 29 Jun 2021 14:43:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124229</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124229.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=124229</wfw:commentRss><description>When you set up the data connection, on the last screen, there is a checkbox for returning data on form load. Deselect that. But keep your sorting as you currently have it. Then, in form load rules (or whenever you know the ID - maybe there is something the users do or select that indicates that), you can set the ID query field in the list connection, and run the query. At that point, you&amp;#39;ll have only rows for that ID. Does that make sense? I&amp;#39;m not sure when / how you know the ID in your form - but hopefully using query fields will help. :)</description></item><item><title>Re: Query by ID and Date</title><link>https://www.infopathdev.com:443/forums/thread/124228.aspx</link><pubDate>Tue, 29 Jun 2021 13:44:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124228</guid><dc:creator>CsabaBekesi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124228.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=124228</wfw:commentRss><description>the screenshot attached indicates what I was trying to refer to.</description></item><item><title>Re: Query by ID and Date</title><link>https://www.infopathdev.com:443/forums/thread/124225.aspx</link><pubDate>Tue, 29 Jun 2021 11:45:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124225</guid><dc:creator>CsabaBekesi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124225.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=124225</wfw:commentRss><description>Thanks for your response Hilary.

That is exactly the piece I am not sure how to address.

If I do set &amp;quot;Data Connections/Data connections for the form template: &amp;gt;&amp;gt;Chosen Sharepoint (data source) list &amp;gt;&amp;gt; Modify &amp;gt;&amp;gt; chosen location &amp;gt;&amp;gt; to &amp;quot;sort by:&amp;quot; and &amp;quot;sort order (ascending)&amp;quot; and pinpoint to the column that contains the dates, it does not pull the right unique identifyer, but simply the latest date from all the dates available in the column.

By the same method, if its set to be sorted by the unique ID, it selects the right under user, but with the first available date there is, not the latest one I&amp;#39;d need.

Hope this makes sense.</description></item><item><title>Re: Query by ID and Date</title><link>https://www.infopathdev.com:443/forums/thread/124223.aspx</link><pubDate>Mon, 28 Jun 2021 15:16:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124223</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124223.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=124223</wfw:commentRss><description>I would probably query by user, sorted by date desc, and then you know the first returned row is the row you want.</description></item><item><title>Query by ID and Date</title><link>https://www.infopathdev.com:443/forums/thread/124219.aspx</link><pubDate>Mon, 28 Jun 2021 07:47:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124219</guid><dc:creator>CsabaBekesi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124219.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=124219</wfw:commentRss><description>Hello everyone!

Thanks for having me.

I do have my form connected to a Sharepoint table (my data source).

From that table I&amp;#39;d need the form to pull the latest entries of a user. I am stuck at this very point.

Either I pull by ID or by date: 

- if by ID, then I have no clue how to have the form query for the latest date.
- if by date, then latest dates getting queried, but not by the ID (mixing up the users).

Please see the attached example screenshot (sry for quality).

Thanks for the insights.

Best,

Csaba</description></item></channel></rss>