home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer) / NeXT_Developer-3.3.iso / NextDeveloper / Examples / DatabaseKit / OracleDemo / English.lproj / OracleDemo.nib / data.nib (.txt) < prev   
Encoding:
NeXT TypedStream Data  |  1994-07-19  |  6.7 KB  |  133 lines

  1. streamtyped
  2. IBObjectData
  3. Object
  4. CustomObject
  5. Application
  6. DBTableVector
  7. iiff*@@@
  8. deptNo
  9. Helvetica-Bold
  10. DBEditableFormatter
  11. DBFormatter
  12.     Helvetica
  13. TextFieldCell
  14. ActionCell
  15. DBTableView
  16. ScrollView
  17.     Responder
  18. [11@]
  19. Button
  20. Control
  21. ButtonCell
  22. Insert New Employee
  23. Delete Employee Record
  24. Save Changes in Employee
  25. ClipView
  26. DBGridView
  27. i@@@@@
  28. DBLayout
  29. @@ffcii
  30. location
  31. DBHeadingView
  32. DBHeadingCell
  33. Scroller
  34. _doScroller:
  35. @@@ffs
  36. i@@@@@::
  37. Fetch All Records
  38. Delete Department Record
  39. Save Changes in Department
  40.     TextField
  41. Department Table
  42. (Master)
  43. Employee Table
  44. (Detail)
  45. Insert New Department
  46. empName
  47. empID
  48. ciifffcfffs
  49. [2781c]{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
  50. \margl40
  51. \margr40
  52. {\colortbl;\red0\green0\blue0;}
  53. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b\i0\ulnone\fs36\fc0\cf0 OracleDemo
  54. \b0\fs24 \
  55. by Mai Nguyen, NeXT Developer Support Team\
  56. \b\fs28 Overview
  57. \b0\fs24 \
  58. The purpose of this example is to show some common  end-user operations in handling databases 
  59. \b without any need for Database Kit programming.
  60. \b0   \
  61.  In order to run this example, you need to have an Oracle server with a demo database installed. If you don't have an Oracle server, you can still follow the instructions on building the nib files to quickly put together a demo.\
  62.  In order to add a new record  either into the employee table or the department table, press on the appropriate 
  63. \b Insert 
  64. \b0 button and  type in the data into the tableview textfields. After each 
  65. \b Insert 
  66. \b0 operation, you need to explicitly 
  67. \b save 
  68. \b0 the record. Note that the unique keys for the Employee Record is the Employee ID, while the unique key for the Department Record is the Department No. Similarly, after a 
  69. \b delete 
  70. \b0 operation, you'll need to explicitly 
  71. \b save 
  72. \b0 the changes.\
  73. \fc1\cf1 \
  74. \b\fs28 Program Organization
  75. \b0\fs24 \
  76. \b How to build the nib files\
  77. 1) Build the Master TableView
  78. \b0 \
  79. Drag a DBTableView palette object into your main window. Drag a DBModule object into the IB suitcase. Select OracleDemo as the database model. Make the proper connections from the Deparment table  to the DBTableView. Set  the DBTableView to be editable via the Interface Builder Inspector Panel, so that data can be entered directly into its textfields.\
  80. \b 2) Build the Detail TableView\
  81. \b0 Same steps as for the Mater TableView. The only difference is that you need to drag another DBModule object into the IB suitcase, and make the proper connections from the Employee table to the DBTableView.\
  82. \b 3) Join the 2 tables
  83. \b0 \
  84. In order to join the 2 tables,  just drag and drop the employees relationship in the master DBModule onto the icon of the detail module in the NIB file. Note that employees will show up as a new connection of the Master DBModule under the Interface Builder Inspector Panel.\
  85. \b 4) Build the buttons\
  86. \b0 Note that the Fetch operation needs to be connected to the fetchAllRecords of the Master DBModule.\
  87. Each TableView has its own insert, delete, and save to save the records corresponding to that particular table.\
  88. \pard\tx560\tx1120\tx2060\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\fi-2060\li2060\fc1\cf1 \
  89. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\b\fc1\cf1 Note: 
  90. \b0 You can use this NIB file as is without any coding for demo purposes and run it using IB Test Interface Mode. 
  91. NXCursor
  92. NXImage
  93. NXibeam
  94. MenuTemplate
  95. *@*@ccc
  96. OracleDemo
  97. Matrix
  98. @:@iiii
  99. MenuCell
  100.     README...
  101. ff@@#::s
  102. DBModuleTemplate
  103. DBModule
  104. Department
  105. WindowTemplate
  106. iiii***@s@
  107. Window
  108. Employee
  109. README
  110. Panel
  111. Controller
  112. File's Owner
  113. View1
  114. MainMenu
  115. View11
  116. [20@]
  117. IBControlConnector
  118. IBConnector
  119. terminate:
  120. hide:
  121. DBTableConnector
  122. DBConnector
  123. fetchAllRecords:
  124. deleteRecord:
  125. saveChanges:
  126. insertNewRecord:
  127. IBOutletConnector
  128. delegate
  129. RMPanel
  130.     theWindow
  131. orderFront:
  132.     employees
  133.