OAF, used with the clausule setWhereClause display object, show the error not correctly initialized.

Hi all,

I'm new with ofa and AM mi to VO that I use to find the information that is displayed to the user on a region of the query, after the user has pressed the button go demand CO AM tho load VO both use this information to display in a popup region to display and update. the main problem is the closing of popup region it send a shipment to the server one appears the error "View object may not be correctly initialized during update."

The main page and the pop-up window uses the same AM, the initM2mVo() and initTavleVo() are called by processRequest of the main PG CO, the popup dosen´t have a CO.

This AM using PG main and in the region of popup

package tasc.oracle.apps.tasc.m2m.imei.server;


import oracle.apps.fnd.framework.OAViewObject;
import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
import oracle.apps.fnd.framework.server.OAViewObjectImpl;


import oracle.jbo.Row;
import oracle.jbo.ViewObject;




// ---------------------------------------------------------------------
// ---    File generated by Oracle ADF Business Components Design Time.
// ---    Custom code may be added to this class.
// ---    Warning: Do not modify method signatures of generated methods.
// ---------------------------------------------------------------------
public class ActualizarImeiAMImpl extends OAApplicationModuleImpl {
    /**This is the default constructor (do not remove)
     */
    public ActualizarImeiAMImpl() {


    }


    /*******************************USE FOR CUSTOM CODE****************************/


    /******************************************************************************/


    /**
     * Inicializa el vo a través del cual se ejecutara la actualización del IMEI.
     * @param taskNumber
     */
    public void loadImeiVo(String taskNumber) {
        OAViewObject voTableQry = getTableQryVO1();


        if (voTableQry != null) {
            voTableQry.reset();
            voTableQry.setWhereClause(null);
            voTableQry.setWhereClauseParams(null);
            voTableQry.setWhereClause("TASK_NUMBER = :1");
            voTableQry.setWhereClauseParam(0, taskNumber);
            voTableQry.executeQuery();
            if (voTableQry.hasNext()) {
                voTableQry.next();
                String idActuacion =
                    (String)voTableQry.getCurrentRow().getAttribute("IdActuacion");
                String dsM2m =
                    (String)voTableQry.getCurrentRow().getAttribute("DsM2m");
                String imei =
                    (String)voTableQry.getCurrentRow().getAttribute("Imei");


                if (idActuacion != null) {
                    OAViewObjectImpl m2mVo = (OAViewObjectImpl)this.getTascTransEqInstM2mVO1();
                    m2mVo.reset();
                    if (!m2mVo.isPreparedForExecution()) {
                        m2mVo.setMaxFetchSize(0);
                        m2mVo.executeQuery();
                    }                  
                    m2mVo.setWhereClause(null);
                    m2mVo.setWhereClauseParams(null);
                    m2mVo.setWhereClause("ID_ACTUACION = :1 AND DS_M2M = :2 AND IMEI = :3 ");
                    m2mVo.setWhereClauseParam(0, idActuacion);
                    m2mVo.setWhereClauseParam(1, dsM2m);
                    m2mVo.setWhereClauseParam(2, imei);
                    m2mVo.executeQuery();
                    if(m2mVo.hasNext()){
                        m2mVo.next();
                    }
                 }
            }
        }
    }




    /**
     * Carga los valores disponibles de IMEI según el taskNumber al cual pertenezca
     * el  IMEI seleccionado.
     */
    public void loadImeiValuesList(String taskNumber) {
        ViewObject viewobject = this.getImeiListVO1();
        OAViewObject voTableQry = getTableQryVO1();


        if (voTableQry != null && voTableQry.getCurrentRow() != null) {


            String imeiType =
                (String)voTableQry.getCurrentRow().getAttribute("Attribute17");


            if (viewobject != null & imeiType != null) {
                viewobject.setWhereClause(null);
                viewobject.setWhereClauseParams(null);
                viewobject.setWhereClause("TASK_NUMBER = :1 AND ATTRIBUTE17 = :2");
                viewobject.setWhereClauseParam(0, taskNumber);
                viewobject.setWhereClauseParam(1, imeiType);
                viewobject.executeQuery();
           }
        }


    }
    /*******************************USE FOR CUSTOM CODE****************************/
    /******************************************************************************/


    /**Container's getter for TableVO1
     */
    public OAViewObjectImpl getTableVO1() {
        return (OAViewObjectImpl)findViewObject("TableVO1");
    }


