Posts

Showing posts from 2016

how to add manifiest file to your adf application

Image
Create new mainfest file "using any text editor" and copy it to this location  Application Property :Application source directory Example:

JBO-25200: Application module is not connected to a database

Hi I faced this strange error when I tries to commit a record in my page. after a lot of search I find the Solution. Solution Link Thanks to Mohammed for sharing this piece of information

How to Display the row number in a table

Image
1- on your page, select the table component and open the property window 2- set the property "varStatus to "vs" 2- add new column to the af:Table   Example: <af:table ....>                     <af:column headerText="Serial" ... >                        <af:outputText value="#{vs.index+1}"/> That's it

How can a Java method returns more than one value

One of my friends asks me this question, can a java method returns than more value? - you can achieve this task through a work around Consider this example     public static java.math.BigDecimal pmsGetActRetB(java.math.BigDecimal P_ID, java.math.BigDecimal P_HON_ID,                                                      oracle.jbo.domain.Date P_DATE,                                                      java.math.BigDecimal P_NAV[] ) throws java.sql.SQLException {         java.math.BigDecimal __jPt_result = null;         CallableStatement __sJT_st = null;         try {                             String theSqlTS =                         "BEGIN :1 := IAIGC.\"PMS_RET_PKG\".PMS_GET_ACT_RET_B(\n       :2  ,\n       :3  ,\n       :4  ,\n       :5  )  \n; END;";                                         __sJT_st.registerOutParameter(1, oracle.jdbc.OracleTypes.NUMERIC);                     __sJT_st.registerOutParameter(5, oracle.jdbc.OracleTypes.NUMERIC);            

Error while setup Jdeveloper 12c-Could not extract the archive because it is corrupted.Error code =1

Image
Hello IF you face this error before , do not worry. There are two  reason for this error . 1- the exe file that you downloaded it from oracle website is corrupted due to antivirus and firewall.So you must disable the antivirus installed on your machine ,and disable windows firewall , then start downloading Jdeveloper source from oracle website. 2- the temp folder 's path contains either blank spaces or dot "." change the value of the "Temp folder" environment variable  to be c:\temp and of course make sure that c:\temp exists Note: the Jdeveloper 12c source comes in two files : exe file and a ziped file. unzipe the file first before start installation

Discussions at work

Image

Select multiple rows using Check box

Image
One of the requirements is that you want to display a table of rows in a table , and the user select some rows using checkbox then insert,or updates these rows. 1- in your view object , add transient attribute "TransSelected" of type Boolean 2- drag and drop the view object from the data control as table 3- by default, the "TransSelected" is displayed as input text, delete the input text from within the column and drag and drop it again from the data control inside the column as selectOneBooleanCheckBox 4- in the "Edit binding Dialog box " Enter true , for selected state value , and false for UnSelected State Value 5- Now we will implement the multi-select action.The simplest way to get the selected rows is to use the "getFilteredRows()" view object's method. This is a built in method for any View Object The "getFilteredRows()" returns array of Row object. Example: add a button on you page and implemen

How to run WLST from java.

This could help to create roles,users,grant permissions  on Weblogic server Running WLST From a Java Class package wlst; import java.util.*; import weblogic.management.scripting.utils.WLSTInterpreter; import org.python.util.InteractiveInterpreter; /**  * Simple embedded WLST example that will connect WLST to a running server,  * create two servers, and assign them to a newly created cluster and exit.  * <p>Title: EmbeddedWLST.java</p>  * <p>Copyright: Copyright (c) 2004</p>  * <p>Company: BEA Systems</p>  */ public class EmbeddedWLST {   static InteractiveInterpreter interpreter = null;   EmbeddedWLST() {     interpreter = new WLSTInterpreter();   } private static void connect() {     StringBuffer buffer = new StringBuffer();     buffer.append("connect('weblogic','weblogic')");     interpreter.exec(buffer.toString());   } private static void createServers() {     StringBuffer buf = new StringBuffer();

How to open - call Task flow from tree menu

Image
This example assumes that you work have UIShell template as a template for your page  1- After creating the tree that contains a tree hierarchy  of the system menus , in  jsf page click on the tree component then open the property inspector for the tree 2- on the selection listener property of the tree , cut the selection listener value , for example #{bindings.UserAppMenu.treeModel.makeCurrent}" and create new selection listener on the managed bean , name it for example #{menuBean.onTreeMenuSelection} 3- make sure that the selectedRowKey property of the tree is null 4- the jsf code should be like this    <af:tree value="#{bindings.MenuTreeVo.treeModel}" var="node"                                              selectionListener="#{menuBean.onTreeMenuSelection}" rowSelection="single" binding = "#{menuBean.menuTree}"                                              id="t1">                                

Everything you may need about LOV - part1

Image