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:


Lesson 4: Working with non-data in RDS

  1. Start with designing the report with the DataFlex Reports studio, using the new report wizard and select the Runtime Data source.
  2. This opens a dialog in which the RDS table name and the columns need to be entered.
  3. After closing the dialogue, the newly created RDS table structure, needs to be added to the report.
  4. Press next, select all the colums from the runtime data source, and add them to the details section of the report.
  5. Skip the apply filters tab, change the papersize to A4.

    And finish the wizard.
  6. You can now improve the layout and enter some test data, by using the new feature in Data Flex Reports, the RDS sample data dialog.
  7. The DataFlex Reports studio sends the data to the DataFlex reports OCX, which will produce the preview.
  8. Save the report in the RDS demo workspace and switch over to the DataFlex studio. 
  9. The DataFlex Reports integration wizard helps to get started with the integration.
  10. Connect to an existing report. Select the new report previously created, the preview makes sure that we selected the right report.
  11. Accept the defaults for the component names and also skip the selection and sort field pages.
  12. For this plain result, choose modal dialog.
    Skip the next steps and finish the wizard. 
  13. The results of the wizard are loaded in the DataFlex studio, the wizard couldn’t complete all the code because it doesn’t know what data should be placed in the RDS array.
  14. Therefor go to the “to do” item that was created by the wizard. 
  15. The commented source code starting at line 117 and ending on line 122 needs to be replaced with logic to find the number of used rows in the tables of the database.
  16. This information is stored in the 2 dimension array, named vData. Compile the application to let the preview show the real data.
  17. In this course you have learned how RDS works in DataFlex reports, RDS is very powerfull as it allows you te pre-process data or collect data that is not stored in a traditional database. RDS puts you as a programmer in charge, and with the new features in DataFlex Reports 4.0 and up, it makes your work easier and less time consuming.