This action might not be possible to undo. Are you sure you want to continue?
Forms 6i - Practice
Display all items except Ord_Id on the CV_order canvas. 3. Create a new block by using the data block wizard.Practice 1. Display the S_ord block on a new content canvas called CV_Order and show just one record at a time. Use the form style layout. Exit runtime and return to Form Builder.Oracle Forms 6i . Create a new block by using the data block wizard. Display 6 records in this detail block on the same canvas as the master block. Create a new Form module. Run your form module and execute a query. Use a tabular style layout and include a scrollbar. Navigate through the fields. 2. Create a new form module. Set the frame titles to Orders. . Base it on the S_ord table and include all columns except Total. Create a new single block by using the Data Block Wizard Base it on S_Customer table and include all columns Display the S_customer block with a form style layout on a new content canvas called CV_Customer and show just one record at a time. Base the block on the S_item table and include all columns. Create a relationship and select the master block S_ord. Set the frame title to Customers. 4. Save the new module to a file called Customers.
Create anew block manually a rename it to Control. Ensure that line items records can be deleted independently of any related inventory. Insert Allowed. On the S_item block change the prompt for the Quantity Shipped item to Shipped by using the reentrant Layout wizard. Save the new module to a file called ORDERS. Create a Control block on the Customers form. First select the relevant frame in the Layout Editor. Create a new block based on S_inventory (Do not create any Relationship with other blocks at this time) to display on a different canvas. In the S_inventory data block. 8. Exclude the Out_of_stock_explanation column from the definition. 9. Set the query data source type property to none. Query Allowed. 10. Leave other properties as default. Navigate through the blocks so that you see the S_inventory block 11. 6. Set the database Data block. then use Layout Wizard. Use a tablular style layout and include a scrollbar. Update Allowed and Delete Allowed to NO. Base it on S_inventory table. Execute a query. . Create a relation called S_item_S_inventory explicitly between the S_item and S_inventory blocks. Display four records in this block and ensure that they display on a new content canvas called CV_Inventory. 7. Set the coordination so that the Inventory block is not queried until you explicitly execute a query.5. Save and Compile your form module. change the prompt for Amount in Stock to In Stock by using Layout Wizard.
In Customers form remove the Region ID item. when the user uses [Next Item] to exit the last item of a record in the S_item block. 18. 16. 19.12. Ensure that the current record is displayed differently from others in both S_item and S_inventory blocks. Create a visual attribute called Current_Record. . Ensure that the records retrieved in the S_customer block are sorted by Customer’s ID. 14. Set the database Data block. Ensure that records retrieved in the S_item block are sorted by the Item_ID. change the number of records displayed to 4 and resize the scrollbar accordingly. Use multiple selection feature on both data blocks to set the relevant block property to use this visual attribute. Set the query data source type property to none. Save and run the Customers form. Using the color picker set the Foreground and Background colors. 13. 17. Make sure that the Comments item allows multilane text to display. Leave other properties as default. Insert Allowed. 20. Set the property that causes automatic navigation to next record. 15. For the S_item block. Create a Control block in Orders form too. Query Allowed. Update Allowed and Delete Allowed to NO. Save and compile the Orders form and check the effects of the properties you have set. 21.
update or query operations on this item and make sure that navigation is possible only by means of the mouse. compile and run the form to test. Ensure that this item is not associated with s_ord table. In S_inventory block. so that it displays the current date whenever a new record is entered. create a new text item called item_total. new customer number for each new record and ensure that it cannot be changed.update or query operations on this item and make sure that navigation is possible only by means of the mouse. Do not allow insert. Allow numeric data only and display it using a format. Do not allow insert. In Orders form . Display the item on the CV_order canvas. Set the relevant property for date_ordered . Use a database sequence. alter the number of instances of the Product_ID so that it is displayed just once.22. . In S_ord block create anew text item called Sales_rep_name. Automatically display a Unique. 29. Ensure that it is not associated with s_ord table. Display the item on the CV_order canvas. 27. S_ord block create a new text item called Customer_Name. Save and compile your forms module. 26. Display this item on the CV_Order canvas. Do not allow insert. save . 28. 23. In the S_Item block .update or query operations on this item and make sure that navigation is possible only by means of the mouse. 25. Ensure that this item is not associated with s_item table. 24.
30. 33. create an LOV to display sales representatives numbers and their names. Save . Id. Set the title to Comments. 34. Change the name of Lov to Products_lov. Excellent to represent database values of POOR. 31. Ensure that new records are . 35. Concatenate the first_name and last_name columns and give an allias such as Name. For Id column. In Customers form. Change the name of Lov to Sales_rep_lov. Attach the LOV to the sales_rep_id item in the s_customer block. Save and compile your form. set the return item to S_item. 36. In Customers form create an editor and attach it to the comments item. compile and run the for to test the changes. GOOD and EXCELLENT. Set the checked state to represent the base table value of Y and the unchecked state to represent N. For ID column set the return item to S_customer. using the LOV wizard.sales_rep_id. Use the S_product table. Attach the LOV to the Product_id item in the S_item block. Ensure that new records display the initial value GOOD. 32. Add list elements of Poor. First_name and last_name columns. Use S_emp table. convert the order_filled text item into a check box. In Orders form. In the Customers form. Display any other values as poor. Good. In Orders form create an LOV using LOV wizard to display product numbers and descriptions to be used with the Product_id item in the S_Item block. convert the Credit_rating text item into a popup list item. Id and Name columns. Change the background and foreground colors of the editor.product_id.
price. 42. 38. Make S_item. Compile and run both the forms to test the changes. Add text payment type to describe the radio group’s purpose. Set the no of items displayed property to 1. item called 41. Set formula property to :S_item.quantity_shipped* :S_item. 39. 43.total a summary item and display summaries of the . create an iconic button called Product_lov button. Create a single record image Product_image in the S_item block. Set Calculation mode property to Formula. Set the key board navigable property to No. In the S_item block of Orders form. To display the total of the item totals create a new non database item to the screenshot. This should synchronise with the description item. 37. Allow only those records with order_filled values of Y or N to display.automatically assigned the value N. In the Control block of Orders form . Define access keys of S for Cash and T for Credit. set the following properties for the item_total item in the S_item block. Create another display item. To display item_total information. Set both key board navigable and mouse navigate property to No. Ensure that the new records display the default of Cash. Convert the payment_type text item into a radio group. 44. 40. Save. Image description. create a display item called Description. in the S_item block. Add radio buttons for Cash and credit to represent database values of CASH and CREDIT.
In Orders form . Make sure it will not obscure the first enterable item. Compile the form . Position the view of the stacked canvas so that it appears in the center of Win_order. Place some application help text in this canvas. Show_help_button and Exit_button and place them on the tollbar canvas. run and save. 49. make it standard toolbar for that window. create a new window called Win_inventory suitable for displaying the Cv_inventory canvas. 46. Change the name of the window to Win_customer and change its title to Customer Information. Stock_button. create a horizontal toolbar canvas called toolbar in the Win_order window . Modify the window in the Customers form. Create a stacked canvas named CV_help to display help in the win_order window of the Orders form. 47. 53. Save and compile the forms and test. 52. Set the window title to Stock Levels and the hide on Exit property to Yes. 50. . Create three buttons in the control block. 51. Associate the cv_inventory canvas with the window Win_inventory. 45. Organize Cv_help so that it is the last canvas in sequence.item_total values in S_item block. Modify the window in Orders form. Ensure that you have to set the query all records property to Yes in the S_item block. Set the key board navigable property to No. 48.
61. Create a button called Hide_help_button. . 59. Modify the Customers form in order to use a tab canvas. 58. Use the Hide_view built-in to achieve this. 57. Reorder the items as per tab page sequence. write a trigger to display the Sales_rep_lov when Sales_rep_lov button is pressed.Show_help_button that uses the show_view built-in to display cv_help. In Customers form. 62. Create a when button pressed trigger on the Control. 63. Rename this tab canvas as tab_customer. In the layout editor.54. Billing and Comments. 56. Compile and run to test. Create a When-button-pressed trigger Control.Hide_help_button that hides the Cv_help. Save. Create a tab canvas. 60. Switch off the visible property of cv_help. delete the frame object that covers S_customer block. Create a When-window-closed trigger at the form level in oreder to exit from the form. In Orders form . Create 3 tab pages and label them as Address. Write a trigger that exits the form when exit button is pressed. We will add the code later. 55. Display this button on the Cv_help canvas. write a trigger to display Products_lov when the products_lov button is selected. then create a button in the control block to hide the help information when it is no longer needed.
Write a trigger that fires when Image button is pressed. 68. If the current value is true. Alter the When-button-pressed trigger on the Control. yes and no. Leave the message property blank. The code should verify current value of the visible property of the product image item. 66. Set label property to Image Off. Create a When-button-pressed trigger on Control. Alter the When-radio-changed trigger on payment_type to show the payment_type_alert instead of message when the customer must pay cash. allowing only thsose customers with good or excellent or excellent credit_rating to pay for orders on credit.64. create a new button called image_button and position it on the toolbar. 71.Exit_button that uses the Question_alert to ask operator to confirm that the firm should terminate. Use SET_ALERT_PROPERTY built-in.Stock_button that uses the Go_block built-in to display the S_inventory block. Create a generic alert called Question_alert that allows Yes and No replies. Create an Alert in Orders form called Payment_type_alert with a single OK button. In the Orders form write a trigger that fires when the payment type changes . Select the Stop style and define two buttons in the alert. The message should read this customer must pay cash. 67. . the visible property toggles to false for both product image item and Image description item. 69. Finally the label changes on the Image_button to reflect its next toggle state. 65. 70. In the Control block.
Hint: Write a Whencheckbox-changed trigger. 79. 76. Adjust the default query interface. In the Orders form. Add a checkbox called Control. Open the Customers form module. 73. 80.72. In Orders form write a trigger that populates the Customer_name and the Sales_rep_name for every row fetched by a query on the S_ord block. Ensure that Exit_button has no effect on the enterQuery mode. write a Validation trigger to check that the date_shipped is not before date_ordered. . Ensure that When-radio-changed trigger has no effect on enter-Query mode. 78. Fail the trigger if the Customer is not found. Write a trigger that populates the description for every row fetched by a query on the S_item block.Exact_match to the form so that the user can specify whether or not a query condition for a customer name should exactly match the table value. 77. In the Customers form cause the Sales_rep_lov to display whenever the user enters a sales_rep_id that does not exist in the database. 74.Case_sensitive to the form so that the user can specify whether or not a query for a customer name should be case sensitive. In Orders form. 75. create a trigger to write the correct values to the Customer_name. Add a check box called Control. Sales_rep_name and Sales_rep_id items whenever validation occurs on Customer_id. Save . compile and run the form to test.
Create a similar trigger on S_item block that assigns the Item_id when a new record is saved. Write an On-logon trigger to control the number of connection tries. Define the same trigger type and code on the s_ord block. Write a trigger that fires as the cursor arrives in each record of the s_item block and populate the product_image item with a picture of the product. alter the triggers that populate the Product_image item when the image item is . Save.Id with the next available value from a sequence. write a transactional trigger on the s_ord block that populates S_ord. Use a function for this purpose. Create a Pre-insert trigger that assigns a value from this sequence. Create another validation trigger on S_item. 85. In Orders form . Use the LOGON_SCREEN built-in to simulate the default login screen and LOGON to connect to the database. 87. 82. 83. Derive this number by adding to the current highest item_id for the order. This will display the image for the first line item’s product if the operator changes the displayed order. Fail the trigger to display a message if the product is not found. 88. if one exists.product_id to derive the name of the Product and the suggested wholesale price and write them to the Description item and the price item. 89. Perform the action in a Pre-insert trigger.81. compile and run the form to test . In Orders form. 84. Open the customers form module. Write a When-new-form-instance trigger on the orders form to execute a query at the form startup. 86.
Use Find_(object) built-ins. Save. Add a test in the code to check Product_image. 90.displayed. compile and run the forms to test. Perform the trigger actions only if the image is currently displayed. Use Get_item_property built-in function. 91. . Alter the When-Button-pressed trigger on the image_button so that object Ids are used.
This action might not be possible to undo. Are you sure you want to continue?
We've moved you to where you read on your other device.
Get the full title to continue listening from where you left off, or restart the preview.