Executing bind variable from Application module in ADF – Techartifact

Requirment- To execute the bind variable from application module- Or executing view criteria on page load

Solution- Assumption that you created a view object and view criteria .Now you have bind variable in view criteria.
You are passing the value using some managed bean stored in some scope.

Open the application module and go to data model .Select the the view object in which view criteria is this.Click on edit.

In the edit view instance dialog box.select the view criteria and shuttle to the right.now in the bind parameter value ,open the expression builder
and put right value like – “adf.context.sessionScope.LabelTemplate.taskId” .Here LabelTemplate is managed bean stored in session scope.

That all. Now run the page where you using view object.and page will load with result of bind variable.But note you cant use this VO anywhere where you don’t need a bind variable.

Enjoy coding with techaritfact

Method call between train flow in ADF | Techartifact

Requirment – To call the method between the train flow in ADF.

For this we need to use outcome property of view. You need to perform following activity.

Wildcard control flow leading to first activity of the train stop, CollateSurveyAnswers.

1. Drag and drop a wildcard flow in task flow.
2. Drag and drop a method call in the taskflow
3. create a navigation case between Wildcard control flow to method call activity.

4. The navigation case name between Wildcard control flow to method call activity is set to outcome property of the view from which you want to call
the method before navigating to that view. For example you are having view1, view2, view3 and view4 in train taskflow.
You want to execute method call before view3.Then you should set the outcome property of view3 to navigation case between Wildcard control flow to method call activity.

5. Create a navigation case from method call to that view.

Note:
The train stop outcome element is used only if an activity such as a method call activity or router is placed prior to the view activity train stop. The element allows you to specify a custom outcome that results in navigation to the train stop.

Enjoy Coding with Techartifact..

“java.lang.IllegalStateException: Attempt to validate an already invalid RegionSite” Error in ADF

Yesterday , I am working in region, I drag drop the table and so on.Suddenly i start getting this error -“java.lang.IllegalStateException: Attempt to validate an already invalid RegionSite”.

How to resolve this. Well there are many solution for this.

1. Check if the default activity is set on the taskflow included in the .jspx, if not try to set the default activity.
2. Check all bindings of page. if you not able to find it then delete it and create again.
3. Add the “-Djbo.debugoutput=console” in JAVA options of the Run/Debug/Profile to see the error
4. Check if all the library references for the UI project are proper and that is also accessible.
5. All The DB connection is available and active,the tables/views referenced are available in the D, All web services, if used, are active and accessible .