Extending LOV View Object

Hi Guys,
Requirement - I have an oaf page which has got details like customer name and number which are styletext. Same page has got an lov Filed called contract number. Currently if i search by giving % in contract number lov field , its giving me all the contracts.
Now my requirement is that i want to allow user to be able to search only those contract which are related to that particular customer. ie i have to capture the customer number or name at run time and display contracts related to that customer only without giving any value. Customer name or number will keep on changing. So i have to capture that value from main page and display contracts related to that customer in LOV page so that user can select only those contracts which are related to that customer.
Thanks,
Rajeev Singh Rajput

The second 2 errors were solved by copying the ExpenditureTypeNoAwardLovVORowImpl.class to my myclasses directory under oracle/apps/icx/lov/server and then recompiling.
I'm still not sure why an empty .java file was added to my project causing the first error. I was doing this extension on a machine with Windows 2000 and I had created a new workspace (other than toolbox.jws) when I got this error. When I did the same extension on a machine with Windows XP and in the toolbax.jws workspace, the empty .java file didn't get added to my project and I didn't get the first compile error. Not sure if one of these variables was the cause.

Similar Messages

  • Getting error after extending a View Object

    Hi,
    I am extending a view object in iProcurement page, requisition lines details region. I find that the item description is created 3 times in that Message Component layout region. Once as message styled text, once Formatted text and the third item created is of type Link. In the standard page (without extending VO), the item description is shown only once. But whenever I am trying to extend the VO, the item description is appearing three times on the page. This is happening merely by extending the VO. If I try to hide one of the item through personalization (by making Render property False), then also no changes take place. Can anyone help me please?
    Mriganka

    Follow Sumit's suggestion. If that doesn't work, then you will have to use a jdev setup to debug the flow and analyze more.
    --Shiv                                                                                                                                                                                                                                                                           

  • How to execute Custom java data source LOV view object from a common mthd?

    Hi,
    My application contains Custom java data source implemented LOVs. I want to have a util method which gets the view accessor name, find the view accessor and execute it. But i couldn't find any API to get the view accessors by passing the name.
    Can anyone help me iin how best view accessors can be accessed in common but no by creating ViewRowImpl class (By every developer) and by accessing the RowSet getters?
    Thanks in advance.

    I am sorrry, let me tell my requirement clearly.
    My application is not data base driven. Data transaction happens using tuxedo server.
    We have entity driven VOs as well as programmatic VOs. Both are custom java data source implemented. Entity driven VOs will participate in transactions whereas programmatic VOs are used as List view object to show List of values.
    Custom java datasource implementation in BaseService Viewobject Impl class looks like
            private boolean callService = false;
        private List serviceCallInputParams = null;
        public BaseServiceViewObjectImpl()
            super();
         * Overridden for custom java data source support.
        protected void executeQueryForCollection(Object qc, Object[] params, int noUserParams)
            List dataFromService = null;
            if(callService)
                callService = retrieveDataFromService(serviceCallInputParams);
            setUserDataForCollection(qc, dataFromService != null? dataFromService.iterator(): null);   
            super.executeQueryForCollection(qc, params, noUserParams);
         * Overridden for custom java data source support.
        protected boolean hasNextForCollection(Object qc)
            Iterator<BaseDatum> datumItr = (Iterator<BaseDatum>) getUserDataForCollection(qc);
            if (datumItr != null && datumItr.hasNext())
                return true;
            callService = false;
            serviceCallInputParams = null;
            setFetchCompleteForCollection(qc, true);
            return false;
        }Individual screen developer, who want to load data to VO, will do something like the below code in their VO impl class
        public void fetch()
            BaseServiceViewObjectImpl vo = this;
            vo.setCallService(true);
            vo.setServiceCallInputParams(new ArrayList());
            vo.executeQuery();
        }As these custom java data source implemented LOV VOs comes across the screens, i want to have a util method at Base VOImpl class, that gets the view accessor name, finds the LOV VO instance, retrieves data for that. I want to do something like
         * Wrapper method available at Base Service ViewObject impl class
        public void fetchLOVData(String viewAccessorName, List serviewInputParams)
            // find the LOV View object instance
            BaseServiceViewObjectImpl lovViewObject  = (BaseServiceViewObjectImpl) findViewAccessor(viewAccessorName);
            // Get data for LOV view object from service
            lovViewObject.setCallService(true);
            lovViewObject.setServiceCallInputParams(serviewInputParams);
            lovViewObject.executeQuery();
    Question:
    1. Is it achievable?
    1. Is there any API available at View Object Impl class level, that gets the view accessor name and returns the exact LOV view object instance? If not, how can i achieve it?

  • Extending a View Object

    Hello,
    Which is the best way to extend a view object and change the where clause?
    i am customizing sourcing module, at the search suppplier option in the negotiation tab
    I create a new Controller, and i change the standard controller to the button.
    I can only get the query itself but not the where to modify.
    suppliersearchvoimpl.setWhereClause("pv.vendor_name = :1");
    suppliersearchvoimpl.setWhereClauseParams(null);
    suppliersearchvoimpl.setWhereClauseParam(0,"AUTO HAUS");
         suppliersearchvoimpl.executeQuery();
    I use that, but it is not working.
    The standard class has a dynamic query.
    Thanks

    aj,
    take a look at this
    when i press the Search button, i am not getting anything
    public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    OAApplicationModule am = (OAApplicationModule)oapagecontext.getApplicationModule(oawebbean);
                                  SupplierSearchVOImpl vo = (SupplierSearchVOImpl)am.findViewObject("SupplierSearchVO");
                             try
    vo.setWhereClause("pv.vendor_name = :1");
    vo.setWhereClauseParams(null);
    vo.setWhereClauseParam(0,"AUTO HAUS");
    vo.executeQuery();
    catch(Exception exception1)
    System.err.println(exception1 + " getting vendor category select");
    //super.processFormRequest(oapagecontext, oawebbean);
    thanks

  • Extending master view object to query detail records

    I have two view objects, master and detail, joined by a view link. I want to extend the VO so that I can use the detail columns in the master view criteria.
    My master view object is OutagesView
    SELECT Outages.OUTAGE_ID,
    Outages.START_DT,
    Outages.END_DT,
    Outages.OUTAGE_MESSAGE,
    Outages.OUTAGE_TYPE,
    Outages.UPDATE_ON,
    Outages.UPDATE_WHO,
    Outages.NAME,
    Outages.OUTAGE_SCOPE,
    Outages.OUTAGE_CATEGORY
    FROM OUTAGES Outages
    And the detail is OutageDetailsView
    SELECT Apps.DISPLAY_NAME,
    Apps.SHORT_DESCRIPTION,
    AppOutages.OUTAGE_ID detail_outage_id,
    AppOutages.APP_ID,
    AppOutages.NOTES,
    Apps.ID
    FROM APPS Apps, APP_OUTAGES AppOutages
    WHERE Apps.ID = AppOutages.APP_ID
    In the view link (OutagesView.OutageId to OutageDetailsView.DetailOutageId) I have checked the boxes to Generate Accessors in both the OutagesView and OutageDetailsView. This has allowed me to build the view criteria in OutagesView referencing OutagesDetailView .
    When I try run the AppModule, navigate to the view link and specify detail view criteria get an error:
    I can see when it creates the query it is specifying OutagesQRST in the subquery which doesn’t exist
    SELECT Outages.OUTAGE_ID,
    Outages.START_DT,
    Outages.END_DT,
    Outages.OUTAGE_MESSAGE,
    Outages.OUTAGE_TYPE,
    Outages.UPDATE_ON,
    Outages.UPDATE_WHO,
    Outages.NAME,
    Outages.OUTAGE_SCOPE,
    Outages.OUTAGE_CATEGORY
    FROM OUTAGES Outages
    WHERE ( ( (EXISTS
    (SELECT *
    FROM (SELECT Apps.DISPLAY_NAME,
    Apps.SHORT_DESCRIPTION,
    AppOutages.OUTAGE_ID detail_outage_id,
    AppOutages.APP_ID,
    AppOutages.NOTES,
    Apps.ID
    FROM APPS Apps, APP_OUTAGES AppOutages
    WHERE Apps.ID = AppOutages.APP_ID) QRSLTSQ1
    WHERE ( (UPPER (DISPLAY_NAME) LIKE
    UPPER (:pdisplayName || '%')))
    AND (OutagesQRSLT.OUTAGE_ID =
    QRSLTSQ1.DETAIL_OUTAGE_ID)))))
    If I set the VO to expert mode and override the create method in the view impl with
    public void create() {
    super.create();
    setNestedSelectForFullSql(false);
    I get the error SQL error during statement preparation:
    SELECT Apps.DISPLAY_NAME,
    Apps.SHORT_DESCRIPTION,
    AppOutages.OUTAGE_ID detail_outage_id,
    AppOutages.APP_ID,
    AppOutages.NOTES,
    Apps.ID
    FROM APPS Apps, APP_OUTAGES AppOutages
    WHERE Apps.ID = AppOutages.APP_ID WHERE DETAIL_OUTAGE_ID = :Bind_OutageId;
    Can someone please point me in the right direction?
    Thanks
    Kylie

    Hi Erp,
    Thanks for your response. The queries in the VOs are fine. It is when jdev creates the view criteria between the two that the problem occurs. In instance 1 it creates an alias OutagesQRSLT which doesn't exist. Had this of just been Outages the query would have run.
    I tried the to use the expert mode and override the create method in the view impl as I had seen it suggested in some other posts. This is when I got the second error with the :Bind_OutageId. I assumed that jdev would take care of the binding? Perhaps I am wrong. I did pass a value to :pdisplayName.
    I guess I need to know if overriding the create method is the right thing to do? and if so where I might be going wrong.
    Thanks
    Kylie

  • ADF faces:pass parameter from TextInput to LOV view object

    Txt1----- LOV1
    Txt2----- LOV2
    This case it's happen in the Create Mode
    LOV2 depend on Txt1 value for make filtration on the LOV2 View Object
    I use HttpSession for that, but in create mode it pass nothing in HttpSession
    How can I solve it?

    You'll need to do something like what's described in example#62 on my blog:
    http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#62

  • Problem extending standard ViewReceiptsSearchVO view object with logic on get method

    Hi All,
    EBS 12.1.3
    Database 11.2.0.3
    I am trying to extend the 3 VOs related to ViewReceiptsSearch.  I extended a seeded ViewReceiptsSearchVO view object.  I haven't made any changes yet, no columns added, nothing altered.  When I run this substitution, the "Received" column is null.  This column in the view used for the view object only selects NULL and uses the getter method for the attribute to populate the value.  The generated extension getter calls getAttributeInternal and skips the logic in the standard getter and the substituted view object is displaying the null in the screen.  The below discussion explains the problem very well except that the original posted had the issue in 11.5.10.2.  I am having this issue with 12.1.3.
    Problem extending standard view object with logic on get method
    The 3 VOs that I am having the problem are:
    ViewReceiptsSearchVO
    ViewReceiptsSearchReqVO
    ViewReceiptsSearchSupplierVO
    What do I need to do to get the "Received" column populated?  Please let me know any additional information you want to troubleshoot the issue.
    Thanks.

    Hi,
    Can you Please Share Extended ViewReceiptsSearchVO.xml and .jpx File?
    Thanks,
    Dilip

  • Problems extending View Object OpportunityCreateVO

    I'm attempting to extend a view object for use in the Sales Dashboard. I've read the relevant sections in the OA Developers guide, but I am still running into and issue with extending this VO.
    I have pulled down the entire oracle/apps/asn/ directory off the server and have place it in the $JDEV_HOME directory. I have created a new project, and imported server.xml for both oracle.apps.asn.opportunity.schema.server and oracle.apps.asn.opportunity.server. Two business components packages are created.
    The issue occurs when I try to open OpportunityCreateVO in the editor in order to select and copy the query (as instructed by the dev guide). When this is attempted, the following error message is displayed
    Copy operation failed, some edits may not be cancellable.
    Expected name instead of <.
    oracle.xml.parser.v2.XMLParseException: Expected name instead of <.
    I've validated the XML file, and it is well formed xml.
    Any ideas as to what might be wrong, or suggestions to correct? Has anyone ever ran into this error and found a solution.
    Thanks for your help.

    I did encounter a warning during the import of oracle.apps.asn.opportunity.schema.server.server.xml. However, it looked in JDev as though the files needed were imported to the project (specifically, i could see OpportunityEO under the package name). I find now, though, that if at this point you save all, close Jdeveloper, and restart then there are no objects under the imported package. The dependency stated in the warning was oracle.apps.asn.common.schema.server.AccessEO. Therefore, I tried importing this package into the project as well. Here I get the dependency warning again for oracle.apps.jtf.cac.schema.server.CacNotesEO. I pull this directory off of the middle tier and extract it to the JDev directorty. However, this directory does not have a server.xml file, and therefore I can not import this as a bc4j package. Can these be created manually?
    What am I missing? This seems to be much too complicated to extend a single VO, and I must be missing a step somewhere. Has anyone successfully extended an Opportunity View Object?

  • Extending View Object errors

    Sorry if this has been posted before. I looked through the explanations and couldn't find anything meaningful.
    Basically, I'm trying to extend a view object in PER(HR) application. The problem is, when I open the server.xml for this, it says a referenced object is unavailble. If I add the object it goes on and on and on, and this error message never really seems to stop. I have been battling with it for 2 days now.
    I read somewhere that it is possible to edit the server.xml file to select only the VO you want so that this error doesn't come up again but I tried commenting out all the other VO's but the error keeps on coming up.
    Worse, I cannot generate the java file for my new extension. Please if anyone can guide me through this I will be very grateful. This has got me tearing my hair out. I only want to make an extension and deploy it. Do I really need to download the entire oracle applications folder to make this work?
    Thanks a lot.

    Hi, I finally got the first part to work. I edited the server.xml file containing AppraisalVO which is what I wanted to extend. Then I also put the schema package there and didn't edit it's server.xml file and it worked.
    The problem is that after deploying, I get the following error:
    oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: JBO-25002: Definition xxoando.per.appraisals.server.XXOandoAppraisalVO of type View Definition not found
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1223)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
    I'm wondering if I made some mistake in deploying my extension. Can anyone help?
    Thanks.

  • Extending view object

    Hi all,
    I need to extend one view object(ReqSupplierVO). Please help with the following problems,
    1. What are the files i have to FTP and where i have to place those in my Jdeveloper directories.
    2. Im clear about extending,substituting the VO but when i transferred it how it will work. Any xml files to change.
    3. Is server.xml need. What its use.
    4. Please give step by step instructions if possible bcaz im new to this area.
    5. I refered Developers guide but im having doubt in basics that is needed files or the files to be modified and uploading the files.
    6. .jpx what its use is we have to FTP this file also?.
    Thanks,
    B.Kannan.

    1. What are the files i have to FTP and where i have to place those in my Jdeveloper directories.
    - Depends on what module or page you want to extend. You need to identify the relevant files by using the About this page feature in the page in the env which will give you details.
    3. Is server.xml need. What its use.
    - It is for ease of loading the files, server.xml will help you load all the relevant business objects. You need to have all the files listed in the server.xml in the project.
    4. Please give step by step instructions if possible bcaz im new to this area.
    - once you start loading files by opening server.xml it will automatically show errors on missing files which you need to ftp.
    5. I refered Developers guide but im having doubt in basics that is needed files or the files to be modified and uploading the files.
    - same as answer to question 1, you still need the libraries from the middle tier to run the page in jdev even if you are not modifying them. If your can map a drive to the $JAVA_TOP you can place that in the library otherwise you need to zip the appropriate module class files and add it to the library.
    6. .jpx what its use is we have to FTP this file also?.
    - You donot need them, you need them only after you had created the substitutions for running jpximporter.

  • Extending View Object Question

    When I extend a View Object in iSupplier Portal, and set project Substitutions.
    Does it mean that all pages that use this VO would be substitute by new VO?
    If the above answer is Yes.
    Is there any way to substitute VO only for one page?
    Also where can I find which pages use this VO, or I can only looking
    page by page to know who have used the VO that I intended to substitute ?
    Thanks a lot.

    When I extend a View Object in iSupplier Portal, and set project Substitutions.
    Does it mean that all pages that use this VO would be substitute by new VO?
    --Yes all the pages that use this VO would be substituted by new VO.
    If the above answer is Yes.
    Is there any way to substitute VO only for one page?
    -- No
    Also where can I find which pages use this VO, or I can only looking
    page by page to know who have used the VO that I intended to substitute ?
    -- You need to check the page by page the usage of the VO.
    ANoop

  • Extending View Object expert mode greyed out

    Hi,
    I am trying to extend the View Oject oracle.apps.irc.offers.server.IrcOfferSearchVO. While extending the expert mode check box is greyed out and I can't change the SQL. I wanted to add a table in the from list and add an extra where condition using the added table.
    Can you please help me how can I extend the view object if the expert mode is greyed out.
    Thanks,
    HC

    Hi Pratap,
    When I select Edit the seeded VO IrcOfferSearchVO, I received the below message.
    Warning: There are java errors for this object. The wizard will be read-only until they are corrected.
    file:/C:/..../myprojects/oracle/apps/irc/offers/server/IrcOfferSearchVORowImpl.java
    file:/C:/..../myprojects/oracle/apps/irc/offers/server/IrcOfferSearchVOImpl.java
    Its not allowing me to set the expert mode for the seeded VO.
    Thanks,
    HC

  • Maintaining data of view objects in cache memory for repeated usage

    Hi,
         We are developing an application which is having around 800 viewobjects that will be used as LOV in different screens. Therefore, it is decided to create a separate project for all such LOV view objects and keep the same in shared scope so that the data can be made availabe across the application.
         The application also communicates with different database schemas based on the logged-in county. For a particular user, LOV view object LovView1 should get the data fetched from Schema1 whereas for user2, the same LovView1 should get the data from Schema2.
         For this, we have created n number of ApplicationModules like AM1, AM2 etc in the project each one being connected to different database. A base application module also has been created and all the county specific AMs extend this base AM. Also all the LOV view object instances are included in this base AM so that they will be available in the county specific AMs also.The entire project is made as an ADF Library jar and this base AM is utilized by other projects for mapping the LOV by attaching the library.
         At runtime, whenever a particular viewobject is accessed, the findViewObject() method of the baseAM has been overridden and the logic is built in such a way to get the logged in user's county code from a session variable and based on the county, the corresponding AM is communicated with and the view object is returned.
         The view objects of the LOV project is used as LOV as well as for doing some other backend processes. In such cases, the view object is obtained and necessary filter conditions are appended to the view criteria and is executed to get the filtered rowset.
    Now, my questions are,
    1. Is it enough to create the jar for the LOVProject and access the view objects from the same baseAM across the application?
    2. I wish to keep all the data in cache memory to avoid repeated DB hits for all the LOV view objects. How it can be achieved? To be more precise, consider two users user1 and user2 logging into the application with different county. When user1 access a LOV viewobject for the first time, data needs to be fetched from the DB, kept in application scoped cache memory and return the rowset. On subsequent calls to the viewobject, the data needs to be retreived from the cache and not from the DB. When user2 also access the same LOV viewobject, the same logic as explained for user1 should happen. How can I achieve this? Actually my doubt is when user2 access, will the data pertaining to user1 remains available in cache? If not, how to make it retain the data in cache?
    3. I also wish to append a particular where condition to a viewobject irrespective of other considerations like logged in county, existing view criteria etc.. How can I do this? A separate thread for this requirement has been posted in the forum Including additional where clause conditions to view criteria dynamically
    Kindly give me your suggessions.
    Thanks in advance.
    Regards.

    Hi Vijay,
    regarding your questions:
    1. What is the difference between "TimesTen In-Memory Database" and
    "In-Memory Database Cache" in terms of features and licensing model?
    ==> Product has just been renamed and integrated better with the Oracle database - Times-Ten == In-Memory-Cache-Database
    2. Is "In-Memory Database Cache" option integrated with Oracle 10g
    installable or a separate installable (i.e. TimesTen installable with only
    cache feature)?
    ==> Seperate Installation
    3. Is "In-Memory Database Cache" option same as that of "TimesTen Cache
    Connect to Oracle" option in TimesTen In-Memory Database?
    ==> Please have a look here: http://www.oracle.com/technology/products/timesten/quickstart/cc_qs_index.html
    This explains the differences.
    4. After integrating "In-Memory Database Cache" option with Oracle 10g, data
    access will happen only through Oracle sqlplus or OCI calls. Am I right here
    in making this statement?
    ==> Please see above mentioned papers
    5. Is it possible to cache the result set of a join query in "In-Memory
    Database Cache"?
    ==> Again ... ;-)
    Kind regards
    Mike

  • A dynamic View object at runtime

    Say there is an inputtext component and one LOV. User will enter a number, say 7, and then press a Submit button. And then in the LOV, user will be able to see the numbers from 1 to 7.
    Is it possible to achieve the same?

    Hi,
    am not sure what exactly you are trying to achieve here,
    but from your description, it looks like a query dependency to me..
    So in your VO that will be used as the List of Values for the attribute you want, create a View Criteria that meets the requirement you want (seems like 'Less than or Equal To' is what you need).
    So eventually, you will end up with a ViewCriteria and one bindVarialble in that LOV View Object.
    Since you havent described your BC model, I can only assume that you have one main VO and both UI component are binded to attributes of that VO.
    Now go back to your main VO and update the LOV View AcCessor to use the ViewCriteria specifying the proper value on the Bind Variable.
    Hope this helps,
    Regards,
    Dimitrios.

  • ADF 11.1.1.2.0 : How to access a LOV view opject programatically?

    Hello all ,
    I have a problem that i have a master detail page , the master have 4 LOV fields which based on the same VO with 4 where conditions , so i have implemented the view object impl class to change the where clause upon the source of the LOV.
    The Problem is : At the first time i open any of the 4 LOVs the data is correct for this LOV because my implementation code in the vo class is invoked but after the first time when i open any of the other 3 LOVs the same data is shown that is because my code is not invoked again so the where clause has not changed (_the data of the LOV VO is cached_) , so i want to access the LOV VO to clear the cache.
    thanks alot for who care.

    hello sir,
    Thanks alot for your care and support but i can't understand what you mean in the 2nd solution :
    create a base LOV view object with no where and 4 subclassed LOVs with diferent where statement.
    I already did LOV VO with out where clause and in the VO class in the executeQueryForCollection() method i set the where clause upon the LOV invoked using a session parameter like this :
    if(session.lov.equals("lov1")){
    setWhereClause("+where clause 1+");
    }else if(session.lov.equals("lov2"){
    setWhereClause("+where clause 2+");
    and so on.

Maybe you are looking for