Visitors to VTC.com will be able to view all introductory videos for each training course.
Free Trial Members will gain access to first three chapters for each training course.
Full Access Members have full access to VTC.com�s entire library of video tutorials.
Our final task for the ToDo UI us to improve the category selection. You'll notice right now if we review a task, the category field has a combo box which is a drop down that you can also type in. You'll see when you click on the drop down arrow, nothing actually drops down. Let's go through and make sure we have some categories specified. You'll notice that they're not appearing, that might indicate we have a bug. Let us check the code. The update task method of the task edit window is responsible for assigning the values that are entered to the task class. You'll notice that we are not assigning the category so let's add that line of code. Now let's run the application and add some categories. Now even though we've entered categories, still nothing appears in the drop down list. We need to actually add code for that to work. To start with let's go to the task class, and let's add a new shared method. This method will get the categories and return them as a string array. The categories are stored in the task table, we only want to have each category once, so we will do select distinct on the category column and sort them. Now we will add each category to the array. Now we have a method that will get all the categories in the task table. Let's go back to the task edit window and create a new method called populate categories. This method will get all the categories and add them to the combo box. Next we will enable the auto complete property of the combo box. This will allow the text to auto fill if it is already in the drop down. Lastly we need to fill the categories, so we have to call the method here. Now let's run our project. We now see the drop down is working. If we create a new task and start typing you'll see the auto complete fills in based on what is already in the drop down.
| Course: | Real Studio |
| Author: | Paul Lefebvre |
| SKU: | 34190 |
| ISBN: | 1-936334-77-1 |
| Release Date: | 2011-02-02 |
| Duration: | 7 hrs / 87 lessons |
| Work Files: |
Yes |
| Captions: | No |
| Compatibility: |
Vista/XP/2000, OS X, Linux QuickTime 7, Flash 8 |