Results 1 to 6 of 6

Thread: Line Request_Delete: Not updating Header data on DEO !?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Location
    New Zealand
    Posts
    1,452

    Question Line Request_Delete: Not updating Header data on DEO !?

    Hi,

    We are seeing a scenario never seen before, where on deleting the "line" item on a dbCJgrid, the "header" totals are not being updated on the forms! Although, the database fields are all correct but the screen dbforms are not being updated.

    Has anyone seen such a behavior ?

    Our Structure:

    INV
    --> INVITM

    Code:
    // note: Server is INV_DD
    Object oINV_TOTAL_PURCHASE is a dbForm
      Entry_Item INV.TOTAL_PURCHASE
      Set Location to 9 143
      Set Size to 13 60
      Set Label to "Total$:"
    End_Object
    When a line is created/updated in the Grid (INVITM_DD) all is good.


    the oINV_TOTAL_PURCHASE object receives a "Refresh method with MODE_SAVE " message,
    and then, receives the "Set value" message
    and then, receives the "set Local_value" message

    But, when a line is deleted in the Grid (INVITM_DD) then the dbform doesn't update its value although receiving the "refresh" message


    the oINV_TOTAL_PURCHASE object receives a "Refresh method with MODE_DELETE" message,
    and then, it never receives the "Set value" message nor the "set Local_value" message.

    I can force the update by doing the following, but I should not need to.

    Code:
    // note: Server is INV_DD
    Object oINV_TOTAL_PURCHASE is a dbForm
      Entry_Item INV.TOTAL_PURCHASE
      Set Location to 9 143
      Set Size to 13 60
      Set Label to "Total$:"
    
      Procedure Refresh Integer notifyMode         
        Forward Send Refresh notifyMode            
        Set Local_Value 0 to INV.TOTAL_PURCHASE    
      End_Procedure                                
    
    End_Object

    Anyone has ideas why !?
    Last edited by raveens; 21-Jul-2019 at 02:09 AM.
    Regards,
    Raveen Sundram

    Software Development Manager
    Excellent Software Ltd
    Auckland, New Zealand
    www.xls.co.nz

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •