Search code examples
jsforacle-adfweblogic12cjdeveloper

Create Empty Form In Jdeveloper 12c


enter image description hereI am using J Developer 12 c. I want to create form but without any data fetched in.I want user to enter detail in form for submission.I have tried all online solution but they are for J Developer 11.I am not able to fetch an empty form.

When I run my form it automatically fetch record from the table.I have tried use create insert but i want form to be automatically fetched with new record every time page is run.


Solution

  • Add a CreateInsert action in your task flow on the way into you page. This will clear the fields for data entry. Look here.

    You need to understand the difference between commit and submit. You want to submit the pages - clicking a submit button - and then the page is processed and the EO/VOs are updated in memory.

    The Commit operation writes the in-memory changes to the datasource (database). So, you can submit pages 1-3 then using the same data control the fields will be populated with the entered data on page 4. Now the user can commit the changes. The Commit action is located in the operations for the AppModule-DataControl.

    This is the power of the ADF Data Control. Changes to fields are cached in memory and are available to any page and then those changes can be committed when you choose. Note, the Task Flow can control the transaction itself.

    Sounds like you need to learn the basics of ADF. I suggest this book and this set of resources I maintain for my students and these.

    And, if you will be doing a lot of ADF development, it is well worth your time to take our ADF course.

    (It also seems you are unaware of how stack overflow works. When you get an response that answers you question, you up-vote the answer, so it encourages those of us taking our time to answer you question for free to continue doing so. Please note that I answered your original question and Shay reinforced that answer. And I have now answered your second question, and provided links to resources to help you go further.