Archive Pages Design$type=blogging

How to Insert, Navigate and Delete Records in Oracle Forms ?

I have already described in my previous posts about creating oracle forms using wizards and creating list of values (LOVs) . In this post I...


I have already described in my previous posts about creating oracle forms using wizards and creating list of values (LOVs). In this post I am going to describe How to create buttons for Inserting, Saving, Navigating and Deleting records in oracle forms. Insertion, Deletion and Navigation functions are necessary for manipulating data within forms whether it is greed line view or form view or any other format. You can add those buttons by simply adding push buttons from toolbox to the form and adding PL/SQL query in the button trigger using PL/SQL editor. Here are some steps for adding buttons on the form.


 Steps for creating Insertion, Navigational and Deletion Buttons 


1. At first create a form as given in the post "How to Create Oracle Forms by Using Wizard ?"  then start to add the buttons on the form as given in the image below.

creating Insertion, Navigational and Deletion Buttons

2. Add push buttons in the form area from toolbox by clicking on it and drawing on the form. Then give a new name and label name as given in the image below from the Property Palette. You can open the Property Palette by right clicking on the button and clicking on Property Palette option.

Insert, Navigate and Delete Records in Oracle Forms

3. After renaming and labeling the buttons, go to Object Navigator and expand the button name by clicking on the plus sign, then click on Triggers option and click on + sign above to add new trigger. Find and select "WHEN-BUTTON-PRESSED" option and click on OK.

Using Triggers in Oracle Forms

4. A new PL/SQL editor window will appear as given below. Type the required query, save it and exit from the window. Repeat the same process for all the buttons you have created. The query commit; given in the image below is for saving records in the database.

PL/SQL editor window in Oracle Forms

5. Add the following PL/SQL queries in the PL/SQL editor for respected buttons.
  • Show Record:       execute_query;
  • Previous Record:  previous_record;
  • Next Record:        next_record;
  • First Record:        first_record;
  • Last Record:         last_record;
  • Insert Record:      create_query;
  • Condition:            enter_query;
  • Save:                    commit;
  • Delete:                 delete_record;
  • Exit Form:           exit_form;

6. After completing all the steps, run that form and test the buttons whether or not they are working.


 

Related Posts:


تعليقات

الاسم

Artificial Intelligence(AI) Backlinking Basic IT Best List Blogging Tips C C# C++ Computer Architecture Computer Fundamental Computer Security Computer/IT Officer Exam CSS Data Mining and Warehousing Data Recovery Tools Data Structure Database Management System E-commerce E-government Internet & Web Designing IT Law IT Tips and Tricks IT Tutorials Java JavaScript Keyword Research Tools MIS Multiple Choice Question (MCQ) Networking Online Earning Online IT Jobs Operating System Oracle Forms and Reports Programming Guide Programming Language SEO Social Networking Sites Software Download Software Engineering System Analysis and Design Top List VB.Net
false
rtl
item
Max5: How to Insert, Navigate and Delete Records in Oracle Forms ?
How to Insert, Navigate and Delete Records in Oracle Forms ?
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-GguYDxDOpsET4PJRNH_KEWf0gRgd8KgATjRzpu39iUfXKOQB2ruYCN17Yz9_6cJZjb4Pz1EGGOEgLBBBbzvLRp8rUDf4SgKuD6il9KdVSihO0CpbMkpqgNxP0hvJG-fCj8Gyr7yXqPvx/s1600/form-navigation-1.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-GguYDxDOpsET4PJRNH_KEWf0gRgd8KgATjRzpu39iUfXKOQB2ruYCN17Yz9_6cJZjb4Pz1EGGOEgLBBBbzvLRp8rUDf4SgKuD6il9KdVSihO0CpbMkpqgNxP0hvJG-fCj8Gyr7yXqPvx/s72-c/form-navigation-1.png
Max5
https://maxs27.blogspot.com/2014/02/how-to-insert-navigate-and-delete.html
https://maxs27.blogspot.com/
http://maxs27.blogspot.com/
http://maxs27.blogspot.com/2014/02/how-to-insert-navigate-and-delete.html
true
1760660989564394152
UTF-8
لم يتم العثور على اى مواضيع شاهد الكل اقرأ المزيد رد احذف الرد حذف بواسطة الرئيسية صفحات مواضيع شاهد الكل نوصى لك التسميات الارشيف بحث لم يتم العثور على ماتبحث عنه عودة للرئيسية الاحد الاثنين الثلاثاء الاربعاء الخميس الجمعة السبت الاحد الاثنين الثلاثاء الاربعاء الخميس الجمعة السبت يناير فبراير مارس ابريل مايو يونيو يوليو اغسطس سبتمبر اكتوبر نوفمبر ديسمبر يناير فبراير مارس ابريل مايو يونيو يوليو اغسطس سبتمبر اكتوبر نوفمبر ديسمبر just now 1 دقيقة مضت $$1$$ دقيقة مضت 1 hour ago $$1$$ ساعة مضت الامس $$1$$ يوم مضى $$1$$ اسبوع مضى اكثر من 5 اسابيع مضت