Friday, 3 June 2016

Dependent LOV's on required fields in ADF

Very often it happened to implement dependent LOV's on required attributes in ADF. In this post i will show you how we can implements such use case. Implementing  dependent on non required attributes is quite easy.
Lets take Employees table from HR schema and create ADF BC on employees table. Am using jdev 12.2.1.

Step1. Create dependent LOV's on DepartmentId and LastName attribute and add the partial trigger on last name and auto submit = true on DepartmentId and run the page. Try to change the departmentId value from list and then the problem comes 

Issue: In some departments there is no employees Example 170 - Manufacturing then you will see some required validation message.

To fix such issues follow the below steps 

Step2: Create valueChange event on department id and place the below code 

Run the page.

Cheers :) Happy Learning :)

Saturday, 5 March 2016

Oracle MAF Pull to Refresh component

The new MAF 2.2 Version have various new components one of the them is Refresh component.
Instead of displaying a refresh button to a user, you can use this component to expose the concept of refreshing as a gesture. Use listView inside of this container. When the user drags their finger down anywhere within this container, a determination will be made to see whether any component between the container and the finger is not scrolled to its top. 

For more information about amx:refreshContainer follow oracle doc here

Step1: create a list view as shown below

Step2: surround list view component with amx:refreshContainer

Setp3: provide the required attributes to refresh container component

Output: Pull down the list view

Thanks :) Happy Learning :)