error using edit function RRS feed

  • Question

  • User1851275999 posted

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


    Wednesday, March 11, 2009 12:52 PM

All replies

  • User555306248 posted

    Can you post the error details

    Wednesday, March 11, 2009 11:22 PM
  • User555306248 posted

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

    Monday, March 30, 2009 11:19 PM
  • User555306248 posted

    Please refere sollowing post, if it is useful to you


    Monday, April 13, 2009 11:26 PM
  • User299798288 posted

    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

    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)

    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.

    Wednesday, May 13, 2009 1:46 AM
  • User555306248 posted

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

    Wednesday, May 13, 2009 11:23 PM
  • User299798288 posted

    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.


    Wednesday, May 13, 2009 11:46 PM
  • User555306248 posted

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


    Thursday, May 14, 2009 11:30 PM
  • User555306248 posted

    I hope this will help you

    Sunday, May 17, 2009 11:37 PM
  • User299798288 posted



    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.


    Monday, May 18, 2009 12:23 AM
  • User555306248 posted

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



    Monday, May 18, 2009 11:25 PM
  • User299798288 posted

    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:

        <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" />

    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.

    Friday, May 22, 2009 4:52 AM
  • User555306248 posted

    Thats great

    Sunday, May 24, 2009 11:26 PM
  • User555306248 posted

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

    Monday, May 25, 2009 11:19 PM