error using edit functionhttp://forums.asp.net/t/1395755.aspx/1?error+using+edit+functionTue, 26 May 2009 03:19:32 -040013957553000111http://forums.asp.net/p/1395755/3000111.aspx/1?error+using+edit+functionerror using edit function <p>I applied a fix i found on the forums to allow me to delete categories and applied the same fix to allow me to delete time entries however I am still getting an error when I try to edit a time entry? Does anyone know a way to allow edititing on a time entry? I do not want to force users to delete entrys if they could just click the edit button... </p> <p>Thanks!</p> 2009-03-11T16:52:02-04:003001129http://forums.asp.net/p/1395755/3001129.aspx/1?Re+error+using+edit+functionRe: error using edit function <p>Can you post the error details</p> 2009-03-12T03:22:22-04:003050347http://forums.asp.net/p/1395755/3050347.aspx/1?Re+error+using+edit+functionRe: error using edit function <p>What kind of error you are facing, Please post the detail error</p> 2009-03-31T03:19:19-04:003086016http://forums.asp.net/p/1395755/3086016.aspx/1?Re+error+using+edit+functionRe: error using edit function <p>Please refere sollowing post, if it is useful to you</p> <p><a href="http://forums.asp.net/t/1383759.aspx">http://forums.asp.net/t/1383759.aspx</a></p> 2009-04-14T03:26:37-04:003158872http://forums.asp.net/p/1395755/3158872.aspx/1?Re+error+using+edit+functionRe: error using edit function <p>Here is the error detail that you require Chetan:&nbsp; Please post some code to fix this issue.&nbsp; Many thanks.</p> <p>&nbsp;</p> <p>&nbsp;Test Steps:</p> <p>1. Select an existing time entry detail record in TimeEntry.aspx</p> <p>2. Click on the &lt;Edit&gt; icon</p> <p>3. Modify something in one of the fields</p> <p>4. Click on the &lt;Save Details&gt; icon</p> <p>5. Error Message Below</p> <p></p> <hr> <p><strong>Source:</strong>/CanDoSomeThings/TimeEntry.aspx <br> <b>Browser:</b>Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) <br> <b>IP:</b>58.170.199.138 </p> <hr> <p><br> <b>Error in: </b>http://www.hexagon-global.com/CanDoSomeThings/TimeEntry.aspx <br> <b>Error Message: </b>ObjectDataSource 'ProjectListDataSource' could not find a non-generic method 'UpdateTimeEntry' that has parameters: CategoryName, Duration, ReportedDate, UserName, ProjectName, Description, Id. <br> </p> 2009-05-13T05:46:57-04:003161336http://forums.asp.net/p/1395755/3161336.aspx/1?Re+error+using+edit+functionRe: error using edit function <p>Can you please provide me test username &amp; password to test it</p> 2009-05-14T03:23:01-04:003161381http://forums.asp.net/p/1395755/3161381.aspx/1?Re+error+using+edit+functionRe: error using edit function <p></p> <blockquote><span class="icon-blockquote"></span> <h4>chetan.sarode</h4> <p>Can you please provide me test username &amp; password to test it</p> <p></p> </blockquote> <p></p> <p>Chetan, can you not reproduce this error in your test system?&nbsp; </p> <p>I am getting it, and user 'gguertin' is getting it, hence it is most likely in the download.</p> <p>Judging by the text of the error message it is clearly a coding bug, relating to either the declaration or the call of method UpdateTimeEntry, something I haven't changed.</p> <p>It is possible that&nbsp;we are&nbsp;not on the most recent drop.</p> <p>&nbsp;</p> 2009-05-14T03:46:15-04:003164077http://forums.asp.net/p/1395755/3164077.aspx/1?Re+error+using+edit+functionRe: error using edit function <p>You have to&nbsp;overload UpdateTimeEntry(...) with the missing parameters.</p> <p><a href="http://forums.asp.net/t/1199275.aspx">http://forums.asp.net/t/1199275.aspx</a></p> 2009-05-15T03:30:55-04:003168814http://forums.asp.net/p/1395755/3168814.aspx/1?Re+error+using+edit+functionRe: error using edit function <p>I hope this will help you</p> 2009-05-18T03:37:03-04:003168874http://forums.asp.net/p/1395755/3168874.aspx/1?Re+error+using+edit+functionRe: error using edit function <p>&nbsp;</p> <p>&nbsp;</p> <blockquote><span class="icon-blockquote"></span> <h4>chetan.sarode</h4> <p>I hope this will help you</p> </blockquote> <p>Well, Chetan, it does not help as much as actually fixing the bug in your starter kit would have helped, if you get my drift.</p> <p>I'll tell you what, how about this?&nbsp; I will fix the bug and then post the change here.&nbsp; Ad then you can put it in your starter kit so that future newbies do not continue to trip over it?</p> <p>I just have something else to knock off in the next couple of days, but I'll get to it soon.</p> <p>Hyacinth.</p> 2009-05-18T04:23:03-04:003171423http://forums.asp.net/p/1395755/3171423.aspx/1?Re+error+using+edit+functionRe: error using edit function <p>For you reference see the following thread, in which some coomon bugs are already fixed</p> <p><a href="http://forums.asp.net/t/941943.aspx">http://forums.asp.net/t/941943.aspx</a></p> <p><a href="http://forums.asp.net/t/1373129.aspx">http://forums.asp.net/t/1373129.aspx</a></p> 2009-05-19T03:25:38-04:003180426http://forums.asp.net/p/1395755/3180426.aspx/1?Re+error+using+edit+functionRe: error using edit function <p>I found that the method header for UpdateTimeEntry needs to be like this:</p> <pre class="prettyprint">public static bool UpdateTimeEntry( string CategoryName, string Description, decimal Duration, DateTime ReportedDate, string UserName, string ProjectName, int Id ) {</pre> <P>&nbsp;This corresponds to a declaration of UpdateParameters in ObjectDataSource UpdateTimeEntry of:</P><pre class="prettyprint">&lt;UpdateParameters&gt; &lt;<SPAN class=tag>asp:Parameter</SPAN><SPAN class=attr> Name=</SPAN><SPAN class=attrv>"Id"</SPAN><SPAN class=attr> Type=</SPAN><SPAN class=attrv>"Int32"</SPAN> /&gt; &lt;<SPAN class=tag>asp:Parameter</SPAN><SPAN class=attr> Name=</SPAN><SPAN class=attrv>"CategoryName"</SPAN><SPAN class=attr> Type=</SPAN><SPAN class=attrv>"String"</SPAN> /&gt; &lt;<SPAN class=tag>asp:Parameter</SPAN><SPAN class=attr> Name=</SPAN><SPAN class=attrv>"Description"</SPAN><SPAN class=attr> Type=</SPAN><SPAN class=attrv>"String"</SPAN> /&gt; &lt;<SPAN class=tag>asp:Parameter</SPAN><SPAN class=attr> Name=</SPAN><SPAN class=attrv>"Duration"</SPAN><SPAN class=attr> Type=</SPAN><SPAN class=attrv>"Decimal"</SPAN> /&gt; &lt;<SPAN class=tag>asp:Parameter</SPAN><SPAN class=attr> Name=</SPAN><SPAN class=attrv>"ReportedDate"</SPAN><SPAN class=attr> Type=</SPAN><SPAN class=attrv>"DateTime"</SPAN> /&gt; &lt;<SPAN class=tag>asp:ControlParameter</SPAN><SPAN class=attr> Name=</SPAN><SPAN class=attrv>"UserName"</SPAN><SPAN class=attr> ControlID=</SPAN><SPAN class=attrv>"UserList"</SPAN><SPAN class=attr> PropertyName=</SPAN><SPAN class=attrv>"SelectedValue"</SPAN> <SPAN class=attr> Type=</SPAN><SPAN class=attrv>"String"</SPAN> /&gt; &lt;/<SPAN class=tag>UpdateParameters</SPAN>&gt; </pre> <p>However, I have made quite some changes to this screen, &nbsp;so it is possible that this is no longer the same as what is in the vanilla starter kit.&nbsp; </p> <p>If you run it in the debugger, it will tell you the parameter list that it is expecting.</p> <p>&nbsp;HTH Hyacinth.</p> 2009-05-22T08:52:41-04:003184703http://forums.asp.net/p/1395755/3184703.aspx/1?Re+error+using+edit+functionRe: error using edit function <p>Thats great</p> 2009-05-25T03:26:21-04:003186796http://forums.asp.net/p/1395755/3186796.aspx/1?Re+error+using+edit+functionRe: error using edit function <p>If you solved your query, please mark the answer, so it will help for other people</p> 2009-05-26T03:19:32-04:00