error using edit function

Last post 05-25-2009 11:19 PM by chetan.sarode. 13 replies.

Sort Posts:

  • error using edit function

    03-11-2009, 12:52 PM
    • Member
      2 point Member
    • gguertin145
    • Member since 03-05-2009, 7:45 PM
    • Posts 4

    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...

    Thanks!

  • Re: error using edit function

    03-11-2009, 11:22 PM

    Can you post the error details

    Chetan Sarode
    Software Engineer,
    Approva Systems Pvt Ltd,
    Pune, India.
  • Re: error using edit function

    03-30-2009, 11:19 PM

    What kind of error you are facing, Please post the detail error

    Chetan Sarode
    Software Engineer,
    Approva Systems Pvt Ltd,
    Pune, India.
  • Re: error using edit function

    04-13-2009, 11:26 PM

    Please refere sollowing post, if it is useful to you

    http://forums.asp.net/t/1383759.aspx

    Chetan Sarode
    Software Engineer,
    Approva Systems Pvt Ltd,
    Pune, India.
  • Re: error using edit function

    05-13-2009, 1:46 AM

    Here is the error detail that you require Chetan:  Please post some code to fix this issue.  Many thanks.

     

     Test Steps:

    1. Select an existing time entry detail record in TimeEntry.aspx

    2. Click on the <Edit> icon

    3. Modify something in one of the fields

    4. Click on the <Save Details> icon

    5. Error Message Below


    Source:/CanDoSomeThings/TimeEntry.aspx
    Browser: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)
    IP:58.170.199.138



    Error in: http://www.hexagon-global.com/CanDoSomeThings/TimeEntry.aspx
    Error Message: ObjectDataSource 'ProjectListDataSource' could not find a non-generic method 'UpdateTimeEntry' that has parameters: CategoryName, Duration, ReportedDate, UserName, ProjectName, Description, Id.

  • Re: error using edit function

    05-13-2009, 11:23 PM

    Can you please provide me test username & password to test it

    Chetan Sarode
    Software Engineer,
    Approva Systems Pvt Ltd,
    Pune, India.
  • Re: error using edit function

    05-13-2009, 11:46 PM

    chetan.sarode:

    Can you please provide me test username & password to test it

    Chetan, can you not reproduce this error in your test system? 

    I am getting it, and user 'gguertin' is getting it, hence it is most likely in the download.

    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.

    It is possible that we are not on the most recent drop.

     

  • Re: error using edit function

    05-14-2009, 11:30 PM

    You have to overload UpdateTimeEntry(...) with the missing parameters.

    http://forums.asp.net/t/1199275.aspx

    Chetan Sarode
    Software Engineer,
    Approva Systems Pvt Ltd,
    Pune, India.
  • Re: error using edit function

    05-17-2009, 11:37 PM

    I hope this will help you

    Chetan Sarode
    Software Engineer,
    Approva Systems Pvt Ltd,
    Pune, India.
  • Re: error using edit function

    05-18-2009, 12:23 AM

     

     

    chetan.sarode:

    I hope this will help you

    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.

    I'll tell you what, how about this?  I will fix the bug and then post the change here.  Ad then you can put it in your starter kit so that future newbies do not continue to trip over it?

    I just have something else to knock off in the next couple of days, but I'll get to it soon.

    Hyacinth.

  • Re: error using edit function

    05-18-2009, 11:25 PM

    For you reference see the following thread, in which some coomon bugs are already fixed

    http://forums.asp.net/t/941943.aspx

    http://forums.asp.net/t/1373129.aspx

    Chetan Sarode
    Software Engineer,
    Approva Systems Pvt Ltd,
    Pune, India.
  • Re: error using edit function

    05-22-2009, 4:52 AM

    I found that the method header for UpdateTimeEntry needs to be like this:

    public static bool UpdateTimeEntry( string CategoryName, string Description, decimal Duration, 
                                            DateTime ReportedDate, string UserName, string ProjectName, 
                                            int Id )
        {

     This corresponds to a declaration of UpdateParameters in ObjectDataSource UpdateTimeEntry of:

    <UpdateParameters>
        <asp:Parameter Name="Id" Type="Int32" />
        <asp:Parameter Name="CategoryName" Type="String" />
        <asp:Parameter Name="Description" Type="String" />
        <asp:Parameter Name="Duration" Type="Decimal" />
        <asp:Parameter Name="ReportedDate" Type="DateTime" />
        <asp:ControlParameter Name="UserName" ControlID="UserList" PropertyName="SelectedValue" 
                              Type="String" />
    </UpdateParameters>
                 

    However, I have made quite some changes to this screen,  so it is possible that this is no longer the same as what is in the vanilla starter kit. 

    If you run it in the debugger, it will tell you the parameter list that it is expecting.

     HTH Hyacinth.

  • Re: error using edit function

    05-24-2009, 11:26 PM

    Thats great

    Chetan Sarode
    Software Engineer,
    Approva Systems Pvt Ltd,
    Pune, India.
  • Re: error using edit function

    05-25-2009, 11:19 PM

    If you solved your query, please mark the answer, so it will help for other people

    Chetan Sarode
    Software Engineer,
    Approva Systems Pvt Ltd,
    Pune, India.
Page 1 of 1 (14 items)