MELJUN CORTES Object-Oriented Base


Published on

MELJUN CORTES Object-Oriented Base

Published in: Technology
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

MELJUN CORTES Object-Oriented Base

  3. 3. Data is stored in tables. As an example, yoursystem address book that you use for your e-mail addresses is a table of the address bookdatabase. Each address is a data record,presented as a row in that table. The datarecords consist of data fields, for example thefirst and the last name fields and the e-mailfield.
  4. 4. Working with Tables
  5. 5. Creating a New Table With the Table Wizard In you can create a new table using the Table Wizard: •Open the database file where you want to create the new table. •In the left pane of the database window, click the Tables icon. •Click Use Wizard to Create Table.
  6. 6. Creating a New Table With the Design View Open the database file where you want to create the new table. In the left pane of the database window, click the Tables icon. Click Create Table in Design View.
  7. 7. Creating a New Table ViewSome database types support table views. A tableview is a query that is stored with the database. Formost database operations, a view can be used asyou would use a table.Open the database file where you want to create thenew table view.In the left pane of the database window, click theTables icon.Click Create Table View.
  8. 8. Table Definition Area
  9. 9. Field Name Specifies the name of the data field. Note the databaserestrictions, such as the length ofthe name, special characters and spaces.
  10. 10. Field typeSpecifies the field type.
  11. 11. DescriptionSpecifies an optional description. The row headers contain the following context menu commands:
  12. 12. Field propertiesDefines the field properties of the currently selected field.
  13. 13. Data Sheet data from a table, query, displayed in a row-and-column format.Click here to select Click here to select aall records columnRecordSelector Field Name Navigation Button
  14. 14. Working with Queries
  15. 15. If you often want to accessonly a subset of your data thatcan be well defined by a filtercondition, you can define a query.This is basically a name for thenew view at the filtered data. Youopen the query and see thecurrent data in the table layoutthat you defined.
  16. 16. • Creating Query using Design View To create a query, click the Queries icon in adatabase document, then click Create Query inDesign View. The lower pane of the Design View is where youdefine the query.• To define a query, specify the database field namesto include and the criteria for displaying the fields.• To rearrange the columns in the lower pane of theDesign View, drag a column header to a new location,or select the column and press Ctrl+arrow key.• In the top of the query Design View window, theicons of the Query Design Bar and the Design barare displayed.
  17. 17. Creating Query using Design View• If you want to test a query, double-click thequery name in the database document. The queryresult is displayed in a table similar to the DataSource View. Note: the table displayed is onlytemporary. Keys in Query Design View Key Function F4 Preview F5 Run Query F7 Add Table or Query
  18. 18. Working with Forms
  19. 19. Using forms, you can define howto present the data. Open a textdocument or a spreadsheet andinsert the controls such as pushbuttons and list boxes. In theproperties dialogs of the controls,you can define what data the formsshould display.
  20. 20. Creating a New Form With the Form Wizard In, you can create a new form using the Form Wizard:•Open the database file where you want to create thenew form.•In the left pane of the database window, click theForms icon.•Click Use Wizard to Create Form.
  21. 21. Creating a New Form ManuallyOpen the database file where you want tocreate the new form.In the left pane of the database window, clickthe Forms icon.Click Create Form in Design View.A new text document opens. Use the FormControls to insert form controls. Cont.
  22. 22. Click the Forms icon to access all forms that were created from within the current   database window. In addition, you can   use the Form Controls icons to add   database form controls to any Writer or   Calc document, but these documents will  not be listed in the database window.
  23. 23. Working with Reports
  24. 24. •A report is a Writer text document that canshow your data in an organized order andformatting.•In Base, you have a choiceto create a report either manually using drag-and-drop in the Report Builder window, orsemi-automatic by following a series ofdialogs in the Report Wizard.•The following list gives you some informationto decide which method to use for your data:
  25. 25. Report Builder Report WizardStarted by "Create Report in Started by "Use Wizard to Create Report"Design View" command. command.Full flexibility to use report Uses a Writer template to generate a reportheaders and footers, page document.headers and footers, multi-column reports.Use drag-and-drop to position Select from several given choices to arrange thethe record fields or other design data records.elements like pictures or lines.Generates a one-time snapshot You can choose to generate a one-timeof the data. To see an updated snapshot with fixed data, or a "live" report withreport, execute the same report links to the current data at the time when youagain to create a Writer open the Base file.document with the updateddata.Saves the report as a Writer Saves the report and the information how totext document. Stores the create the report inside the Base file.information how to create thereport inside the Base file.Choose Open in the context Choose Open in the context menu or double-menu or double-click the report click the report name to either see again thename to create a new report static snapshot of the data from first creationwith the current data. time, or to create a new report with the current data. This depends on your choice on the last page of the wizard.Choose Edit in the context Choose Edit in the context menu of a reportmenu of a report name to open name to edit the Writer template file that was
  26. 26. Creating a New Report ManuallyIn Design View•Open the database file where you want to createthe new report.•In the left pane of the database window, click theReports icon.•Click Create Report in Design View.•Follow the instructions in the Report Builder guide.
  27. 27. Creating a New Report With the Report Wizard Open the database file where you want to create the new report. In the left pane of the database window, click the Reports icon. Click Use Wizard to Create Report. Follow the steps of the Report Wizard to create the report.