home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Examples / DatabaseKit / OracleDemo / English.lproj / OracleDemo.nib / data.nib (.txt) < prev   
NeXT TypedStream Data  |  1992-07-09  |  8KB  |  153 lines

  1. typedstream
  2. IBObjectData
  3. Object
  4. CustomObject
  5. Application
  6.     Responder
  7. ScrollView
  8. ClipView
  9. ciifffcfffs
  10. [3316c]{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
  11. \margl40
  12. \margr40
  13. {\colortbl;\red0\green0\blue0;}
  14. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b\i0\ulnone\fs36\fc0\cf0 OracleDemo
  15. \b0\fs24 \
  16. by Mai Nguyen, NeXT Developer Support Team\
  17. \b\fs28 Overview
  18. \b0\fs24 \
  19. The purpose of this example is to show some common  end-user operations in handling databases 
  20. \b without any need for Database Kit programming.
  21. \b0   \
  22.  In order to run this example, you need to have an Oracle server with a demo database installed.  You  also have to install the  
  23. \b OracleDemo.dbmodel
  24. \b0  from /NextDeveloper/Examples/DatabaseKit/models  into your 
  25. \b ~/Library/Databases
  26. \b0  directory, in order to establish the proper connections between the database model and the Database Kit UI Objects.  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.\
  27.  In order to add a new record  either into the employee table or the department table, press on the appropriate 
  28. \b Insert 
  29. \b0 button and  type in the data into the tableview textfields. After each 
  30. \b Insert 
  31. \b0 operation, you need to explicitly 
  32. \b save 
  33. \b0 the record. Note that the unique keys for the Em
  34. ee Record is the Employee ID, while the unique key for the Department Record is the Department No. Similarly, after a 
  35. \b delete 
  36. \b0 operation, you'll need to explicitly 
  37. \b save 
  38. \b0 the changes.\
  39. \fc1\cf1 \
  40. \b\fs28 Program Organization
  41. \b0\fs24 \
  42. \b How to build the nib files\
  43. 1) Build the Master TableView
  44. \b0 \
  45. 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.\
  46. \b 2) Build the Detail TableView\
  47. \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.\
  48. \b 3) Join the 2 tables
  49. \b0 \
  50. In order to join the 2 tables, drag and drop the employee table  from the detail  DBModule into the master DBModule. Note that employees will show up as a new connection of the Master DBModule under the Interface Builder Inspector Panel.\
  51. \b 4) Build the buttons\
  52. \b0 Note that the Fetch operation needs to be connected to the fetchAllRecords of the Master DBModule.\
  53. Each TableView has its own insert, delete, and save to save the records corresponding to that particular table.\
  54. \pard\tx560\tx1120\tx2060\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\fi-2060\li2060\fc1\cf1 \
  55. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\b\fc1\cf1 Other Peculiarities
  56. \b0 \
  57. In order to load an Adaptor dynamically, you need to add the
  58. \b  OTHER_LDFLAGS
  59. \b0  definition (see the 
  60. \b Makefile.preamble
  61. \b0 ). You also need to add the
  62. \b  libdbkit_s.a
  63. \b0  library into your
  64. \b  PB.project
  65. \b0  under 
  66. \b libraries
  67. \b0  in order to use the DBKit API. \
  68. \b Note: 
  69. \b0 You can use this NIB file as is without any coding for demo purposes and run it using IB Test Interface Mode. 
  70. NXCursor
  71. NXImage
  72. NXibeam
  73. Scroller
  74. Control
  75. _doScroller:
  76. @@@ffs
  77. WindowTemplate
  78. iiii***@s@
  79. README
  80. Panel
  81. leVector
  82. iiff*@@@
  83. empID
  84. Helvetica-Bold
  85. DBEditableFormatter
  86. DBFormatter
  87.     Helvetica
  88. TextFieldCell
  89. ActionCell
  90. DBTableView
  91. [11@]
  92. Button
  93. ButtonCell
  94. Insert New Employee
  95. Delete Employee Record
  96. Save Changes in Employee
  97. DBGridView
  98. i@@@@@
  99. DBLayout
  100. @@ffcii
  101. deptNo
  102. DBHeadingView
  103. i@@@@@::
  104. Fetch All Records
  105. Delete Department Record
  106. Save Changes in Department
  107.     TextField
  108. Department Table
  109. (Master)
  110. Employee Table
  111. (Detail)    
  112. Insert New Department
  113. empName
  114. Master-Detail
  115. Window
  116. MenuCell
  117.     README...
  118. Matrix
  119. @:@iiii
  120. Hide<
  121. Quit<
  122. ff@@#::s
  123. MenuTemplate
  124. *@*@ccc
  125. MasterDetail=
  126. DBModuleTemplate
  127. DBModule
  128. OracleDemo
  129. Employee
  130. Department
  131. Controller
  132. View11
  133. MainMenu
  134. File's Owner
  135. View1
  136. [19@]
  137. IBControlConnector
  138. IBConnector
  139. terminate:
  140. hide:
  141. DBTableConnector
  142. DBConnector
  143. fetchAllRecords:
  144. deleteRecord:
  145. saveChanges:
  146. insertNewRecord:
  147.     employees
  148. IBOutletConnector
  149. delegate
  150. RMPanel
  151.     theWindow
  152. orderFront:
  153.