User.php class that wraps all the
associated variables and maps to a corresponding Adobe
ActionScript class. The values are pulled directly from the
$user variable that is sent over as a generic
Object using the $user->value syntax. VDividedBox onto the stage. Then, drag a
DataGrid into it from the
Components window. Now select and drag the
getAllUsers() method from the
Data/Services tab and drop it on top of the
DataGrid. Switch to the Source view, and take a
look at the new code that was just generated for you.
Click here for larger image
Figure 9
DataGrid to be editable.) Next, select the
Make a new service call to get details
check box. The service you created earlier should already be
selected. In the Operation drop-down list,
select the getUser(userId:String):User[]
operation, as seen in Figure 10. When an item is selected in
the data grid, the corresponding information will be
displayed in the form that appears below it.
Click here for larger image
Figure 10
id property has been cleared so that no ID is
displayed in the form. However, you also have the option of
displaying the value of a field without making it editable
by selecting Text instead of
TextInput for the corresponding
Control type. Now, click
Finish.
Click here for larger image
Figure 11
DataGrid.
Click here for larger image
Figure 12