<?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>Qdabra qRules</title><link>https://www.infopathdev.com:443/forums/131.aspx</link><description>qRules adds support to your InfoPath  forms. With qRules, you can add features to your form that require code, but without having to write it. </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Editing Sharepoint list items by two users at the same time.</title><link>https://www.infopathdev.com:443/forums/thread/92249.aspx</link><pubDate>Fri, 16 Aug 2013 14:01:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92249</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92249.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=92249</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;tyty4u2:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;I will give this a try, thank you. Did you have any thoughts on the best way to calculate inventory? Whether to have one List item in &amp;quot;Inventory List&amp;quot; that Infopath will add and subtract to in the form and update the new value in the list item, or to have each transaction submit to a list as a new item and perform a Sum() on the list query. My concern on the list query is it might have to query and sum thousands of list items to calculate. Are there any Sharepoint or Infopath limitations or performance issues with this? &lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;Correct, with a large number of records (thousands) you&amp;#39;ll start seeing performance issues.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;tyty4u2:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;One more question. Say I have the &amp;quot;Inventory List&amp;quot; as described above. I have the SKU Column and the Quantity Column. I have this information being queried into an Infopath Form and populating a repeating table. With 2 different mapping files for the SubmitToSharePointList. &lt;u&gt;One mapping file is set to update the SKU only and the other is set to update the Quantity Only&lt;/u&gt;. What would happen if two users submitted at the same time. Say I changed &amp;quot;Widget A&amp;quot; to &amp;quot;Widget Z&amp;quot; for one mapping and the other mapping changed Quantity from &amp;quot;100&amp;quot; to &amp;quot;200&amp;quot;. If both ran at the same time, would I expect to see Widget Z at Quantity 200 or would I see the last one that ran which would be either Widget A at 200 or Widget Z at 100? I guess the question is will Sharepoint and SubmitToSharePointList update the same list item at the same time as long as they are editing different column values? Thanks Ernesto!&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;You&amp;#39;d see Widget Z at Quantity 200 (as long as each mapping is only updating the one column).&lt;/p&gt;
&lt;p&gt;Good luck! Let us know how it goes.&lt;/p&gt;</description></item><item><title>Re: Editing Sharepoint list items by two users at the same time.</title><link>https://www.infopathdev.com:443/forums/thread/92239.aspx</link><pubDate>Thu, 15 Aug 2013 20:50:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92239</guid><dc:creator>tyty4u2</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92239.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=92239</wfw:commentRss><description>I will give this a try, thank you.

Did you have any thoughts on the best way to calculate inventory?  Whether to have one List item in &amp;quot;Inventory List&amp;quot; that Infopath will add and subtract to in the form and update the new value in the list item, or to have each transaction submit to a list as a new item and perform a Sum() on the list query.  My concern on the list query is it might have to query and sum thousands of list items to calculate.  Are there any Sharepoint or Infopath limitations or performance issues with this?

One more question.  Say I have the &amp;quot;Inventory List&amp;quot; as described above.  I have the SKU Column and the Quantity Column.  

I have this information being queried into an Infopath Form and populating a repeating table.  With 2 different mapping files for the SubmitToSharePointList.  One mapping file is set to update the SKU only and the other is set to update the Quantity Only.  What would happen if two users submitted at the same time.  Say I changed &amp;quot;Widget A&amp;quot; to &amp;quot;Widget Z&amp;quot; for one mapping and the other mapping changed Quantity from &amp;quot;100&amp;quot; to &amp;quot;200&amp;quot;.  If both ran at the same time, would I expect to see Widget Z at Quantity 200 or would I see the last one that ran which would be either Widget A at 200 or Widget Z at 100?  I guess the question is will Sharepoint and SubmitToSharePointList update the same list item at the same time as long as they are editing different column values?

Thanks Ernesto!</description></item><item><title>Re: Editing Sharepoint list items by two users at the same time.</title><link>https://www.infopathdev.com:443/forums/thread/92237.aspx</link><pubDate>Thu, 15 Aug 2013 20:07:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92237</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92237.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=92237</wfw:commentRss><description>&lt;p&gt;In the scenario you&amp;#39;ve described, the last edit &amp;quot;wins&amp;quot;.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t believe there&amp;#39;s an option to lock list items, but your idea sounds interesting:&lt;/p&gt;
&lt;p&gt;First query to make sure the usernameLocked column is blank. If it&amp;#39;s not blank, someone already locked it so show appropriate error.&lt;/p&gt;
&lt;p&gt;You would need to &lt;u&gt;write&lt;/u&gt; the list item (using SubmitToSharePointList)&amp;nbsp;to set the usernameLocked column to ernestom, for example.&lt;/p&gt;
&lt;p&gt;When the user is done editing and clicks submit, remember to clear usernameLocked.&lt;/p&gt;
&lt;p&gt;Sounds like a good idea; let us know how it goes!&lt;/p&gt;</description></item><item><title>Editing Sharepoint list items by two users at the same time.</title><link>https://www.infopathdev.com:443/forums/thread/92229.aspx</link><pubDate>Thu, 15 Aug 2013 17:46:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92229</guid><dc:creator>tyty4u2</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92229.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=92229</wfw:commentRss><description>I have a list called &amp;quot;Inventory&amp;quot; with two columns in Sharepoint. A &amp;quot;SKU&amp;quot; and &amp;quot;Quantity&amp;quot; column.

I am using an Infopath form with Qrules to edit this list for adding and subtracting Quantity&amp;#39;s from the SKU.  What happens when two users have the two different forms open and one wants to change the number to &amp;quot;100&amp;quot; and the other users wants to change the number to &amp;quot;200&amp;quot; and they both click Submit at the very same time.

I thought about creating an additional field in the list that is a &amp;quot;username locked&amp;quot; text field and every time they click submit, it would do the following.

1) Update the &amp;quot;username locked&amp;quot; field with the current username
2) Query Inventory list
3) If &amp;quot;username locked&amp;quot; field == current user then don&amp;#39;t process any rules and prompt user that somebody else is editing inventory
4) If &amp;quot;username locked&amp;quot; field = current user or is BLANK then UpdateListItem
5) Update the &amp;quot;username locked&amp;quot; field to BLANK of Qdabra Success = TRUE
6) Close the Form.

I am trying to wrap my head around how well this would work and any issues.  Any suggestions?  Is there anyway for the Form to notify the user if there is a conflict in updating?  Which user would have their items saved it both clicked Submit at the same time?  I am assuming the first one.

This list could have 1000&amp;#39;s of transactions.  I though about making each form submit data as a new list item and doing a filtered query to SUM(Quantity) - SUM(Sold) = On Hand Balance.  So instead of trying to add and subtract this one list item, I would have all of list items and get summed together.  For Example:

(Widget A |  100)
(Widget A | -10)
(Widget A | -40)
(Widget B | 1000)
(Widget B | -2)
(Widget B | -800)
etc...

SUM Widget A = 60 On Hand
SUM Widget B = 198 On Hand

Doing it this way might resolve my multiple submit issue.

Thanks for the help in advance.</description></item></channel></rss>