To continue with this content, please log in with your Data Access ID or create a new account.
Cancel Data Access ID
You may not be authorized to see this content. Please contact Data Access Europe for more information.
Cancel Data Access Europe
You are not authorized to see this content.
Cancel Data Access Europe
Next lesson:
How to create select type and zoom views
Cancel

Building your own Search Engine

Lesson 2: Making a data source sortable by specific column indexes

  1. Open the DataFlex Studio.
  2. Open the Table Explorer on the left.
  3. Select CONNECT TO DATABASE TABLES from the DATABASE menu at the top to open a connection wizard.
  4. On the Database Selection screen specify the desired server and database. Select NEXT twice.
  5. On the Table Selection screen expand the Views directory, and select the previously made view (dbo.vwTrack). Select NEXT.
  6. On the Setup DataFlex Side Index screen choose the columns that uniquely identify the view to make it selectable (TrackID). Select NEXT three times, and then FINISH.
  7. The newly created view is now shown in the Table Explorer.
  8. Double clicking the view in Table Explorer will open it in the Studio, so that you can view its parts.
  9. Highlighting it, right clicking, and selecting VIEW TABLE will open the view as a table in its entirety.
  10. Also note it now has it’s own Data Dictionary attached to it.
  11. To make the data source sortable by a specific column indexes must be created.
  12. Double click vwTrack in the Table Explorer.
  13. One index, “TrackID,” is already shown in this example in the Indexes tab on the bottom of the Studio. To add additional indexes, elect ADD INDEX from the top menu in the ‘Indexes’ tab.
  14. Select the desired column from the drop down that appears. ‘TrackName’ for this example.
  15. To make it unique, click the empty row below ‘TrackName,’ and select ‘TrackID’ from the drop down that appears.
  16. This step is repeated twice more creating indexes for ‘AlbumTitle’ >> ‘TrackName’ >> ‘TrackID’ and ‘ArtistName’ >> ‘TrackID’ ultimately resulting in four indexes.
  17. Select the SAVE icon from the top menu.