    /**Sample main for debugging Business Components code using the tester.
     */
    public static void main(String[] args) { /* package name */
        /* Configuration Name */launchTester("tasc.oracle.apps.tasc.m2m.imei.server",
                                             "ActualizarImeiAMLocal");
    }


    /**Container's getter for TascTransEqInstM2mVO1
     */
    public OAViewObjectImpl getTascTransEqInstM2mVO1() {
        return (OAViewObjectImpl)findViewObject("TascTransEqInstM2mVO1");
    }


    /**Container's getter for ImeiListVO1
     */
    public OAViewObjectImpl getImeiListVO1() {
        return (OAViewObjectImpl)findViewObject("ImeiListVO1");
    }


    /**Container's getter for TableQryVO1
     */
    public OAViewObjectImpl getTableQryVO1() {
        return (OAViewObjectImpl)findViewObject("TableQryVO1");
    }


}


It's the CO of the main PG

/*===========================================================================+
|   Copyright (c) 2001, 2005 Oracle Corporation, Redwood Shores, CA, USA    |
|                         All rights reserved.                              |
+===========================================================================+
|  HISTORY                                                                  |
+===========================================================================*/
package tasc.oracle.apps.tasc.m2m.imei.webui;


import java.io.Serializable;


import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.framework.OAApplicationModule;
import oracle.apps.fnd.framework.webui.OAControllerImpl;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.TransactionUnitHelper;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.apps.fnd.framework.webui.beans.layout.OAQueryBean;




/**
* Controller for ...
*/
public class ActualizarImeiCO extends OAControllerImpl {
    public static final String RCS_ID = "$Header$";
    public static final boolean RCS_ID_RECORDED =
        VersionInfo.recordClassVersion(RCS_ID, "%packagename%");


    /**
     * Layout and page setup logic for a region.
     * @param pageContext the current OA page context
     * @param webBean the web bean corresponding to the region
     */
    public void processRequest(OAPageContext pageContext, OAWebBean webBean) {
        super.processRequest(pageContext, webBean);


        //get the handle to AM Attached to our Simple Page Region MainRegionRN
        //The page is passed as parameter to this method, hence we can get handle
        //to the AM quite easily
        OAApplicationModule am = pageContext.getApplicationModule(webBean);


        //verifica si la transaccion de creacion esta activa todavia
        if (TransactionUnitHelper.isTransactionUnitInProgress(pageContext,"ActualizarImeiM2m", false))
        {
            // deshace cambios y finaliza Txn
            am.invokeMethod("rollback");
            TransactionUnitHelper.endTransactionUnit(pageContext, "ActualizarImeiM2m");
        }

    }


    /**
     * Procedure to handle form submissions for form elements in
     * a region.
     * @param pageContext the current OA page context
     * @param webBean the web bean corresponding to the region
     */
    public void processFormRequest(OAPageContext pageContext,
                                   OAWebBean webBean) {


        super.processFormRequest(pageContext, webBean);


        //get the handle to AM Attached to our Simple Page Region MainRegionRN
        //The page is passed as parameter to this method, hence we can get handle
        //to the AM quite easily
        OAApplicationModule am = pageContext.getApplicationModule(webBean);


        //Detección del botón go de la región de query.
        this.queryButonGO(pageContext, webBean, am);


        this.updateImei(pageContext, am);


    }


    /**
     * Detección del botón go de la región de query
     * @param pageContext
     * @param webBean
     * @param am
     */
    public void queryButonGO(OAPageContext pageContext, OAWebBean webBean,
                             OAApplicationModule am) {
        OAQueryBean queryBean =
            (OAQueryBean)webBean.findIndexedChildRecursive("QueryRN");
        String idGo = queryBean.getGoButtonName();
        if (pageContext.getParameter(idGo) != null) {


            String tareaId = pageContext.getParameter("TaskNumberLovInput");


            //Inicializa el vo a través del cual se ejecutara la actualización del IMEI.
            Serializable[] parameters2 = { tareaId };
            Class[] paramTypes2 = { String.class };
            am.invokeMethod("loadImeiVo", parameters2, paramTypes2);


            //Carga los valores disponibles de IMEI según el taskNumber al cual pertenezca  el  IMEI seleccionado.
            Serializable[] parameters = { tareaId };
            Class[] paramTypes = { String.class };
            am.invokeMethod("loadImeiValuesList", parameters, paramTypes);
        }
    }
  
