Showing posts with label ADF Java Code. Show all posts
Showing posts with label ADF Java Code. Show all posts

Friday, December 30, 2016

How to make aggregate functions using Oracle ADF - Arabic


 بسم الله الرحمن الرحيم
اللهم علمنا ما ينفعنا وانفعنا بما علمتنا يا رب العالمين
---------------
ان شاء الله اليوم هنتكلم علي 
How to make aggregate function using oracle ADF
Like : Sum , Count , Avg , Min , Max ...

Sum , Count , Avg , Min , Max

Wednesday, February 18, 2015

Get Old or New value from any item Oracle ADF

بسم الله الرحمن الرحيم
اللهم علمنا ما ينفعنا وانفعنا بما علمتنا يا رب العالمين
---------------
موضوعنا اليوم عن Get Old or New value from any item Oracle ADF  ...


اوقف علي af:inputText ومن properties ومن behavior اختار ValueChangeEvent 
ضيف الميثود وبكدا تقدر توصل لقيمة الجديدة والقديمة من اي items ...

Wednesday, January 7, 2015

Some Important Code for backing beans ADF & JSF

بسم الله الرحمن الرحيم
اللهم علمنا ما ينفعنا وانفعنا بما علمتنا يا رب العالمين
---------------
موضوعنا اليوم عن Some Important Code for backing beans ADF & JSF  ...


 
// print the roles of the current user
for ( String role : ADFContext.getCurrent().getSecurityContext().getUserRoles() ) {
   System.out.println("role "+role);
}

Tuesday, January 6, 2015

Write JavaScript To Client Oracle ADF Programmatic

بسم الله الرحمن الرحيم
اللهم علمنا ما ينفعنا وانفعنا بما علمتنا يا رب العالمين
---------------
موضوعنا اليوم عن  How To write JavaScript To Client Oracle ADF programmatic  ...

JavaScript -Oracle-ADF-said-adf.blogspot.com
use this method
  import javax.faces.context.FacesContext;
  import org.apache.myfaces.trinidad.render.ExtendedRenderKitService;
  import org.apache.myfaces.trinidad.util.Service;

Sunday, December 7, 2014

Oracle ADF Swing Application

بسم الله الرحمن الرحيم
اللهم علمنا ما ينفعنا وانفعنا بما علمتنا يا رب العالمين
---------------

موضوعنا اليوم عن Oracle ADF Swing Application ...

Oracle ADF Swing Application - said-adf

Time to Complete One Hours
Check this link Click Oracle ADF Swing Application Part 1 Part 2

والسلام عليكم ورحمته الله وبركاته
<< سبحانك اللهم وبحمدك أشهد أن لا اله الا أنت أستغفرك وأتوب اليك >>

Tuesday, December 2, 2014

Oracle JDeveloper 12c Tutorials and New Features

بسم الله الرحمن الرحيم
اللهم علمنا ما ينفعنا وانفعنا بما علمتنا يا رب العالمين
---------------

موضوعنا اليوم عن Oracle JDeveloper 12c Tutorials ...

Oracle ADF 12c


 Check New Features Oracle JDeveloper 12c New Feature

Time to Complete 6 Hours
Check this link Click Oracle JDeveloper 12c Tutorials

والسلام عليكم ورحمته الله وبركاته
<< سبحانك اللهم وبحمدك أشهد أن لا اله الا أنت أستغفرك وأتوب اليك >>

Tuesday, March 4, 2014

Oracle ADF Custom JSF validator

بسم الله الرحمن الرحيم
اللهم علمنا ما ينفعنا وانفعنا بما علمتنا يا رب العالمين
---------------

موضوعنا اليوم عن Oracle ADF Custom validator  وكيفية عمله واستخدامه ...


المثال هيكون كالاتي انا عندي input text للهاتف او التليفون phone عاوز اعمل validator انه 
لازم يكون اكبر من 9 خانات (9 digits) ....

Monday, November 11, 2013

Calling ADF Action Binding Programmatically

 بسم الله الرحمن الرحيم
اللهم علمنا ما ينفعنا وانفعنا بما علمتنا يا رب العالمين
---------------
Calling ADF Action Binding Programmatically
استدعاء Insert , Update , Delete , Commit ... ect بشكل برمجي

