Announcement

Collapse
No announcement yet.

[SOLVED]bug in form editable grid

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • [SOLVED]bug in form editable grid

    WHEN I DELETE A ROW IN AN EDITABLE GRID, IN ONAFTERDELETE EVENT I TRIGGER A CODE TO UPDATE OTHER TABLE USING A FIELD IN THE DELETED ROW.

    BUT ALWAYS THE VALUE OF THESE FIELD IS EQUAL TO THE LAST RECORD READED IN THE EDITABLE GRID.

    I HAVE TO CREATE A NEW FIELD, AND ADD CODE IN ONNAVIGATE, ONLOADRECORD, ONVALIDATE, ETC. TO COPY THE VALUE OF "PERMANENT" FIELD TO THE NEW "TEMPORAL" FIELD AND USE THESE TEMPORAL FIELD IN THE PIECES OF CODE AND NOW ALL WORK OK, BUT IT IS A BUG !!!

    AQUILES


  • #2
    Re: BUG IN FORM EDITABLE GRID

    Hello Aquiles,

    That happens because it was the last record SC loaded on your application. onAfterDelete() doesn't sets the {field} value to the deleted value.

    regards,
    Bernhard Bernsmann

    Comment

    Working...
    X