    public void updateImei(OAPageContext pageContext, OAApplicationModule am){
        if (pageContext.getParameter("ActualizarImei") != null){
          
            String imei = pageContext.getParameter("ImeiPopup");
            //TODO......
        }
    }


}


Thank you all.

I thing I got the problem.

I have the following configuration:

  • A Home Page and external RN which is call as popup in the homepage
  • 2 VO, java code queries, one to capture information that is used to query the VO 2 that I use to update the information in the pop-up window.
  • 01:00, this is the card only in the main Page. (Initially, I had mapped to AM even external RN as the main PG, but I take it off).

The solution was to remove the mapping of the AOS of the outer region and in the messageimput of the whole of the outer region of the instance of the view and the view attribute manually in this field (http://screencast.com/t/uDTALEedCh do not use the Wizard) that one instantiation am AM, so the problem, it seems that was that defining an AM in the outer region create a new instance , causing that he cannot see the information I manually load in the t by request it them.

in this case there is no need to use the following code, because the lines are responsibility of the query information in the java code, it must only be made when inserting a new line.

    public void initM2mVo(){
        //get a handle to the View Object that we wish to initialize
        OAViewObject vo = (OAViewObject)this.getTascTransEqInstM2mVO1();
        if (!vo.isPreparedForExecution()) {
            vo.setMaxFetchSize(0);
            vo.executeQuery();
        }
        //Create a blank Row
        Row row = vo.createRow();
        //Attach that blank row to the VO. Data will be fed into this row, when the user types into the fields
        vo.insertRow(row);
        //Set the status of the blank row to initialized. This tells OA Framework that record is blank and must not be included in DML
        //Operations until    changes are made to its underlying VO [via screen fields]
        row.setNewRowState(Row.STATUS_INITIALIZED);
    }

Tags: Oracle Applications

Similar Questions

  • All my browsers comes up with the error "not responding".

    Original title: all my browsers.

    All my browsers, tapΘ, mozilla firefox Opera etc, I get a message for each one that says don't ANSWERS DO NOT.    What should I do to make them react?

    Hi maureenmassmann,
     
    -Were you able to navigate online with no problems before?
     
    -Remember you proceed with recent computer between the calendar changes when things worked fine and now?
     
    -Can run you other applications without any problem?
     
    -What type of Internet do you have? Is it a cable or a wireless connection?
     
    Try the steps listed in the article below and check if you can successfully launch Internet Explorer.
     
     
    If you use a wired connection, start your computer in Mode safe mode with networking and check if you go online here.
     

    Networking Mode safe mode starts Windows in mode safe mode and includes the network drivers and services needed to access the Internet or other computers on your network.

    A description of the options to start in Windows XP Mode

  • This identifier apple has not yet been used with the App store.

    I bought my macbook pro to my brother and always used without my Apple ID and then I decided to restore the macbook to the factory because of some problems with the performance setting, when I hit install OS X Yosemite on the disk, it asks you to login Apple ID and when I try to login with my account , he says "this identifier Apple has not yet been used with the App store" Please check your account information, when I hit "see" nothing happens and it of kind of stuck and makes me restart the process and enter my apple ID and password. "

    I don't know what the problem is and now I can't open my macbook to use

    Because the computer has been configured using Apple ID of your brother, it is bound to this ID. If you have never downloaded Yosemite, you can not install it. Ask your brother to insert his Apple ID, so you can get the computer operational again. Then, go to the App Store, sign in with your ID and check the purchases tab to see if the Yosemite is an option. If this is not the case, download El Capitan and see if it will install. If you want to do a clean install, quit the installer and the program below allows you to create a bootable USB key. Boot from it, wipe the hard drive and then install El Capitan. When you restart normally it will be your computer. See also the link for sale.

    Bootable USB Flash Drive-Diskmaker X

    Sale of old Mac (4)          Apple support

  • "this identifier apple is still used with the app store - 3times deducted from my credit card.

    I am trying to connect to the iStore, but I receive the following message: "" this identifier apple is still used with the app store.

    I following the registration process, but nothing happened just 3times deducted from my credit card...

    I filled the fields are all required and still does not work, just my credit card losing ~ $7 Dollar (2.2 dollar every time with the following msg: ITUNES ITUNES.COM/BILL.) COM READ) I don't want to spend more money for a simple registration... Thanks for help.

    They are fresh from holding temporary store, your card issuer should remove in a few days or more: on the payment card's authorization in the iTunes Store - Apple Support

    A card having a chance to be accepted it must be registered with the same name and address (including the format and spacing etc) that you have on your iTunes account and have been issued by a bank in the country where you are (and, therefore, the country that sits on your iTunes account). If it is you can check with the card issuer to see if it is them who are in decline. Or do you have another card you could try?

    Or to create a new account without giving details of the payment: create an iTunes Store account, App Store and iBooks Store without credit card or other method of payment - Apple Support

  • What is the best model of tv to use with the apple tv?

    What is the best model of tv to use with the apple tv

    No matter what TV with an HDMI input and at least 1080 p resolution.

  • Hi I have a new Apple Watch - sport Strip. Is it possible to buy separately strips that can be used with the watch?

    Hi I got a new Apple Watch as a gift at Christmas - sport band, white, 42 mm. 7000 series. Since this is my first Apple Watch, I wonder if I should check all options at the store before opening the box. Is it possible to buy separately strips that can be used with the watch?  Thank you, in advance, for any advice, guidance, you can offer the wisdom.

    Hi, Kate

    Yes - any band Apple Watch 42 mm fits your Apple Watch.

    Non-Sport bands have different lengths, then check the circumference of your wrist and see Apple Watch Sizing Guide (that compares all the Apple strips) before you buy separate bands:

    http://www.Apple.com/shop/watch/Sizing-Guide

    Try them in an Apple Store, it's also a great option.

    The Sport of Apple Watch also has an anodized aluminum housing, while the non-sport bands have different metals of cards and/or links (this does not affect the compatibility, only appearance).

    Information on how to pass the tapes: change your Apple Watch band - Apple Support

  • Any camera regardless of the interface is available for use with the LabView interface.

    Hello

    I intend to go for some CMOS camera,

    but I have a huge doubt before buying, the camera of menttioned above is not anywhere in this list. Nor can I see any type being supported USB device.

    The question is

    1. is a camera regardless of the interface is available for use with the LabView interface?
    2. Can I build a VI to communicate with any device image and recording of camera and take the data?

    Any kind of help or advice is greatly appreciated... I have to buy a CMOS camera and begin to run.

    Thank you...

    Hello Virginia,.

    I am pleased that this information has been useful, one thing I wanted to mention is that USB 3.0 has its own standard USB 3.0 Vision which is currently not supported. If this camera is also Direct Show compatible then you will be able to acquire an image using IMAQdx and manipulate all the attributes that are published to the API Live Show.

    I hope that USB 3.0 Vision will be supported in the near future, and we tentatively announced for this standard of communication for the August 2013 Vision Acquisition Softwareupdate.

    See you soon,.

    -Joel

  • The SD cards are recommended to be used with the cDAQ 9133?

    Embedded controllers that are the recommended type and size recommended SD cards to be used with the cDAQ Win7 9132 and 9133?

    Hardware specifications for two controllers, you will find that the SD and SDHC cards up to 32 GB are supported.  There is no model or brand recommended, but there are 16 GB (783658 - 01) and 32 GB (783659-01) maps available for purchase through the OR.  You can find those listed in the accessories section available hardware user manual.  See the fees section of the controller product page for more details.

    EDIT: Linked to the UNIFIED and product Messaging page

  • Messaging Instant Lync can be used with the Hosted Exchange mail server?

    Messaging Instant Lync can be used with the Hosted Exchange mail server? Let me rephrase the question. As everyone knows already Lync messenger is used with Office 365, but can be used with the same way hosted exchange server, it is used with Office 365?

    You will find support for MS Lync in these forums-online http://social.technet.microsoft.com/Forums/en-us/category/ocs

  • Cannot set the restore point with the error "The Volume Shadow Copy service used by the system restore does not work."

    Cannot set the restore point with the error "The Volume Shadow Copy service used by the system restore does not work."  How can this be repaired?

    Hi rebick,.

    Try the troubleshooting steps presented by spirit X in this thread.

    Dena
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Error 907: This connection cannot be used with the VZAccess Manager

    original title: error message appear on my screen

    I get this error message appear on my screen every two seconds:
    "This connection cannot be used with the VZAccess Manager.

    Error 907 "

    Hello

    Disable/remove your Verizon Wireless software or contact Verizon for help with this error. Posts like this occur generally when third-party utilities are used to manage connections and issues must be resolved by the Distributor, because they are often specific to that software.

    Verizon support suggest that you go in the Options Internet/Control Panel and on the Connections tab, check the option "never establish a connection" is selected.

    Good luck, Rick Rogers, aka "Crazy" - Microsoft MVP http://mvp.support.microsoft.com Windows help - www.rickrogers.org

  • When I use the Client for NFS provided by Windows 7, I'm unable to connect. The "mount \\ip address\share Z:" command fails with the error code "the path not found network".

    Identification of customer's Windows 7 NFS UID GID information

    I am trying to connect to the Windows 7 Client NFS on a server running on a computer (VxWorks) NFS.  I am able to properly connect Client NFS software by a 3rd party on the NFS server.  However, when I use the Client for NFS provided by Windows 7, I am unable to connect.  The \\ip address\share Z: mount"command fails with the error code"the path not found network ".  I can't do a ping of the computer running the NFS server.

    The NFS Client operating system: Windows 7 Ultimate, 64-bit

    Data captured by Wireshark

    MOUNT V1 EXPORT call 3rd party client
    Identification information Flavor: AUTH_UNIX (1)
    Length: 32
    Stamp: 0xc7065970

    Machine name: PC
    UID: 1000
    GID: 1000

    MOUNT V1 EXPORT appeal of the NFS client
    Identification information Flavor: AUTH_NULL (0)
    Length: 0

    It seems that the credentials of NFS Client are not correct.  How can I change the flavor of AUTH_UNIX and the UID and GID to 1000?

    Hello VDAEMP,

    As Eddie and Sudarshan has said, the Microsoft Answers community focuses on issues and problems related to the consumer environment. Please join the public IT pro TechNet forums below:
    TechNet - Windows Server
     
    Thank you

  • Has anyone found or written a "Win 7 USB driver" for use with the Olympus C-3000Z digital camera?

    Has anyone found or written a "Win 7 USB driver" for use with the Olympus C-3000Z digital camera?

    On Fri, 28 September 2012 18:02:40 + 0000, bertcoy wrote:

    Has anyone found or written a "Win 7 USB driver" for use with the Olympus C-3000Z digital camera?

    Looking at the website of Olympus, it would appear that we do not
    There are.

    But you do not need a driver because you do not need to connect your
    camera to the computer. Just put the memory card in a card reader and
    access like this instead. I prefer to do it with my camera,
    because it is easier, faster and uses no battery in the camera.

    Ken Blake, Microsoft MVP

  • Unable to connect to oracle DB using VBA and you are prompted with the error:-the client components and Oracle network have not been found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or installation of the

    Hello

    It would be helpful to me if someone can give me instructions on setting the version of driver or oracle client required to connect to the the Oracle DB using excel VBA

    My config: -.

    Windows - 8-64 bit

    Excel 2013-32 bit

    The components of the client / I should install, and how to solve the question below...

    I tried the VBA code... but you are prompted with the error message above

    Void Oracle()

    Con Dim As ADODB. Connection

    Dim rs As ADODB. Recordset

    Dim query As String

    The con value = New ADODB. Connection

    Set rs = New ADODB. Recordset

    strCon = "Driver = {Microsoft ODBC for Oracle}"; "." & _

    "CONNECTSTRING = (DESCRIPTION ="& _.

    "(ADDRESS =(PROTOCOL=TCP)"& _

    "(HOST = HostNumber)(PORT=PortNumber))" & _

    "(CONNECT_DATA = (SID = SIDNumber))); UID = username; pwd = password; »

    con. Open (strcon)

    If err. <>Number 0 then

    MsgBox ("Oracle error:" & vbCrLf & err.) Description)

    On the other

    MsgBox ("Oracle DB Connection successful.")

    End If

    End Sub

    I'll replace it with the values of host origin...

    Thanks for the suggestion you till u gave...

    complete solution is in the link below...

    https://itkbs.WordPress.com/2014/07/28/how-to-install-ODBC-driver-for-Oracle-in-Windows-7/

  • Need advice. Weather a small wacom tablet will be adequate for photography photoshop, or should I buy way. I want to use with the 13 "macbook pro

    Need advice. Weather a small wacom tablet will be adequate for photography using photoshop, or should I buy way. I want to use with the 13 "macbook pro

    If you carry your computer in a bag that is made for a 13 "laptop, the small tablet will fit as well. I have done this and found the small tablet to work properly. However, I found a screen 13 inches of being terribly cramped for using Photoshop.

Maybe you are looking for