1. Brian Greiman
  2. PowerBuilder
  3. Tuesday, 17 July 2018 21:53 PM UTC

Has anyone else seen an issue with events not triggering in the same order between versions?  I am specifically seeing an issue when our application is launching - a tab control has different behavior in order of when selectionchanging and selectionchanged events are getting called in different versions.  Any help or guidance appreciated.



Ken Guo @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 18 July 2018 06:21 AM UTC
  2. PowerBuilder
  3. # 1

Hi Brian,

We’d recommend you to open a ticket in the Appeon ticketing system at https://www.appeon.com/standardsupport/ and attach a PB sample that can reproduce this issue so we could have a closer look at it.




There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 18 July 2018 01:36 AM UTC
  2. PowerBuilder
  3. # 2

Hi Brian;

     The change of event firing actually happened in your case with PB 12.0 by Sybase. There was also a small tweak in v12.5.2 as well by SAP.

    The key to remember is that throughout PB's history at various times, event firing order changed due to new PB features or when PB was realigned to newer MS-Window versions. That leaves me with one key message for you ... never trust the Constructor or Open events when referencing other related objects or trust in the order of the initial events when instantiation is being performed.

    The best remedy that I have used in PowerScript coding since PB 1.0 is to always use either a PostContructor and/or PostOpen event for object class initialization. Never use the OTHER event (unless you really know what you are doing) - that goes for System Mapped events as well. Where critical operations are being performed on an object and you wish your PowerScript to participate ... try POSTing a user event after the fact. These approaches have allowed by PB App's to standup to the test of time - or should I say PB & O/S versions. This strategy has also come in handy when transposing PB Apps into either a PowerServer Web or Mobile App as well. 


Regards ... Chris

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.