<?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: Distinguish between new &amp;amp; existing rows?</title><link>https://www.infopathdev.com:443/forums/thread/6339.aspx</link><pubDate>Thu, 18 Nov 2004 18:50:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6339</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6339.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6339</wfw:commentRss><description>The problem is you don't have control over the schema. There is no way of knowing whether a row is new unless you have some kind of a flag.&lt;br /&gt;&lt;br /&gt;It seems your only option at this point is to create a copy with the flag, use the copy for your editing, then post back without the flag when you save.&lt;br /&gt;&lt;br /&gt;Unless you can modify the main schema, I don't see another choice.&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]</description></item><item><title>Re: Distinguish between new &amp;amp; existing rows?</title><link>https://www.infopathdev.com:443/forums/thread/6338.aspx</link><pubDate>Tue, 16 Nov 2004 11:34:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6338</guid><dc:creator>jonbrave</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6338.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6338</wfw:commentRss><description>Hmmmm....&lt;br /&gt;&lt;br /&gt;And where's the other option so I can just test whether a row is new or not without all of this? :)</description></item><item><title>Re: Distinguish between new &amp;amp; existing rows?</title><link>https://www.infopathdev.com:443/forums/thread/6337.aspx</link><pubDate>Mon, 15 Nov 2004 18:40:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6337</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6337.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6337</wfw:commentRss><description>Sorry, I must have missed that last paragraph on your original post.&lt;br /&gt;&lt;br /&gt;One option you have is to create a secondary DOM based off the schema of your data set with the addition of the boolean. Copy the data into the secondary DOM and set the boolean to true. Use the secondary DOM in the view. All new rows will automatically have false for the boolean. Then copy it back to the data set for save/submit.&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]</description></item><item><title>Re: Distinguish between new &amp;amp; existing rows?</title><link>https://www.infopathdev.com:443/forums/thread/6336.aspx</link><pubDate>Mon, 15 Nov 2004 17:58:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6336</guid><dc:creator>jonbrave</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6336.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6336</wfw:commentRss><description>But, Greg, I don't see how I could do this?&lt;br /&gt;&lt;br /&gt;I said:&lt;br /&gt;&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;I can think of adding a dummy boolean column that I set via a rule on section insert, but unfortunately I don't have the luxury of adding this (conveniently) into my schema (generated from WS/DataSet)...&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;You talk about: &lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;You could add a boolean attribute to the repeating rode representing the row&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;Unless attributes are handled any differently from an extra column, how can I do this?  Remember, when IP gets schema from DataSet &lt;i&gt;everything&lt;/i&gt; inside, say, "dataFields" is readonly and you cannot "Add" any variables/attributes...  The &lt;i&gt;only&lt;/i&gt; place one can Add variables is into the root node "/myFields", and I don't see how that would get me anywhere....</description></item><item><title>Re: Distinguish between new &amp;amp; existing rows?</title><link>https://www.infopathdev.com:443/forums/thread/6335.aspx</link><pubDate>Fri, 12 Nov 2004 18:50:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6335</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6335.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6335</wfw:commentRss><description>It's not that difficult of a problem, but will require the addition of a flag attribute on your row. Here's what I have in mind:&lt;br /&gt;&lt;br /&gt;You could add a boolean attribute to the repeating rode representing the row. Say the attribute is @new and the default value is true.&lt;br /&gt;&lt;br /&gt;When new rows are inserted, the value of @new is true. This is your indicator to show editable fields.&lt;br /&gt;&lt;br /&gt;On save, set all those @new values to false. Then when the form is reopened, all the values are false and the rows show expression boxes instead.&lt;br /&gt;&lt;br /&gt;@new on newly inserted rows will always be true, and saved rows will always be false.&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]</description></item><item><title>Distinguish between new &amp; existing rows?</title><link>https://www.infopathdev.com:443/forums/thread/4502.aspx</link><pubDate>Fri, 12 Nov 2004 12:49:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4502</guid><dc:creator>jonbrave</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4502.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4502</wfw:commentRss><description>Can it be done?&lt;br /&gt;&lt;br /&gt;I have a repeating section tied to a table.  I populate in preparation for submit.  What I want is that (previously) existing rows should be non-editable/read-only, but the user can insert new rows.&lt;br /&gt;&lt;br /&gt;I disable "Remove" to prevent user deleting existing ones; fine (actually, unfortunately he then can't change his mind and delete a new row he adds, but I can see that's a difficult one).&lt;br /&gt;&lt;br /&gt;But now I can't win: if I mark the fields readonly my added row gets readonly; so I don't, and that means existing row fields are editable :(&lt;br /&gt;&lt;br /&gt;Is there anything I can test in a rule/condition to see if I'm on an added row (to use that for field editability disablement)?&lt;br /&gt;&lt;br /&gt;I can think of adding a dummy boolean column that I set via a rule on section insert, but unfortunately I don't have the luxury of adding this (conveniently) into my schema (generated from WS/DataSet)...</description></item></channel></rss>