NetTalk Central

Author Topic: Parent Child Refresh - on delete  (Read 2871 times)

MyBrainIsFull

  • Full Member
  • ***
  • Posts: 134
    • View Profile
Parent Child Refresh - on delete
« on: January 14, 2015, 07:17:34 PM »
Hi Bruce, follow up, still a problem
Your suggestion regarding the update of the child parent worked, but if you delete a record in the child it does not recognise that the child has changed.  - See image

I thought if I set a condition on the red-X button that says the child has changed, your original idea would work, but what?

I tried these three options, but the parent is not picking up that the child has changed.

Words of wisdom please

1,      loc:stage = net:web:GenerateTable + net:web:UpdateNav
 
2.      p_web.SetOption(loc:options,'formChange','')
           
3.      p_web.PushEvent('childupdated')
         do AlertParent   ! propogate event up
         p_web.PopEvent()


[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Parent Child Refresh - on delete
« Reply #1 on: January 16, 2015, 12:06:40 AM »
On a normal delete button it works fine. On your custom button trying to mimic a delete - not so much. That's because your button is inadequate :). A much better idea is to use the standard delete button...

cheers
Bruce