Code not able to get resultset in method in oracle adf

The following is a method written in AppmoduleImpl.java of oracle adf. The resultset rs returns a null resultset(it has no rows). Although, the query works fine when tested separately. Plzz help
public void insert( ) {
try {
Connection conn;
conn = DriverManager.getConnection("jdbc:oracle:thin:@133.12.0.5:1521:fpctest","fpcqry","fpcqry");
PreparedStatement ps = conn.prepareStatement(" SELECT * FROM v_tc_tdc_para");
ResultSet rs = ps.executeQuery();
catch(SQLException e) {
System.out.println("Error on Insert" + e);
}

Connection conn = null;
ApplicationModuleFactory amFactory = null;
try {
String url = "jdbc:oracle:thin:@133.12.0.5:1521:fpctest";
conn = DriverManager.getConnection(url, "fpcqry", "fpcqry");
String amDef = "test.AppModule";
String config = "AppModuleLocal";
amFactory = ApplicationModuleFactory.getInstamce();
AppModuleImpl am =
(AppModuleImpl)amFactory.createRootApplicationModule(amDef,
config,
conn);
ViewObjectImpl vo = am.getDepartmentsView1();
vo.executeQuery();
while (vo.hasNext()) {
Row row = vo.next();
System.out.println(vo.getCurrentRowIndex() + ". " +
row.getAttribute("DepartmentId") + " " +
row.getAttribute("DepartmentName"));
Please refer
http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcservices.htm#ADFFD1501
Edited by: dvohra16 on Apr 2, 2011 7:52 PM

Similar Messages

  • Not able to get the Application ID value in ADF Phase listener for Custom ADF application which integrates with Ebiz R12.2.3

    Hi All ,
    I am working on one custom Order Mangement ADF Application which integrates with EBiz R12.2.3.
    We are trying to get the Ebiz userid ,username,Responsibility ID and Application ID in ADF through below Code
           public HashMap checkEBSSession(HttpServletRequest request,
                                       HttpServletResponse response) {
            System.out.println("In AMImpl.. checkEBSSession1");
            Session session = null;
            HashMap hmap = new HashMap();
            try {
                Connection conn =
                    getDBTransaction().createStatement(1).getConnection();
                System.out.println("In AMImpl.. checkEBSSession2");
                EBiz ebiz =
                    new EBiz(conn, "012E7E82CD8852BBE053860F6E0AD63413191049361744553610276495342217");
                System.out.println("In AMImpl.. checkEBSSession3");
                AppsRequestWrapper wrapper =
                    new AppsRequestWrapper(request, response, conn, ebiz);
                System.out.println("In AMImpl.. checkEBSSession4");
                session = wrapper.getAppsSession(true);
                System.out.println("In AMImpl.. checkEBSSession5");
                Map columns = session.getInfo();
                System.out.println("In AMImpl.. checkEBSSession6");
                String respId = (String)columns.get("RESPONSIBILITY_ID");
                String currentUserId = (String)columns.get("USER_ID");
                String currentApplId = (String)columns.get("APPLICATION_ID");
                String currentOrgId = (String)columns.get("ORG_ID");
                System.out.println("In AMImpl.. checkEBSSession7...respId : "+respId);
                System.out.println("In AMImpl.. checkEBSSession8...UserId : "+currentUserId);
                System.out.println("In AMImpl.. checkEBSSession9...APPL_SERVER_ID : "+currentApplId);
                System.out.println("In AMImpl.. checkEBSSession10..OrgId : "+currentOrgId);
                logger.info("respid:  " + respId);
                //System.out.println("In AMImpl.. checkEBSSession8");
                hmap.put("RESPONSIBILITY_ID",respId);
                //System.out.println("In AMImpl.. checkEBSSession9");
            } catch (Exception e) {
                System.out.println("Error: " + e.getMessage());
            return hmap;
    By using this code I am Getting all the Information Except the Application ID.
    If someone  have any idea how to get the application ID please share it .
    Thanks in Advance !!
    Thanks & Regards
    Apurv Agarwal

    Hi,
    since you implements the backing bean from PagePhaseListener. some where the same view is excuting before getting the selected record. Even if you select the record after excuteQuery() it will set the first record as selected. Please try to check some where query is excuting.
    try give some more details like what are all the methods you are using in PagePhaseListener and where you worte u r coding.
    Reg,
    Brahma

  • Not able to register with listener after installing oracle grid infrastrtcure in oracle 11gr2 on windows

    Hi Guru's.
    I am not able to get listener connectivity after installing Oracle 11gr2 Grid infrastructure on windows on vmware workstation. I register with static ip.
    Even i recreated the listener and running the listener from Grid home.
    The output what i am getting is :--
    C:\> lsnrctl status
    The listener support no services
    Can you please help me out

    C:\Users\Administrator>lsnrctl stop
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 26-NOV-2013 09:09:10
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    The command completed successfully
    C:\Users\Administrator>lsnrctl start
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 26-NOV-2013 09:09:21
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Starting tnslsnr: please wait...
    TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production
    Log messages written to c:\app\administrator\diag\tnslsnr\WIN-0P8BCA3R7V5\listener\alert\log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-0P8BCA3R7V5)(PORT=1521)))
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production
    Start Date                26-NOV-2013 09:09:24
    Uptime                    0 days 0 hr. 0 min. 4 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Log File         c:\app\administrator\diag\tnslsnr\WIN-0P8BCA3R7V5\listener\alert\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-0P8BCA3R7V5)(PORT=1521)))
    The listener supports no services
    The command completed successfully
    C:\Users\Administrator>lsnrctl status
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 26-NOV-2013 09:09:31
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production
    Start Date                26-NOV-2013 09:09:24
    Uptime                    0 days 0 hr. 0 min. 8 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Log File         c:\app\administrator\diag\tnslsnr\WIN-0P8BCA3R7V5\listener\alert\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-0P8BCA3R7V5)(PORT=1521)))
    The listener supports no services
    The command completed successfully
    C:\Users\Administrator>lsnrctl service
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 26-NOV-2013 09:13:10
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    Services Summary...
    Service "+asm" has 1 instance(s).
      Instance "+asm", status READY, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0 state:ready
             LOCAL SERVER
    Service "orcl" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0 state:ready
             LOCAL SERVER
    Service "orclXDB" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
        Handler(s):
          "D000" established:0 refused:0 current:0 max:1022 state:ready
             DISPATCHER <machine: WIN-0P8BCA3R7V5, pid: 2560>
             (ADDRESS=(PROTOCOL=tcp)(HOST=WIN-0P8BCA3R7V5)(PORT=49246))
    The command completed successfully

  • Remote Object - not able to get the returned value from java method

         Hi ,
    I am developing one sample flex aplication that connects to the java code and displays the returned value from the
    java method in flex client. Here I am able to invoke the java method but not able to collect the returned value.
    lastResult is giving null .  I am able to see the sysout messages in server console.
    I am using flex 3.2 and blazeds server  and java 1.5
    Here is the code what I have written.
    <?xml version="1.0" encoding="utf-8"?><mx:WindowedApplication  xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundColor="#FFFFFF" initialize="initApp()">
     <mx:Script><![CDATA[
    import mx.controls.Alert; 
    import mx.binding.utils.ChangeWatcher; 
    import mx.rpc.events.ResultEvent; 
    import mx.messaging.*; 
    import mx.messaging.channels.* 
    public function initApp():void { 
         var cs:ChannelSet = new ChannelSet(); 
         var customChannel:Channel = new AMFChannel("my-amf", "http://localhost:8400/blazeds/messagebroker/amf");     cs.addChannel(customChannel);
         remoteObj.channelSet = cs;
    public function writeToConsole():void {      remoteObj.writeToConsole(
    "hello from Flash client");
          var returnedVal:String = remoteObj.setName().lastResult;     Alert.show(returnedVal);
    //[Bindable] 
    // private var returnedVal:String; 
    ]]>
    </mx:Script>
    <mx:RemoteObject id="remoteObj" destination="sro" /> 
    <mx:Form width="437" height="281">
     <mx:FormItem>  
    </mx:FormItem>  
    <mx:Button label="Write To Server Console" click="writeToConsole()"/>
     </mx:Form>
     </mx:WindowedApplication>
    Java code
    public  
         public SimpleRemoteObject(){  
              super();     }
      class SimpleRemoteObject { 
         public void writeToConsole(String msg) {          System.out.println("SimpleRemoteObject.write: " + msg);     }
         public String setName(){          System.
    out.println("Name changed in Java"); 
              return "Name changed in Java";
    And I have configured destination in  remote-config.xml
    <destination id="sro">
       <properties>    
        <source>SimpleRemoteObject</source>
        <scope>application</scope>
       </properties>
      </destination>
    Please help me .

    You are not able to get the returned value because if you see the Remote object help you will realise you have to use result="resultfn()" and fault = "faultfn()"
    In this you define what you wish to do.
    More importantly in the remote object you need to define which method you wish to call using the method class like this
    <mx:RemoteObject id="remoteObj" destination="sro" result="r1" fault="f1"  >
         <Method name="javaMethodName" result="r2" fault="f2"/>
    <mx:RemoteObject>
    r2 is the function where you get the result back from java and can use it to send the alert.

  • Problem Using HTTP Dispatcher -- Could Not able to get the data in JSP

    Hi, I am using HTTP Dispatcher to send my events to particular URL which is a JSP page. I am trying to populate the received event through URL and populate to a oracle data base. But could not able to get the data in Oracle database.
    Code is :
    <h1>JSP Page</h1>
    <%
    long type = 0;
    String tagId = null;
    String timeStr = "0";
    String deviceName = "";
    // Get Event Parameters
    // Available Parameters: id, siteName, deviceName, data, time, type, subtype, sourceName, correlationId
    try
    type = Long.parseLong(request.getParameter("type")); // Get type
    tagId = request.getParameter("id"); // Get tagId
    timeStr = request.getParameter("time"); // Get time
              deviceName = request.getParameter("deviceName");
    catch (Exception e)
    out.println( "Error: "+e.getMessage() );
              // Write into DB.
              try {
              if ((tagId == null) || (type != 200) ){
                   // Do Nothing
                   //return;
              } else {
                   OracleDataSource ods = new OracleDataSource();
                   String URL = "jdbc:oracle:thin:@//3.235.173.16:1525/vislocal";     
                   ods.setURL(URL);
                   ods.setUser("cus");
                   ods.setPassword("cus");
                   Connection myConn = ods.getConnection();     
                   Statement stmt = myConn.createStatement();
                   String selectQuery =
                             "SELECT MAX(rfid_raw_reads_id) as max_id FROM "+
                        "cus.rfid_raw_reads ";
                   ResultSet rs = stmt.executeQuery(selectQuery);
                   String maxId = "1";
                   if (rs.next()) {
                        maxId = rs.getString(1);               
                   String selectMaxTagIDQuery =
                             "SELECT MAX(rfid_raw_reads_id) as max_id FROM "+
                        "cus.rfid_raw_reads WHERE tag_id = '" + tagId + "'" ;
                   stmt = myConn.createStatement();
                   rs = stmt.executeQuery(selectMaxTagIDQuery);
                   String maxTagId = "1";
                   if (rs.next()) {
                        maxTagId = rs.getString(1);               
                   long primaryKey = 1;
                   long tagKey = 1;
                   try {
                        primaryKey = Long.parseLong(maxId) + 1;
                        tagKey = Long.parseLong(maxTagId) + 1;
                   } catch (Exception e) {
                   long currentTime = System.currentTimeMillis();
                   long updateKey = (tagKey - 1);
                   String updateQuery = " UPDATE cus.rfid_raw_reads SET read_end_time = " + currentTime + " WHERE rfid_raw_reads_id = " + updateKey;
                   Statement updateStmt = myConn.createStatement();
                   updateStmt.execute(updateQuery);     
                   String query =
                        "INSERT INTO cus.rfid_raw_reads (rfid_raw_reads_id, tag_id,device_name,read_start_time) VALUES ("+ primaryKey + ",'" + tagId + "'," + deviceName + "'," + System.currentTimeMillis() + " )" ;
                   Statement insertStmt = myConn.createStatement();
                   insertStmt.execute(query);     
                   myConn.commit();
                   myConn.close();
              } catch (Exception e) {
    %>
    <p>For browser debug:
    <%
    out.println( "Type="+type+" ID="+tagId +" time="+timeStr );
    %>
    Kindly suggest where is the problem...
    Thanks and regards
    Mohammad Nasim Akhtar

    HI Prabhat,
    Thanx for your reply, I worked out and able to receive the data in oracle database, Actually there was some problem in insert Query. Now I have tested the same... and able to edit the same in the Database.....
    But I am facing a new problem, Http Dispatcher in SES console is displaying all the Events generated as well as event in Que but there is no events in the Event Send. I guess it is not able to send the events.....?????
    Event statical is showing like this
    Events Received: 0 (0.00/sec)
    Events Generated: 311 (0.19/sec)
    Events Sent: 2 (0.19/sec)
    Queued Events: 309 (0.19/sec)
    Kindly suggest where is the problem, Is it a JSP problem or OSES end problem.....
    Thanks and regards
    Nasim

  • Not able to get the data on the page

    hi,
    I tried brining the data on the JSP page. I am passing the parameters to a PL/SQL procedure. but I am not getting any data or error. can anyone helpme how to proceed further I am retreving the page parameters that are passed to the JSP page like this.
    <%
    PortletRenderRequest portletRequest = (PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    RenderContext rc = portletRequest.getRenderContext();
    PortletDefinition pd = portletRequest.getPortletInstance().getPortletDefinition();
    %>
    I am getting the page parameters. but I am not able to get any result on the page.
    while I am using the same code to get the data on another JSP page I am getting the data except I am not retreving the page parameters.
    I am using the code like this to pass the parameters to the procedure.
    OracleConnection conn__OCI      = cpool.getProxyConnection(OracleOCIConnectionPool.PROXYTYPE_USER_NAME, proxUserProp);
                                  cstmt = conn__OCI.prepareCall ("begin test.test1( ?,?,?,?,? ); end;");
                                  cstmt.setString(2, cnumb);
                                  cstmt.setString(3, cperiod);
                                  cstmt.setInt(4, retStrC);
                                  cstmt.setString(5, retStr3);
                                  cstmt.registerOutParameter (4, Types.NUMERIC);
                                  cstmt.registerOutParameter (5, Types.VARCHAR);
                                  cstmt.registerOutParameter(1, OracleTypes.CURSOR);
                                  cstmt.execute();
                                  retStrC = cstmt.getInt (4);
                                  retStr3 = cstmt.getString (5);
                                  retStr = "<tr class=OraDataText><td>  " + retStrC + "</td></tr>";
                                  retStr = retStr + "<tr class=OraDataText><td>  " + retStr3 + "</td></tr>";
                                  if ( retStrC == -1 )                    { ALLretStr = ALLretStr + retStr; }
                                  else
                                       cursor = ((OracleCallableStatement)cstmt).getCursor(1);
                                       while (cursor.next ())
                                                 if (spacerLine >= 2)
                                                      ALLretStr = ALLretStr + "<tr><td colspan=5 height=1 <div id=ssubLine> <div id=ssubLinet></div> </div> </td></tr>";
                                                 ALLretStr = ALLretStr + "<tr class=smmjWipAltText><td ALIGN=LEFT>" + cursor.getString(1) + "</td><td ALIGN=CENTER>" + cursor.getInt(2) + "</td><td ALIGN=CENTER>" + cursor.getString(3) + "</td><td ALIGN=CENTER>" + cursor.getString(4) + "</td><td ALIGN=RIGHT>" + cursor.getString(5) + "</td></tr>";
                                                 spacerLine++;
                                  }

    Hi Frank,<br>
    <br>
    I am getting a blank page after hitting the submit button. can you help me finding a solution for this in the JSP page or tell me where the error is. <br>
    <br>
    <%@page contentType="text/html;charset=UTF-8" %><br>
    <%@page import="oracle.portal.provider.v2.render.*" %><br>
    <%@page import="oracle.portal.provider.v2.render.PortletRenderRequest" %><br>
    <%@page import="oracle.portal.provider.v2.PortletDefinition" %><br>
    <%@page import="oracle.portal.provider.v2.http.HttpCommonConstants" %><br>
    <%@page import="java.sql.*, javax.sql.*, java.util.*, oracle.jdbc.*, <br>
    oracle.jdbc.pool.*, oracle.jdbc.oci.*" %><br>
    <br>
    <%<br> PortletRenderRequest portletRequest = (PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);<br>
    RenderContext rc = portletRequest.getRenderContext();<br>
    PortletDefinition pd = portletRequest.getPortletInstance().getPortletDefinition();<br>
    %><br>
    <%! String tree_descrip;<br> String tree_descrip_long;<br>
    String curr_Scheme;<br>
    String overl_gif;<br>
    String curr_css_path;<br>
    // page param<br>
    String p_number_val= "1";<br>
    String p_period_val= "Day";<br>
    %><br>
    <%<br> String long_desc = "LONG";<br>
    String Descrip = "SHORT";<br>
    String treeDescrip= "%SUBMISS%OLDER%";<br>
    String curr_treeCateg = "SUB";<br>
    try<br>
    {<br>
    curr_Scheme = getInfo.getSchem.getSchem();<br>
    overl_gif = "/images/tested/"+curr_Scheme+ "images/prefreshdefault.gif";<br>
    curr_css_path = "/images/tested/" curr_Scheme "css/param_jsp.css";<br>
    tree_descrip = getInfo.getPortletTitle.getPortletTitle ( Descrip , treeDescrip , curr_treeCateg);<br>
    tree_descrip_long = getInfo.getPortletTitle.getPortletTitle ( long_desc , treeDescrip , curr_treeCateg);<br>
    }<br>
    catch(Exception e)<br>
    {<br>
    tree_descrip = "";<br>
    tree_descrip_long = "";<br>
    }<br>
    %> <br>
    <% // Get page param p_number_val try { p_number_val = request.getParameterValues("p_number")[0]; } catch(Exception e) { p_number_val = "1"; } <br>
    // Get page param p_period_val try { p_period_val = request.getParameterValues("p_period")[0]; } catch(Exception e) { p_period_val = "Day"; } %> <br>
    <HTML> <HEAD> <link href="<%= curr_css_path %>" rel="stylesheet" type="text/css" media='' screen=''/> <SCRIPT LANGUAGE="JavaScript1.1" SRC="/images/smmj_page_obj/Popup/overlib.js"></SCRIPT> </HEAD> <BODY>
    <TABLE WIDTH=100% summary="<%= tree_descrip %>" border="0" cellspacing="0" cellpadding="3" BGCOLOR="#FFFFFF" > <TR WIDTH="100%" height="6px"><td height="6px" COLSPAN="6" ></td></TR> <TR WIDTH="100%" > <td ALIGN="LEFT" nowrap ></td> <td ALIGN="LEFT" style="font-family:Verdana; font-size:8pt;font-weight:normal" nowrap class="smmjPort2HeadJS"> CYCLE NAME</td> <td ALIGN="CENTER" style="font-family:Verdana; font-size:8pt;font-weight:normal" nowrap class="smmjPort2HeadJS">ID</td> <td ALIGN="CENTER" style="font-family:Verdana; font-size:8pt;font-weight:normal" nowrap class="smmjPort2HeadJS">FIRM NAME</td> <td ALIGN="CENTER" style="font-family:Verdana; font-size:8pt;font-weight:normal" nowrap class="smmjPort2HeadJS">BILLING PERIOD</td> <td ALIGN="RIGHT" style="font-family:Verdana; font-size:8pt;font-weight:normal" nowrap class="smmjPort2HeadJS0">AGE</td> </TR> <%= getOlderSubs( p_number_val, p_period_val , "dev", portletRequest.getUser().getName(), "close_connect") %> </table> <TABLE><TR><TD> <%=p_number_val%>
    <%=p_period_val%> <br>
    <%=portletRequest.getUser().getName()%> </TD></TR> </TABLE> </BODY> </HTML> <br>
    <%!<br> private String getOlderSubs( String cnumb, String cperiod, String cstring, String userid, String cState) throws SQLException
    {<br>
    CallableStatement cstmt;<br>
    ResultSet cursor;<br>
    int spacerLine = 1;<br>
    int retStrC = 1;<br>
    String retStr = "f";<br>
    String retStr2 = "f";<br>
    String retStr3 = "f";<br>
    String retStr4 = "f";<br>
    String ALLretStr = " ";<br>
    String TempretStr = " ";<br>
    String userstring = getInfo.getPortlUser.getPortUsr("B", "1");<br>
    String pwstring = getInfo.getPortlUser.getPortUsr("B", "2");<br>
    String CNNstring = getInfo.getPortlUser.getPortUsr("B", "3");<br>
    String PROXY_user_name = "test$" + userid;<br>
    //String PROXY_user_name = "test1$roger" ;<br>
    String url= "jdbc:oracle:oci:@" + CNNstring;<br>
    Properties prop = new Properties();<br>
    try {<br>
    if ( userid.trim().toUpperCase().equals(getInfo.getCONN.chkPortal.trim().toUpperCase()) )<br>
    {<br>
    ALLretStr = "<tr><td>Default user: " + userid + "</td></tr>"; }<br>
    else<br>
    {<br>
    // Create an OracleOCIConnectionPool instance with default configuration
    OracleOCIConnectionPool cpool = new OracleOCIConnectionPool(userstring, pwstring , url, null);<br>
    Properties proxUserProp = new Properties();<br>
    proxUserProp.setProperty(OracleOCIConnectionPool.PROXY_USER_NAME, PROXY_user_name);<br>
    OracleConnection conn__OCI = cpool.getProxyConnection
    (OracleOCIConnectionPool.PROXYTYPE_USER_NAME, proxUserProp);<br>
    cstmt = conn__OCI.prepareCall ("begin PORT_CURSOR.s_submission_wip( ?,?,?,?,? ); end;");<br>
    cstmt.setString(2, cnumb);<br>
    cstmt.setString(3, cperiod);<br>
    cstmt.setInt(4, retStrC);<br>
    cstmt.setString(5, retStr3);<br>
    cstmt.registerOutParameter (4, Types.NUMERIC);<br>
    cstmt.registerOutParameter (5, Types.VARCHAR);<br>
    cstmt.registerOutParameter(1, OracleTypes.CURSOR);<br>
    cstmt.execute();<br>
    retStrC = cstmt.getInt (4);<br>
    retStr3 = cstmt.getString (5);<br>
    retStr = "<tr class=OraDataText><td> " + retStrC + "</td></tr>";<br>
    retStr = retStr + "<tr class=OraDataText><td> " + retStr3 + "</td></tr>";<br>
    if ( retStrC == -1 ) { ALLretStr = ALLretStr + retStr; }<br>
    else<br>
    {<br>
    cursor = ((OracleCallableStatement)cstmt).getCursor(1);<br>
    while (cursor.next ())<br>
    {<br>
    if (spacerLine >= 2)<br>
    {<br>
    ALLretStr = ALLretStr + "<tr><td ALIGN=LEFT nowrap ></td><td colspan=5 height=1 ></td></tr>";<br>
    }<br>
    ALLretStr = ALLretStr + "<tr WIDTH=100% class=smmjPort2Text >
    <td ALIGN=LEFT nowrap ></td><td ALIGN=LEFT> " + cursor.getString(1) + "</td><td ALIGN=CENTER>" + cursor.getInt(2) + "</td><td ALIGN=CENTER>" + cursor.getString(3) + "</td><td ALIGN=CENTER>" + cursor.getString(4) + "</td><td ALIGN=RIGHT>" + cursor.getString(5) + "</td></tr>";<br>spacerLine++;<br>
    }<br>
    }<br>
    if (cState != null )<br>
    { //return(retStr);<br>
    if (conn__OCI != null) conn__OCI.close();<br>
    if (cpool != null) cpool.close();<br>
    }}<br>
    return(TempretStr);<br>
    }<br>
    catch (SQLException e )<br>
    {<br>
    String retErrStr = retStr + " SQL Error: <PRE> " + e + " </PRE> \n";<br>
    return(retErrStr);<br>
    }<br>
    }<br>
    %><br>
    Regards,<br>
    Vijay.

  • Not able to get data while executing in background for mb52

    Dear all,
    my requirement is i want to schedule the zreport for every 1 hour.but proble is when iam executing in fore ground iam able to get data.but when iam going to scheduling this iam not able to get data.
    my code is
    type-pools:slis.
    data zbudat type RANGE OF budat.
    data wab like line of zbudat.
    data zmatkl type RANGE OF MATKL.
    data waz like line of zMATKL.
    data zwerks type RANGE OF werks.
    data wax like line of zwerks.
    waz-sign = 'I'.
    waz-low = 'CRUDE'.
    waz-option = 'EQ'.
    append waz to zmatkl.
    clear waz.
    waz-sign = 'I'.
    waz-low = 'SGO'.
    waz-option = 'EQ'.
    append waz to zmatkl.
    clear waz.
    *waz-sign = 'I'.
    *waz-low = 'FINES'.
    *waz-option = 'EQ'.
    *append waz to zmatkl.
    *clear waz.
    *waz-sign = 'I'.
    *waz-low = 'LUMPS'.
    *waz-option = 'EQ'.
    *append waz to zmatkl.
    *clear waz.
    *waz-sign = 'I'.
    *waz-low = 'UFO'.
    *waz-option = 'EQ'.
    *append waz to zmatkl.
    wax-sign = 'I'.
    wax-low = 'BIMI'.
    wax-option = 'EQ'.
    append wax to zwerks.
    clear wax.
    wax-sign = 'I'.
    wax-low = 'BIPL'.
    wax-option = 'EQ'.
    append wax to zwerks.
    *waz-sign = 'I'.
    waz-low = 'C'.
    *waz-option = 'CP'.
    *append waz to zmatnr.
    *clear waz.
    *waz-sign = 'I'.
    waz-low = 'S'.
    *waz-option = 'CP'.
    *append waz to zmatnr.
    *clear waz.
    *waz-sign = 'I'.
    waz-low = 'UC'.
    *waz-option = 'CP'.
    *append waz to zmatnr.
    *waz-sign = 'I'.
    waz-low = 'F'.
    *waz-option = 'CP'.
    *append waz to zmatnr.
    *clear waz.
    *waz-sign = 'I'.
    waz-low = 'L'.
    *waz-option = 'CP'.
    *append waz to zmatnr.
    types:begin of w_tab,
           bwkey type werks_d,
           matnr type matnr,
            lgort type LGORT_D,
            budat type budat,
            labst type labst,
           endmenge type p decimals 3,
          end of w_tab.
          DATA : IT_TAB TYPE STANDARD TABLE OF W_TAB WITH HEADER LINE .
    FIELD-SYMBOLS: <gt_fieldcat> TYPE slis_fieldcat_alv,
    <gt_report_list> TYPE w_tab .
    field-symbols <lt_pay_data> type any table.
    *FIELD-SYMBOLS : <LT_DATA> LIKE LINE OF IT_TAB .
    FIELD-SYMBOLS : <LT_DATA> type any .   " i have chaged  it
    data lr_pay_data type ref to data.
    cl_salv_bs_runtime_info=>set( exporting display = abap_false
    metadata = abap_false
    data = abap_true ).
    ****SUBMIT ZQM_GR_BARGE_LOADING WITH S_date in zbudat with s_werks in zwerks with p_pend = ' ' AND RETURN .
    submit RM07MLBS  with MATKLA in zmatkl with werks in zwerks
    "with XVBST = 'X'
    using selection-SCREEN '1000' and return.
    try.
    cl_salv_bs_runtime_info=>get_data_ref( importing r_data = lr_pay_data ).
    assign lr_pay_data->* to <lt_pay_data>.
    catch cx_salv_bs_sc_runtime_info.
    message `Unable to retrieve ALV data` type 'E'.
    endtry.
    cl_salv_bs_runtime_info=>clear_all( ).
    data: obj_s type ref to ZKMINCO_MINESTOCKFROM_SAP_OUT.
    create OBJECT obj_s.
    data : output TYPE ZKMINMINESTOCKFROM_SAP1 ,
            record type ZKMINMINESTOCKFROM_SAP_REC_TAB ,
           wa_record like line of record.
    LOOP AT <lt_pay_data> ASSIGNING <LT_DATA>.
    MOVE-CORRESPONDING <LT_DATA> TO IT_TAB .
    APPEND IT_TAB .
    wa_record-STOCK_AS_ON_DATE = sy-datum .
    wa_record-STOCK_AS_ON_TIME = sy-uzeit .
    wa_record-PLANT_ID = it_tab-bwkey.
    wa_record-STORAGE_LOC_ID = it_tab-lgort .
    wa_record-MATERIAL = it_tab-matnr .
    wa_record-STOCK_QTY = it_tab-labst.
    append wa_record to record.
    clear wa_record.
    endloop.
    output-MINESTOCKFROM_SAP-record = record .
    CALL METHOD obj_s->MINESTOCKFROM_SAP_OUT
      EXPORTING
        output = output .
    commit work.
    Thanks in advance.

    Hi,
    I assume that in your case you have two program lets say ZFOREGROUND and ZBACKGROUND (Called inside zforeground using submit statement)
    zforeground has :
    1. a input field to browse excel sheet or some file at the selection screen, and
    2. button 'post all' to determine the background processing.
    Now your requirement is such that you want zbackground to get scheduled as background job when post all button is clicked.
    So, within the event AT USER-Command, check the sy-ucomm as that of post all button, if so write the following code to schedule the job:
    DATA: jobname LIKE tbtcjob-jobname.
    DATA :jobcount LIKE tbtcjob-jobcount,
    host LIKE msxxlist-host.
    DATA: BEGIN OF starttime.
    INCLUDE STRUCTURE tbtcstrt.
    DATA: END OF starttime.
    DATA: starttimeimmediate LIKE btch0000-char1.
    DATA: gv_job_dt TYPE sy-datum,
    gv_job_tm TYPE sy-uzeit.
    jobname = 'EXCLUSION_LISTING'.
    gv_job_dt = sy-datum.
    gv_job_tm = sy-uzeit.
    Job open
    CALL FUNCTION 'JOB_OPEN'
    EXPORTING
    delanfrep = ' '
    jobgroup = ' '
    jobname = jobname
    sdlstrtdt = sy-datum
    sdlstrttm = sy-uzeit
    IMPORTING
    jobcount = jobcount
    EXCEPTIONS
    cant_create_job = 01
    invalid_job_data = 02
    jobname_missing = 03.
    IF sy-subrc NE 0.
    "error processing
    ENDIF.
    Insert process into job
    SUBMIT ZBACKGROUND AND RETURN
    WITH p_file1 = gv_file_cust_exc "<----
    Parameters which you want to pass to report zbackground from the report
    WITH p_file2 = gv_file_win_deal "------zforeground
    USER sy-uname
    VIA JOB jobname
    NUMBER jobcount.
    IF sy-subrc ne 0.
    "error processing
    ENDIF.
    Close job
    starttime-sdlstrtdt = gv_job_dt.
    starttime-sdlstrttm = gv_job_tm.
    CALL FUNCTION 'JOB_CLOSE'
    EXPORTING
    event_id = starttime-eventid
    event_param = starttime-eventparm
    event_periodic = starttime-periodic
    jobcount = jobcount
    jobname = jobname
    laststrtdt = starttime-laststrtdt
    laststrttm = starttime-laststrttm
    prddays = 1
    prdhours = 0
    prdmins = 0
    prdmonths = 0
    prdweeks = 0
    sdlstrtdt = starttime-sdlstrtdt
    sdlstrttm = starttime-sdlstrttm
    strtimmed = starttimeimmediate
    targetsystem = host
    EXCEPTIONS
    cant_start_immediate = 01
    invalid_startdate = 02
    jobname_missing = 03
    job_close_failed = 04
    job_nosteps = 05
    job_notex = 06
    lock_failed = 07
    OTHERS = 99.
    IF sy-subrc EQ 0.
    WRITE:/1 'JOB' COLOR 3,
    jobname COLOR COL_GROUP,
    'Scheduled in Background' COLOR 3. "error processing
    gv_time = starttime-sdlstrttm.
    gv_date = starttime-sdlstrtdt.
    ENDIF.
    Above code will schedule the report zbackground in background.
    Note:
    the program schduled in background will not be able to access any data present on your presentation server. data should be provided either by the program schhedulling it in foreground or it has to be thr in application server.
    Regards,
    Ravi

  • Manage bean methods not able to call application module methods

    Hi,
    I have an ADF application where in my managed bean method needs to call AppModuleImpl methods. I use the code as below:
    public void getSummary() {
    DCBindingContainer binding = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    OperationBinding op = binding.getOperationBinding("getVOData");
    op.execute();
    The code works fine when I run the application in my IntegratedWeblogicServer and I am able to get the data on my .jsp pages.
    I have installed weblogic server on another machine and I need to deploy and run my application on that server. But when I try doing that, the above code is not able to call the AppModule method and I see no data on my page (Also there is no error or exceptin thrown). Seems that the ViewController project is not able to interact with the Model project.
    Is there any extra configuration to be done on the newly installed weblogic server to get this work? Or will some change in the application code help?
    Please suggest.
    Thanks and regards,
    Ansh

    Hi,
    While creating the weblogic domain, we had the following checkboxes checked:
    1. Basic weblogic server domain [wlserver_10.3]
    2. Oracle JRF [oracle_common]
    I hope this is what we need.
    Yes, I also have the adf runtime installed.

  • Not Able to get to the values from applet while designing from xml

    Hi All,
    I have a new problem, and i am new to this one.
    Like I have an XML file.Where in i am able to design the applet while getting the values from the xml and i am able to store also.
    But the problem comes over here.I have given out a type field in xml.By validating the type field i am able to get Label(),TextField(),etc.,( whatever it is).While displaying i am giving only one single TextField in the init method and i am looping it up.so that i can get the no of text fields ,labels,text areas,etc.,
    so problem comes here.I am not able to get the values from those text fields.(only i am getting the last value.Last value is overwriting the old values.Now i am able to get the last value that i am giving it lastly.)
    So please can anyone give me some idea.As it is urgent to me and i have to submit urgently.
    Please help me out.And Thanks In Advance.

    Here is the sample code while designing the applet:
    String type = (String) typeList.get(j);
                             String option = (String) optionList.get(j);                                   
                             if(type.equals("text")){
                                  txtdisp = new TextField(15);
                                  leadcomp.add(txtdisp);     
    //                              txtdisp.addMouseMotionListener(this);}

  • Why i am not able to get all the applets which are included in a page

    Hi All,
    I have two applet which are included in JSF pages, when try to print all the applets which are inculded in web page
    Using below code. but it is printing current applet(the applet which is using this code to print),
    i am not seeing the other applet in println statement.
    what could be reason (well when i made a demo example it is printing all the applets which are included in web page)
    and is there any permission issues ( both applet are signed as well).
    can you please what could be the reason, thanks in advance.
    Enumeration enumw =   getAppletContext().getApplets();
                    while (enumw.hasMoreElements()) {
                        Applet element = (Applet)enumw.nextElement();
                        System.out.println("-------------applet name -------------------------------------->"+element.getName());
    }

    HI AndrewThompson64,
    thanks for your replay, i have increased dukes,
    one more thing i have tried is applet to javascript and from javascript to applet communication,
    but still i am not able to get other applet, when i tried call a javascript method i.e. doAlert(s) it calls, but i tried to print
    the other applet but it is not displaying it. the following code i have tried.
    <SCRIPT>
            function doAlert(s) {
                 alert(s);
                 alert(document.FloorPlanView);
                 alert("FloorPlanView "+document.applets["FloorPlanView"]);
                 alert("0 "+document.applets[0]);
                 alert("1 "+document.applets[1]);
                 alert("ScheduleProfileApplet "+document.ScheduleProfileApplet);
            </SCRIPT>let me tell you how the applet included in the webpage.
    mainmodule which include two jsp pages jsppage1.jsp and jsppage2.jsp
    and in jsppage1.jsp which includes a JSF page and it contains Applet
    <jsp:include page="ScheduleModule.jsp"/>and similarly same for the second applet.
    I need to look at applet communication through socket programing
    any help will be appreciated.

  • Need help with applet servlet communication .. not able to get OutputStream

    i am facing problem with applet and servlet communication. i need to send few image files from my applet to the servlet to save those images in DB.
    i need help with sending image data to my servlet.
    below is my sample program which i am trying.
    java source code which i am using in my applet ..
    public class Test {
        public static void main(String argv[]) {
            try {
                    URL serverURL = new URL("http://localhost:8084/uploadApp/TestServlet");
                    URLConnection connection = serverURL.openConnection();
                    Intermediate value=new Intermediate();
                    value.setUserId("user123");
                    connection.setDoInput(true);
                    connection.setDoOutput(true);
                    connection.setUseCaches(false);
                    connection.setDefaultUseCaches(false);
                    // Specify the content type that we will send binary data
                    connection.setRequestProperty ("Content-Type", "application/octet-stream");
                    ObjectOutputStream outputStream = new ObjectOutputStream(connection.getOutputStream());
                    outputStream.writeObject(value);
                    outputStream.flush();
                    outputStream.close();
                } catch (MalformedURLException ex) {
                    System.out.println(ex.getMessage());
                }  catch (IOException ex) {
                        System.out.println(ex.getMessage());
    }servlet code here ..
    public class TestServlet extends HttpServlet {
         * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
         * @param request servlet request
         * @param response servlet response
         * @throws ServletException if a servlet-specific error occurs
         * @throws IOException if an I/O error occurs
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
                throws ServletException, IOException {
             System.out.println(" in servlet -----------");
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            ObjectInputStream inputFromApplet = null;
            Intermediate aStudent = null;
            BufferedReader inTest = null;
            try {         
                // get an input stream from the applet
                inputFromApplet = new ObjectInputStream(request.getInputStream());
                // read the serialized object data from applet
                data = (Intermediate) inputFromApplet.readObject();
                System.out.println("userid in servlet -----------"+ data.getUserId());
                inputFromApplet.close();
            } catch (Exception e) {
                e.printStackTrace();
                System.err.println("WARNING! filename.path JNDI not found");
            } finally {
                out.close();
        @Override
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
                throws ServletException, IOException {
            System.out.println(" in foGet -----------");
            processRequest(request, response);
         * Handles the HTTP <code>POST</code> method.
         * @param request servlet request
         * @param response servlet response
         * @throws ServletException if a servlet-specific error occurs
         * @throws IOException if an I/O error occurs
        @Override
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
                throws ServletException, IOException {
            System.out.println(" in doPost -----------");
            processRequest(request, response);
         * Returns a short description of the servlet.
         * @return a String containing servlet description
        @Override
        public String getServletInfo() {
            return "Short description";
        }// </editor-fold>
    }the Intermediate class ..
    import java.io.Serializable;
    public class Intermediate implements Serializable{
    String userId;
        public String getUserId() {
            return userId;
        public void setUserId(String userId) {
            this.userId = userId;
    }

    Hi,
    well i am not able to get any value from connection.getOutputStream() and i doubt my applet is not able to hit the servlet. could you review my code and tell me if it has some bug somewhere. and more over i want to know how to send multiple file data from applet to servlet . i want some sample or example if possible.
    do share if you have any experience of this sort..
    Thanks.

  • Not able to get the taxonomy field value of meta data field type

    Hi Everyone,
    Not able to get the taxonomy filed value from the metadata filed type.
    Any one can help me on this.
    Label, TermGuid, ValidatedString are showing empty when i debug the code.
    Below is the code which i used to get the taxonomy filed value

    Hi,
    Can you please try getting this way?
    var taxonomyField = listItem.Fields.GetFieldByInternalName(fieldName) as TaxonomyField;
    if (taxonomyField.AllowMultipleValues)
    var fieldValuesCollection = listItem[taxonomyField.Title] as TaxonomyFieldValueCollection;
    return fieldValuesCollection.Select(x => new Guid(x.TermGuid)).ToList();
    else
    var fieldValue = listItem[taxonomyField.Title] as TaxonomyFieldValue;
    return new List<Guid>() { new Guid(fieldValue.TermGuid) };
    Hope it helps!
    Thanks,
    Avni Bhatt
    If this helped you resolve your issue, please mark it Answered

  • Not able to get the data in PE51

    Dear Freinds,
                  I have copied similar to the standard in IN01 , in the Pe51> Windows i have kept under W1 all the wage types which comes under earnings and when i execute the payslip   i.e  in the simulation run and when i view the form i can see
    only the wage types but i dont find the correspnding amounts agains each wage type. Please could any one help me
    why iam not able to get the amount agains the wge type?
    regards
    divya.

    Hi,
    I think u might have done some mistakes while configuring PE51 in cumulation ID ..........
    First of all as Siki said check ur master data whether the WT has given in IT 0008 and corresponding amounts entered to the resp WT. if it is ok then check the pe51 config once........
    go to pe51 give ur form name and select cumulation IDs go to change mode and double click on Earnings and see whether the data is maintained in this manner or not .......
    Table = RT ,   ID = your WT code ,    MS = + (sign)   ,  Dsplit = * (sign),      rest all coulumn leave blank ........ save it and then again run the payrl in Live mode and see the Pay slip.........
    If any problem Pls let us know.... and see other gurus post also.
    Regards,
    Prashant

  • Not able to get the connection to mssql server thro native sql

    Dear Experts,
               I have created a database connection to mssql server thro DBCO t.code.Am not able to get the connection when i am executing Native SQl for geting connection of mssql server.
    DATA: CON_NAME LIKE DBCON-CON_NAME VALUE 'BIW'.
    EXEC SQL.
      CONNECT TO :con_name AS 'C1'
    ENDEXEC.
    Am always getting sy-subrc = 4. The user name and password i have given in dbcon table having full authorization to access mssql database. I am working SAP ecc 5.0. Also both servers are running in windows.
    could anyone hlep me on this issue.
    Thanks in advance.

    Hello, the submitted error must be analyzed according to the Syntaxis and characteristics of the MSSQL database. See explanation of error.
    http://doc.ddart.net/mssql/sql2000/html/trblsql/tr_reslsyserr_1_1o1i.htm
    Error 156
    Severity Level 15
    Message Text
    Incorrect syntax near the keyword '%.*ls'.
    Explanation
    This error indicates that the syntax of a Transact-SQL statement is incorrect and that the syntax error was detected near the keyword specified in the error message. The most frequent causes for syntax errors are misspellings of Transact-SQL keywords or operators, and specifying the syntax of a Transact-SQL statement in the wrong order.
    One of the more complicated causes for this error may be a compatibility level mismatch for the current database. If the current database has a compatibility level other than 70, Microsoft® SQL Serveru2122 will not recognize any of the keywords that a database with a compatibility level of 70 would recognize.
    Action
    First, check the Transact-SQL statement syntax near the keyword specified in the error message. Because Transact-SQL language syntax can be very complex, SQL Server may incorrectly report the position of the syntax error as later in the Transact-SQL statement than it actually occurred. Second, reexamine the entire Transact-SQL statement that generated the error. Verify the syntax order of the statement.
    Ensure that the database does not have a compatibility level of 65 and has a compatibility level of 70.

  • The problem here is i am not able to get the data from the list

    hi all,
    i have the following code
    EnrichedProductCatalogue enrichedProductCatalogue1 = new EnrichedProductCatalogue();
    enrichedProductCatalogue1.setAssetCount(2);
    enrichedProductCatalogue1.setBlockingProduct("Weekend Freebee");
    enrichedProductCatalogue1.setBlockingReason("Compatability");
    ArrayList<String> availableActionsList = new ArrayList<String>();
    availableActionsList.add(EnrichedProductConstants.ADD.toString());
    availableActionsList.add(EnrichedProductConstants.REMOVE.toString());
    enrichedProductCatalogue1.setAvailaibleActions((ArrayList<String>)availableActionsList);
    BundleProduct bundleProduct = null;
    Product product = new Product();
    product = new Product();
    product.setProductName("International");
    product.setProductClassName("International");
    ArrayList<UiCategory> uiCategory = new ArrayList<UiCategory>();
    UiCategory uiCategory1 = new UiCategory();
    uiCategory1.setCategoryName("Simply");
    UiCategory uiCategory2 = new UiCategory();
    uiCategory2.setCategoryName("Freebees");
    uiCategory.add(uiCategory1);
    uiCategory.add(uiCategory2);
    product.setUiCategory(uiCategory);
    bundleProduct = new BundleProduct();
    bundleProduct.setCommercialProduct(product);
    enrichedProductCatalogue1.setBundleProduct(bundleProduct);
    listOfEnrichProducts.add(enrichedProductCatalogue1);
    listOfEnrichProducts.add(enrichedProductCatalogue1);
    here i have an list called listOfEnrichProducts.
    here i am adding two objects of enrichedProductCatalogue.
    which contains a object called BundleProduct.
    which has a reference for Product class.
    here this product class has a list which contains objects of another class called UiCategory.
    the problem here is i am not able to get the data from the list which contains UiCategory objects .
    the following is the UI
    <af:table var="row" rowBandingInterval="0" id="t1"
    value="#{pageFlowScope.sample1}"
    binding="#{pageFlowScope.sampleManagedBean.dataTable}"
    partialTriggers="apimethods ::apimethods">
    <af:column sortable="false" headerText="ProductName" id="c2">
    <af:outputText value="#{row.bundleProduct.commercialProduct.productName}" id="ot15"/>
    </af:column>
    <af:column sortable="false" headerText="ProductClass" id="c12">
    <af:outputText value="#{row.bundleProduct.commercialProduct.productClassName}" id="ot19"/>
    </af:column>
    <!--
    <af:column sortable="false" headerText="UICategoryName" id="c32">
    <af:forEach var="item" items="#{row.bundleProduct.commercialProduct.uiCategory}" >
    <af:outputText value="#{item.categoryName}" id="ot119"/>
    </af:forEach>
    </af:column>
    -->
    <af:column sortable="false" headerText="AssetCount" id="c22">
    <af:outputText value="#{row.assetCount}" id="ot1"/>
    </af:column>
    <af:column sortable="false" headerText="blockingReason" id="c3">
    <af:outputText value="#{row.blockingReason}" id="ot2"/>
    </af:column>
    <af:column sortable="false" headerText="blockingProduct" id="c4">
    <af:outputText value="#{row.blockingProduct}" id="ot3"/>
    </af:column>
    <!--<af:column sortable="false" headerText="availaibleActions" id="c1">
    <af:commandButton text="#{row.availaibleActions}" id="cb1"
    actionListener="#{pageFlowScope.sampleManagedBean.callAction}"
    partialSubmit="true">
    <af:setPropertyListener from="#{row.availaibleActions}"
    to="#{pageFlowScope.avalibleaction}" type="action"/>
    </af:commandButton>
    </af:column>-->
    </af:table>
    Can anyone pls give some solution ...

    Hi Frank,
    value="#{pageFlowScope.sample1}"
    here sample is
    Map<String, Object> flowScope1 =
    ADFContext.getCurrent().getPageFlowScope();
    flowScope.put("sample1", listOfEnrichProducts);
    this is not the problem . i am able to get all the values except the following .
    ArrayList<UiCategory> uiCategory = new ArrayList<UiCategory>();
    UiCategory uiCategory1 = new UiCategory();
    uiCategory1.setCategoryName("Simply");
    UiCategory uiCategory2 = new UiCategory();
    uiCategory2.setCategoryName("Freebees");
    uiCategory.add(uiCategory1);
    uiCategory.add(uiCategory2);
    product.setUiCategory(uiCategory);

Maybe you are looking for