<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Sharepoint list form generator</title>
	<atom:link href="http://www.fivenumber.com/sharepoint-list-form-generator/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fivenumber.com/sharepoint-list-form-generator/</link>
	<description>It&#039;s all about SharePoint</description>
	<lastBuildDate>Wed, 14 Jul 2010 09:03:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Anu</title>
		<link>http://www.fivenumber.com/sharepoint-list-form-generator/comment-page-1/#comment-420</link>
		<dc:creator>Anu</dc:creator>
		<pubDate>Tue, 27 Apr 2010 10:35:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.fivenumber.com/?p=598#comment-420</guid>
		<description>i didnot change the code.It is not in the new form but in the edit form which i am creating like new form except assigning values to field based on list id .
It works for normal text and doesn&#039;t load values for &quot;lookup&quot; field and &quot;datetime&quot; field.
For lookup it says:NameError: Value does not fall within the expected range.Stack:    at Microsoft.SharePoint.SPFieldLookupValue.ParseLookupId(String fieldValue)
   at Microsoft.SharePoint.SPFieldLookupValue..ctor(String fieldValue)

It because I m trying to store in FORMFIELD Control.please advice

Thanks,
Anu</description>
		<content:encoded><![CDATA[<p>i didnot change the code.It is not in the new form but in the edit form which i am creating like new form except assigning values to field based on list id .<br />
It works for normal text and doesn&#8217;t load values for &#8220;lookup&#8221; field and &#8220;datetime&#8221; field.<br />
For lookup it says:NameError: Value does not fall within the expected range.Stack:    at Microsoft.SharePoint.SPFieldLookupValue.ParseLookupId(String fieldValue)<br />
   at Microsoft.SharePoint.SPFieldLookupValue..ctor(String fieldValue)</p>
<p>It because I m trying to store in FORMFIELD Control.please advice</p>
<p>Thanks,<br />
Anu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: G Vijai Kumar</title>
		<link>http://www.fivenumber.com/sharepoint-list-form-generator/comment-page-1/#comment-417</link>
		<dc:creator>G Vijai Kumar</dc:creator>
		<pubDate>Mon, 26 Apr 2010 09:17:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.fivenumber.com/?p=598#comment-417</guid>
		<description>@ Anu: There is no problem with date column generation, the generates with out any issues, have you modified the code in any line? please confirm</description>
		<content:encoded><![CDATA[<p>@ Anu: There is no problem with date column generation, the generates with out any issues, have you modified the code in any line? please confirm</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anu</title>
		<link>http://www.fivenumber.com/sharepoint-list-form-generator/comment-page-1/#comment-416</link>
		<dc:creator>Anu</dc:creator>
		<pubDate>Mon, 26 Apr 2010 09:07:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.fivenumber.com/?p=598#comment-416</guid>
		<description>Hi,

Thanks for this post.I able to generate a list form dynamically.I m trying to get EditForm in the manner by passing list id.All the column gets generated correctly using the ListID expect the Date column.Is there anything special i need to do to generate a Date column

Thanks,
Anu</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for this post.I able to generate a list form dynamically.I m trying to get EditForm in the manner by passing list id.All the column gets generated correctly using the ListID expect the Date column.Is there anything special i need to do to generate a Date column</p>
<p>Thanks,<br />
Anu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gmello</title>
		<link>http://www.fivenumber.com/sharepoint-list-form-generator/comment-page-1/#comment-355</link>
		<dc:creator>Gmello</dc:creator>
		<pubDate>Thu, 11 Feb 2010 14:05:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.fivenumber.com/?p=598#comment-355</guid>
		<description>Hi,
if I put this webpart in an anonymous site, MOSS ask me for username and password and I want to avoid this. With debug I get the following error in WebPart1.cs line 147 (Controls.Add(oFormTable)): &quot;Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack&quot;.
I tried putting the code inside a SPSecurity.RunWithElevatedPrivileges, but no luck. Any guess?
Thank you</description>
		<content:encoded><![CDATA[<p>Hi,<br />
if I put this webpart in an anonymous site, MOSS ask me for username and password and I want to avoid this. With debug I get the following error in WebPart1.cs line 147 (Controls.Add(oFormTable)): &#8220;Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack&#8221;.<br />
I tried putting the code inside a SPSecurity.RunWithElevatedPrivileges, but no luck. Any guess?<br />
Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: G Vijai Kumar</title>
		<link>http://www.fivenumber.com/sharepoint-list-form-generator/comment-page-1/#comment-315</link>
		<dc:creator>G Vijai Kumar</dc:creator>
		<pubDate>Wed, 13 Jan 2010 07:08:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.fivenumber.com/?p=598#comment-315</guid>
		<description>@ Sylvain: Can you please send your code through contact form http://www.fivenumber.com/contact/ so that it will be helpful for me to find out the issue, thank for looking to this post</description>
		<content:encoded><![CDATA[<p>@ Sylvain: Can you please send your code through contact form <a href="http://www.fivenumber.com/contact/" rel="nofollow">http://www.fivenumber.com/contact/</a> so that it will be helpful for me to find out the issue, thank for looking to this post</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sylvain</title>
		<link>http://www.fivenumber.com/sharepoint-list-form-generator/comment-page-1/#comment-314</link>
		<dc:creator>Sylvain</dc:creator>
		<pubDate>Mon, 11 Jan 2010 23:32:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.fivenumber.com/?p=598#comment-314</guid>
		<description>I tried your code but the button click event is never fired.  Could it be because i&#039;m do not derived from webpart but from webcontrol?</description>
		<content:encoded><![CDATA[<p>I tried your code but the button click event is never fired.  Could it be because i&#8217;m do not derived from webpart but from webcontrol?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: G Vijai Kumar</title>
		<link>http://www.fivenumber.com/sharepoint-list-form-generator/comment-page-1/#comment-270</link>
		<dc:creator>G Vijai Kumar</dc:creator>
		<pubDate>Fri, 27 Nov 2009 05:20:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.fivenumber.com/?p=598#comment-270</guid>
		<description>@ Rajender: It&#039;s my pleasure, glad to hear that it&#039;s working fine and thanks for looking into the post :-)</description>
		<content:encoded><![CDATA[<p>@ Rajender: It&#8217;s my pleasure, glad to hear that it&#8217;s working fine and thanks for looking into the post <img src='http://www.fivenumber.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajender</title>
		<link>http://www.fivenumber.com/sharepoint-list-form-generator/comment-page-1/#comment-269</link>
		<dc:creator>Rajender</dc:creator>
		<pubDate>Thu, 26 Nov 2009 15:09:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.fivenumber.com/?p=598#comment-269</guid>
		<description>its working fine.. thank u</description>
		<content:encoded><![CDATA[<p>its working fine.. thank u</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajender</title>
		<link>http://www.fivenumber.com/sharepoint-list-form-generator/comment-page-1/#comment-268</link>
		<dc:creator>Rajender</dc:creator>
		<pubDate>Thu, 26 Nov 2009 14:55:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.fivenumber.com/?p=598#comment-268</guid>
		<description>Thank you sfor ur fast reply..
 after adding the webpart in  site , where i can find the  webpart properties.. please help in this......urgent</description>
		<content:encoded><![CDATA[<p>Thank you sfor ur fast reply..<br />
 after adding the webpart in  site , where i can find the  webpart properties.. please help in this&#8230;&#8230;urgent</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: G Vijai Kumar</title>
		<link>http://www.fivenumber.com/sharepoint-list-form-generator/comment-page-1/#comment-264</link>
		<dc:creator>G Vijai Kumar</dc:creator>
		<pubDate>Wed, 25 Nov 2009 15:14:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.fivenumber.com/?p=598#comment-264</guid>
		<description>@ Rajender: In the image http://www.fivenumber.com/wp-content/uploads/2009/10/1.gif you can see the input field label&#039;s (Title, Employee name, Designation) were not hard coded in the code, the label&#039;s too generated at run time, so no need to worry about hard coding the form field label&#039;s the code take cares of than
FYI: In the second foreach loop (from line no:108 to 112) the below lines are responsible for generating the form field label&#039;s at run time

oFormLabelField = new FieldLabel();  
oFormLabelField.ControlMode = SPControlMode.New;  
oFormLabelField.ListId = oFormList.ID;  
oFormLabelField.FieldName = oField.InternalName;</description>
		<content:encoded><![CDATA[<p>@ Rajender: In the image <a href="http://www.fivenumber.com/wp-content/uploads/2009/10/1.gif" rel="nofollow">http://www.fivenumber.com/wp-content/uploads/2009/10/1.gif</a> you can see the input field label&#8217;s (Title, Employee name, Designation) were not hard coded in the code, the label&#8217;s too generated at run time, so no need to worry about hard coding the form field label&#8217;s the code take cares of than<br />
FYI: In the second foreach loop (from line no:108 to 112) the below lines are responsible for generating the form field label&#8217;s at run time</p>
<p>oFormLabelField = new FieldLabel();<br />
oFormLabelField.ControlMode = SPControlMode.New;<br />
oFormLabelField.ListId = oFormList.ID;<br />
oFormLabelField.FieldName = oField.InternalName;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
