Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#3553 X_????.save() !!!!!

R2.5.2
closed-works-for-me
Jorg Janke
7
2006-03-31
2006-03-23
wissem sfar
No

Hi Mr Jorg

My probleme consists in updating data in table :
my table is TableName
my class model is X_TableName

I instanciate an object "OBJECT" from this class
I make my modification on OBJECT :
OBJECT.setISLAUNCHED(true);
then I make the update
OBJECT.save();

but the date is not updated in the database !!

Please can you help me ??

Discussion

  • wissem sfar
    wissem sfar
    2006-03-23

    • assigned_to: nobody --> jjanke
    • priority: 5 --> 7
     
  • Jorg Janke
    Jorg Janke
    2006-03-24

    • status: open --> pending
     
  • Jorg Janke
    Jorg Janke
    2006-03-24

    Logged In: YES
    user_id=87038

    - I assume the class is generated by GenrateModel

    - Re-create system and see if you can modify & save via the
    user interface (and that the class is used (otherwise you
    get a warning).

    - Then try it via API and if it is not working, use a
    debugger.

     
  • Jorg Janke
    Jorg Janke
    2006-03-24

    Logged In: YES
    user_id=87038

    *** Status set to PENDING *** If the issue solved, please CLOSE
    this request - otherwise set the status back to OPEN (we only
    check OPEN items). If there is no reaction within a week, the
    system will automatically CLOSE it. To speed up response time,
    you may want to consider a support agreement.
    ***

     
  • wissem sfar
    wissem sfar
    2006-03-24

    • status: pending --> open
     
  • wissem sfar
    wissem sfar
    2006-03-24

    Logged In: YES
    user_id=1271366

    Yes the class is genetrated by GenerateModel.
    And it's used for the update ... I get no warning telling
    that no PO is found for the table.

    The method save() returns 'true' but the data doesn't change
    physiquely in the DB.

     
  • Jorg Janke
    Jorg Janke
    2006-03-25

    • status: open --> pending-works-for-me
     
  • Jorg Janke
    Jorg Janke
    2006-03-25

    Logged In: YES
    user_id=87038

    Well, if that would be a problem, the entire apps would not
    work. So, use a debugger to find out :-/
    There are tons of examples - a simple see in project
    extensions.

     
  • wissem sfar
    wissem sfar
    2006-03-27

    • status: pending-works-for-me --> open-works-for-me
     
  • wissem sfar
    wissem sfar
    2006-03-27

    Logged In: YES
    user_id=1271366

    Please show me URL to debugger. I don't know where is it.
    Thanks in advance.

     
  • wissem sfar
    wissem sfar
    2006-03-27

    here is the trace file with debugger

     
    Attachments
  • wissem sfar
    wissem sfar
    2006-03-29

    Logged In: YES
    user_id=1271366

    I still have no solution Mr Jank.
    Please have a look on the attached file.

     
  • wissem sfar
    wissem sfar
    2006-03-29

    Logged In: YES
    user_id=1271366

    I still have no solution Mr Jank.
    Please have a look on the attached file.

     
  • Jorg Janke
    Jorg Janke
    2006-03-31

    • status: open-works-for-me --> pending-works-for-me
     
  • Jorg Janke
    Jorg Janke
    2006-03-31

    Logged In: YES
    user_id=87038

    Sorry, I cannot debug your code. Don't see any issue in the
    trace. What you did is what we demo in every technical
    training and so far, there was never an issue. Your issue
    might be a database or environment issue - Sorry - if you
    touch code - you need to debug it.

     
  • wissem sfar
    wissem sfar
    2006-03-31

    Logged In: YES
    user_id=1271366

    thanks.

     
  • wissem sfar
    wissem sfar
    2006-03-31

    • status: pending-works-for-me --> closed-works-for-me