CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

OnBeroreStepChanging Fires Twice with same 'newIndex'

by MCarver » 11 Nov 2016 16:39

While using the relatively new CGWizard I discovered what I consider a bug, or at least a behavior I don't understand. I first noticed it in my code and then confirmed it in the CG demo.

When switching sheets in the wizard, the OnBeforeStepChanging event fires, passing in the 'newIndex'. What I don't understand is why this event fires TWICE. And to complicate the issue, the second firing passes the same 'newIndex', which of course allows the same code (i.e. IF STATEMENT) to run as the first fire.

Is this a bug, or am I missing something? Please advise.

Regards,
Monte Carver
MCarver
 
Posts: 48
Joined: 27 Sep 2013 19:15

by Alexander Bulei » 11 Nov 2016 19:21

Hi MCarver,

I don't see this behavior here...
Please simulate it on attached project.

Best Regards.
You do not have the required permissions to view the files attached to this post.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by MCarver » 11 Nov 2016 20:42

In this revised demo, I simply extracted the content from the CG Demo (ie unit CGJQWizard).

This demo as does the public CG version obviously fires the event twice. Perhaps it is the use of
ManuallyNavigation:= True;

Please Advise,

Regards
Monte Carver
You do not have the required permissions to view the files attached to this post.
MCarver
 
Posts: 48
Joined: 27 Sep 2013 19:15

by MCarver » 16 Nov 2016 15:22

Any thoughts on this Post? That is the demo I provided?
Last edited by MCarver on 16 Nov 2016 16:01, edited 1 time in total.
MCarver
 
Posts: 48
Joined: 27 Sep 2013 19:15

by Alexander Bulei » 16 Nov 2016 15:32

Hi MCarver,

Fixed in jquery plugin, and will be available on next build.

Thanks.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to JQWizard

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.