1- انشاء صفحة jspx وداخلها ضيف oracle adf table or form
2- ضيف button واضغط عليه مرتين هيطلب منك انشاء كلاس انشاه
3- وهذا هو كود استدعاء CURD

1:  public String insertAction()  
2:  {  
3:   BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();  
4:   OperationBinding operationBinding = bindings.getOperationBinding("CreateInsert");  
5:   Object result = operationBinding.execute();  
6:   // do not forget to handle the errors here.  
7:   if (!operationBinding.getErrors().isEmpty())  
8:   {  
9:   return null;  
10:  }  
11:   return null;  
12:  }  

Sunday, October 6, 2013

Navigate ADF Pages Programmatically

 بسم الله الرحمن الرحيم
اللهم علمنا ما ينفعنا وانفعنا بما علمتنا يا رب العالمين
---------------

Navigate ADF pages programmatically
كيفية عمل انتقال الي صفحة برمجيا


الكود - Code

Thursday, July 4, 2013

Oracle ADF Java Data Types and Groovy Type

 بسم الله الرحمن الرحيم
اللهم علمنا ما ينفعنا وانفعنا بما علمتنا يا رب العالمين
---------------



Thursday, June 27, 2013

How to set default values for Entity object attributes

 بسم الله الرحمن الرحيم
اللهم علمنا ما ينفعنا وانفعنا بما علمتنا يا رب العالمين
---------------
In this demo I am going to set default value of  hire date of  employees to today's date

There are 3 ways to set default values:-
1.) In the overridden create() method of the Entity object  class:-
       Generate EmployeesImpl.java class of  EmployeesEO Entity Object.
       Add the following code to create() immediately after the call to super.create() .
            this.setHireDate((Date)Date.getCurrentDate());

Saturday, June 15, 2013

Create Backing Bean or Remove it

 بسم الله الرحمن الرحيم
اللهم علمنا ما ينفعنا وانفعنا بما علمتنا يا رب العالمين
---------------
انشاء Backing Bean مع الصفحة
وكثير بنسي نعملها انشاء في حالة انك نسي هتعمل اي 
او في حاله تم انشائه وانت لا تريد استخدمها فماذا تفعل 

Sometimes we may forgate to enable the radio button to create/enable the Backing bean automatically.
but later developer decide to create the backing bean.


Monday, June 3, 2013

Some Important Code in ADF

بسم الله الرحمن الرحيم
اللهم علمنا ما ينفعنا وانفعنا بما علمتنا يا رب العالمين
---------------

Code to get AppModule in Java Bean class

To implement resolvEDIC method
    public Object resolvElDC(String data) {
           FacesContext fc = FacesContext.getCurrentInstance();
           Application app = fc.getApplication();
           ExpressionFactory elFactory = app.getExpressionFactory();
           ELContext elContext = fc.getELContext();
           ValueExpression valueExp =
                   elFactory.createValueExpression(elContext, "#{data." + data + ".dataProvider}",
           Object.class);
           return valueExp.getValue(elContext); 
       }

Use this in code to get  Application Module Impl class
       AppModuleAMImpl am =
       (AppModuleAMImpl)resolvElDC("AppModuleAMDataControl");

Code to show FacesMessege  in page

     FacesMessage message = new FacesMessage("Record Saved Successfully!");   
     message.setSeverity(FacesMessage.SEVERITY_INFO);   
     FacesContext fc = FacesContext.getCurrentInstance();   
     fc.addMessage(null, message);

Code to show error msg  in page

throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR,”msg”,null));

Saturday, June 1, 2013

Oracle ADF Refresh Pages After Commit - Video Arabic

بسم الله الرحمن الرحيم
اللهم علمنا ما ينفعنا وانفعنا بما علمتنا يا رب العالمين
---------------

اعاده تحميل الصفحة بعد تنفيذ commit اوراكل اد دي اف :-


Wednesday, May 29, 2013

Oracle ADF Show Message After Commit - Video Arabic

بسم الله الرحمن الرحيم
اللهم علمنا ما ينفعنا وانفعنا بما علمتنا يا رب العالمين
---------------

لاظهار رسالة بعد تنفيذ commit اوراكل اد دي اف :-


Related Posts Plugin for WordPress, Blogger...