- 195.9K All Categories
- 2.1K Data
- 208 Big Data Appliance
- 1.9K Data Science
- 447.2K Databases
- 220.7K General Database Discussions
- 23 Multilingual Engine
- 516 MySQL Community Space
- 463 NoSQL Database
- 7.7K Oracle Database Express Edition (XE)
- 2.9K ORDS, SODA & JSON in the Database
- 461 SQLcl
- 3.9K SQL Developer Data Modeler
- 185.8K SQL & PL/SQL
- 20.9K SQL Developer
- 292.4K Development
- 7 Developer Projects
- 120 Programming Languages
- 289.1K Development Tools
- 94 DevOps
- 3K QA/Testing
- 645.4K Java
- 21 Java Learning Subscription
- 36.9K Database Connectivity
- 150 Java Community Process
- 104 Java 25
- 22.1K Java APIs
- 137.8K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 14 Java Essentials
- 142 Java 8 Questions
- 85.9K Java Programming
- 79 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.2K Java SE
- 13.8K Java Security
- 197 Java User Groups
- 219 LiveLabs
- 34 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.8K Other Languages
- 2.3K Chinese
- 166 Deutsche Oracle Community
- 1.2K Español
- 1.9K Japanese
- 225 Portuguese
ADF 220.127.116.11 issue with separate Add Record page
I have migrated a web application from ADF 18.104.22.168 to ADF 22.214.171.124. The behavior for the "Add Record" is no longer working as expected. I have tried several different approaches and I cannot get the Add page functionality to work for 126.96.36.199.
The current functionality worked in JDev12.2.1 and 188.8.131.52; however migrating to 184.108.40.206 has introduced issues that I have not been able to find a resolution for.
The original code implemented a Search Page and a separate Add Page.
The Search Page has a RichTable containing a list of available records from the Employee table.
The RichTable is enclosed within a PanelCollection and contains Add and Edit buttons.
The Add button action navigates to a new page to Add an Employee Record. The Add Employee Page uses an <invokeAction> which executes the "createInsertRow" action which binds with the EmployeeViewIterator (EmployeeView) defined in the AddEmployeePageDef.
The EmployeeViewIterator is also used in the Employee Search Page.
The Add Employee Page is displayed, the new Row is created; however the page is displayed with the attribute values from the CurrentRow that was selected before calling the "createInsertRow" action.
When debugging the code, I can see the Iterator is refreshed 3 times.
The first time, the Iterator is refreshed and the First Row in the search results is set as the CurrentRow.
The second time, the Iterator is refreshed, it contains the New Row.
However before rendering the page, the Iterator is refreshed again and the Current Row has changed to whatever the Current Row was that was selected in the Employee Search Results table before selecting the Add Button.
The following code snippet is used in the EmployeeSearch.jspx file:
<af:button id="addButton" text="Add" action="AddEmployee" partialSubmit="false"/>
The following code is used in the AddEmployeePageDef.xml
<iterator id="EmployeeViewIterator" Binds="EmployeeView" RangeSize="10"
<invokeAction id="CreateNewRow" Binds="CreateInsert" Refresh="renderModel"
<action id="CreateInsert" Action="createInsertRow" RequiresUpdateModel="true"
Any help would be appreciated.