Page 1 of 1

ONLINE JADE TUTORIAL 2 PROBLEM!!!!

Posted: Fri Aug 07, 2009 2:46 pm
by ConvertFromOldNGs
by Adi >> Wed, 1 Oct 2003 12:56:22 GMT

OK i have done the Online Tutorial: Getting Started with JADE and completed it succesfully step by step as it is shown on this website...however in Tutorial: Going Further with JADE i have come accross some probelms...

On slide number 13 (load method explained) this code sentence

listBoxBooks.listCollection(myBorrower.myBooks, true, 0);

encounters a problems because the .listCollection wasnt anywhere created in the exercises? how do i overcome this 6026 error...

another error i have also encounered on the same part is in the method window where you can scroll thrrough the list of methods in the window....ok on the slide it shows there is a displayEntry method that can be coded but there is NO displayEntry method to click on so i can code it?

A solution for this would be greatful for this online exercise...i know its very small and consists of only two parts but i have just started to learn JADE and i need to overcome this problem so that i can start on my uni assignment asap...THANKS :)

Re: ONLINE JADE TUTORIAL 2 PROBLEM!!!!

Posted: Fri Aug 07, 2009 2:46 pm
by ConvertFromOldNGs
by cnwpjs1 >> Wed, 1 Oct 2003 22:17:28 GMT

Adi

In answer to your 2 queries

The 6026 error is likely to be because the myBorrower.myBooks collection does not exist - is it the myBooks that is highlighted by the compiler as part of the error? You are telling the listbox to laod from a collection and if it doesnt exist then you will get this error.

As far as the display entry - thats a method on the listbox, so you first need to select that listbox control (just select that control from all the controls in the middle pane of the browser window for that form) - then you should see the displayEntry method included in those in the browser window.

Hope this helps ... Peter

Re: ONLINE JADE TUTORIAL 2 PROBLEM!!!!

Posted: Fri Aug 07, 2009 2:46 pm
by ConvertFromOldNGs
by geoff >> Wed, 1 Oct 2003 23:32:21 GMT

As Allistair Melville has indicated in a reply to a duplicate posting, the problem is that the "listBoxBooks" control you painted on the form, following the instructions on slide number11, was not in fact a list box but more likely a text box. (If you look carefully at the diagram you will see the list box icon from the Painter toolbar.)

A text box, unlike a list box, does not have a "listCollection" method, which explains the 6026 error. Also a text box, unlike a list box, does not have a "displayEntry" event, which explains the absence of the the event method from the list.

Good luck with JADE. Geoff

Re: ONLINE JADE TUTORIAL 2 PROBLEM!!!!

Posted: Fri Aug 07, 2009 2:46 pm
by ConvertFromOldNGs
by Adi >> Thu, 2 Oct 2003 6:26:04 GMT

Yeah all the ppl that gave a reply to my prob and they know who they are :) are correct and have solved my problem..

THANKS HEAPS GUYS

Re: ONLINE JADE TUTORIAL 2 PROBLEM!!!!

Posted: Fri Aug 07, 2009 2:46 pm
by ConvertFromOldNGs
by Patwos >> Thu, 2 Oct 2003 7:55:19 GMT

It's probably too late to be of use now, but if you wanted to save some time you could have used the new Control | Change Type option to easily convert the TextBox into a ListBox control and retain it's name and all code that currently referenced it etc. Another one of the new Jade 6.0 features I'm finding very useful for converting controls in an existing system into new subclassed controls where required. :)

Hope that helps,
Pat.

Re: ONLINE JADE TUTORIAL 2 PROBLEM!!!!

Posted: Fri Aug 07, 2009 2:46 pm
by ConvertFromOldNGs
by LawnBoy >> Thu, 2 Oct 2003 21:17:51 GMT

Now that does sound like a cool feature.