CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Is this a bug or I am I missing something?

by zsleo » 23 Jan 2017 08:34

IW 14.1.4 CGD 3.0.0.115

The code in this event is not working correctly - for me.

Code: Select all
procedure TiwcgjqfrmMedScriptTheraputic.JQDynaTreeJQDynaTreeOptionsSelect(Sender: TObject; AParams: TStringList);
begin
  iwcgjqmx2.Lines.Text := JQDynaTree.SelectedNodes[0];
end;


First time the event is triggered I receive a list index out of bounds.

Every time after the first trigger a value is returned but is the value for the item that was previously selected not the value for the new/currently selected item.

Advice please.
zsleo
 
Posts: 776
Joined: 03 Feb 2013 03:33

by Alexander Bulei » 24 Jan 2017 11:07

Hi zsleo,

First time the event is triggered I receive a list index out of bounds.


You should check the count of items :)

But anyway, it's a bug with order of execution of javascript.
Fixed and will be available on next beta build.
Thank you.

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

by zsleo » 24 Jan 2017 18:43

Thanks Alexander.

Didn't have count check because I did not think count would be less than zero after selected is triggered but I will add it

Thanks
zsleo
 
Posts: 776
Joined: 03 Feb 2013 03:33

by Alexander Bulei » 24 Jan 2017 18:44

Hi zsleo,

Didn't have count check because I did not think count would be less than zero after selected is triggered


Yes, and when uncheck? :roll:

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 JQDynaTree

Who is online

Users browsing this forum: No registered users and 3 guests

Contact Us.