Adding the source part
Next, add a visual part named CustomerListView to your application. In the Composition Editor, add a list part and attach its edges to the window. Change the title of the window to Customers - Source window.
Open the settings for the dragDropSpec property of the list part. In the Drag Drop Spec window, set the data type to Platform Drag Drop Spec, set canBeDragSource to true, and specify only XmDROPCOPY for dragOperations. Select OK and close the settings.
Go to the Script Editor and add a private instance script named allCustomers to CustomerListView:
allCustomers
^OrderedCollection new
add: (
Customer new
firstName: 'John';
lastName: 'Smith');
add: (
Customer new
firstName: 'Dick';
lastName: 'Jones');
add: (
Customer new
firstName: 'Harry';
lastName: 'Prince');
yourself
Save your script and return to the Composition Editor. So the collection of names displays in the list box, connect the items attribute of the list box to the allCustomers script. Note that when making the connection, you'll have to click on public to view the private scripts. Finally, save your work and return to the Organizer.
Last modified date: 01/29/2015