Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to avoid null fields when editing in ListGrid?

    Hi,

    I am facing the following problem, I have a grid with three column: iso, description, countryCode, iso is a pk. When I try to edit description or countryCode, the other one is null in the executeUpdate. There will only be values for both columns if I edit the two.

    How can I avoid that the value of the non-edited column be automatically setted to null?

    Thanks in advance.

    Vitor Eduardo

    #2
    as the docs say:
    By default, a grid will send only updated fields and primaryKey fields as part of DSRequest.data so that the server can discern which fields the user actually changed. However, the grid always includes the original field values in the dsRequest as DSRequest.oldValues.
    But I don't understand your question: are you saying that you the server logs something like values: {foo: null}, even if foo isn't an edited field?
    Could you please post sample code and server logs?
    Last edited by claudiobosticco; 4 Jul 2016, 06:16.

    Comment


      #3
      Hi, I am using the oldValues. Thanks.

      Comment

      Working...
      X