1. Tracy Lamb
  2. PowerBuilder
  3. Tuesday, 6 July 2021 20:37 PM UTC

Hi all,

I'm writing a new event to be called from the RMB Menu.  I noticed that I can't seem to override the ancestor scripts.  This is true for older event too... I recently upgraded from PB12 to PB19... now all my rbuttonup events are showing the ancestor RMB menu, then mine.  I followed the directions on all events, and made sure that the Extend Ancestor Script in the Edit menu was un-checked. No luck at all...

Any ideas?

TIA,

Tracy

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 6 July 2021 20:47 PM UTC
  2. PowerBuilder
  3. # 1

Hi Tracy;

  I am not having any such issues in my framework and I do a lot of what we call "Over-ride with Call Back" and I have no issues. For example ...

 

  What PB2019 release are you using? I am on PB2019 R3 build 2703 ?

Regards ... Chris

Comment
  1. Tracy Lamb
  2. Tuesday, 6 July 2021 22:18 PM UTC
I think I solved the problem...

My inheritance structure is pfc_u_dw -> u_dw -> u_my_dw

I had to add "return 1" to u_dw ... the ancestor script was already overridden

  1. Helpful
  1. Chris Pollach @Appeon
  2. Tuesday, 6 July 2021 23:18 PM UTC
Yes, if you have ancestor (s) whose code is overriden - then you might need to account for that in a lower level ancestor.
  1. Helpful
There are no comments made yet.
Tracy Lamb Accepted Answer Pending Moderation
  1. Tuesday, 6 July 2021 21:10 PM UTC
  2. PowerBuilder
  3. # 2

I'm using PB2019 R3 build 2703 also.  File attached...

 

 

Attachments (1)
Comment
There are no comments made yet.
Tracy Lamb Accepted Answer Pending Moderation
  1. Tuesday, 6 July 2021 22:19 PM UTC
  2. PowerBuilder
  3. # 3

I think I solved the problem...
My inheritance structure is pfc_u_dw -> u_dw -> u_my_dw
I had to add "return 1" to u_dw ... the ancestor script was already overridden

Comment
  1. Armeen Mazda @Appeon
  2. Tuesday, 6 July 2021 22:49 PM UTC
Thanks for sharing the solution!
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.