Reimport the Model

Hi,
    I have created a Model for a Web DynPro application using Adaptive RFC. It is working fine when pointed to development. But when I pointed to Quality, it is throwing error. I have changed the message server to Quality server while creating JCO connection in Content Administration. Do I have to reimport the Model?
Regards,
Vaibhav

Hi All,
    When we deploy after changing SLD configuration(R/3 Dev to R/3 Quality) we are getting following message:
<b>Accessing System QAS is not possible because RFC Metadata was retrieved using System DEV. Please assure you have configured the RFC Connections properly. A Server restart may be necessary!</b>
Regards,
Vaibhav

Similar Messages

  • Error in reimporting the model

    hi,
        I tried to import a model in which a table is added in the rfc.for the first time when I reimported it was working fine.then for some reason I have reverted the code back in DTR.then when I tried to reimport the model
    I am getting the following error.i even tried restarting the server and reload the application.
    description          
    RFC.Tablename cannot be resolved (or is not a valid type) for the argument o of the method addInteral tablename     
    resource
    RFC_Input.java     
    folder name
    location
    line 169
    description          
    RFC.Tablename cannot be resolved (or is not a valid type) for the argument o of the method addInteral tablename     
    resource
    RFC_Output.java     
    folder name
    location
    line 147

    Hi Arun,
    Looks like metadata information is corrupted !!
    Delete the model and reimport.You need to do model binding also.
    Regards, Anilkumar

  • Reimport of the model

    Hi All
    We have added the custom fields in the leave encashment request page in sap ECC .
    How can we replicate the same fields in the portal webdynpro java leave encashment request page .
    I have restarted the portal server .But I dont find the custom fields in the personalization popup screen.
    Next I tried by importing  ESS leave encashment  war file onto nwds for reimporting the model.
    But I dont get the proper path where do we need to reimport the model .
    please find the screen shot .
    awaiting for the solution .
    Thanks & Regards
    Deepika

    awaiting for response .
    Thanks & Regards
    Deepika

  • How to Reimport a Model

    Hi,
            I already created a model and running the application.Now one more table is added to that model by SAP team.So by trying to deploy the application it is giving a runtime exception as that particular tablefilename.java not found and it as a "Class not found exception"
    Now i clicked on my model and selcted "Reimporting the model" and i restarted the server.Only that pariticular TableFilename.java gets added to my files list  but the main module which is using this table didnt get updated.so i am getting build errors.
    Can u plz help me out
    Regards
    Padma

    Padma-
    A few questions:
    1. When you re-imported your model did you get a list of deltas?
    2. Did this list include the new tables?
    3. Did you Reload your development component?
    3. Did you rebuild and redeploy your application?
    if your answer to all of the above is yes then please check the logs and share the error message.
    Cheers-
    Atul
    Edited by: Atul Savur on Feb 21, 2008 11:29 PM

  • Error in reimporting a model

    hello all,
    I am working on ess personal information->personal data  web dynpro application.
    backend guys add a extra field in rfc strucure i have to just display this field on screen.
    i did reimport model ,
    then did the model binding for this extra added field.
    then i build the application and deployed it .
    but after that i getting an error but if i remove that extra field from mapping then there is no error .
    jco is ok.
    below is the error
    com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Access via NULL object reference not possible., error key: RFC_ERROR_SYSTEM_FAILURE
            at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:101)
            at com.sap.xss.per.fc.persinfo.FcPersInfo.onCleanup(FcPersInfo.java:614)
            at com.sap.xss.per.fc.persinfo.wdp.InternalFcPersInfo.onCleanup(InternalFcPersInfo.java:807)
            at com.sap.xss.per.fc.persinfo.FcPersInfoInterface.onCleanup(FcPersInfoInterface.java:246)
            at com.sap.xss.per.fc.persinfo.wdp.InternalFcPersInfoInterface.onCleanup(InternalFcPersInfoInterface.java:299)
            at com.sap.xss.per.fc.persinfo.wdp.InternalFcPersInfoInterface$External.onCleanup(InternalFcPersInfoInterface.java:463)
            at com.sap.pcuigp.xssfpm.wd.FPMComponent.cleanUp(FPMComponent.java:645)
            at com.sap.pcuigp.xssfpm.wd.FPMComponent.access$1000(FPMComponent.java:78)
            at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPM.exitCalled(FPMComponent.java:965)
            at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPMProxy.exitCalled(FPMComponent.java:1136)
            at com.sap.pcuigp.xssfpm.wd.BackendConnections.wdDoExit(BackendConnections.java:124)
            at com.sap.pcuigp.xssfpm.wd.wdp.InternalBackendConnections.wdDoExit(InternalBackendConnections.java:228)
            at com.sap.tc.webdynpro.progmodel.generation.DelegatingCustomController.doExit(DelegatingCustomController.java:77)
            at com.sap.tc.webdynpro.progmodel.controller.Controller.exitController(Controller.java:180)
            at com.sap.tc.webdynpro.progmodel.controller.Controller.exit(Controller.java:154)
            at com.sap.tc.webdynpro.progmodel.controller.Component.exitController(Component.java:251)
            at com.sap.tc.webdynpro.progmodel.controller.Controller.exit(Controller.java:154)
            at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.exit(ClientComponent.java:219)
            at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.exit(ClientApplication.java:474)
            at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.destroy(ClientApplication.java:527)
            at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.destroy(ApplicationSession.java:396)
            at com.sap.tc.webdynpro.clientserver.session.ClientWindow.destroyApplicationSession(ClientWindow.java:235)
            at com.sap.tc.webdynpro.clientserver.session.ClientSession.doDestroyApplication(ClientSession.java:1003)
            at com.sap.tc.webdynpro.clientserver.session.ClientSession.doSessionManagementPostProcessing(ClientSession.java:789)
            at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:264)
            at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
            at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
            at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:860)
            at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.create(AbstractApplicationProxy.java:220)
            at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1288)
            at com.sap.portal.pb.PageBuilder.createPage(PageBuilder.java:355)
            at com.sap.portal.pb.PageBuilder.init(PageBuilder.java:548)
    Thanks .
    Punit

    Hi Punit,
    Follow the two things
    1.  Make sure that the JCO you are using is working fine.
        Check that the userid and password is still valid.
    2. Check whether the RFC is working fine or any changes happened? Log in with the user same as    portal and then execute the RFC.
    3. Restart your server and NWDS.
    it will solve your problem.
    thanks

  • I canu00B4t reimport a model

    Hi forum
    When i try to reimport a "model" i got the next error:
    !MESSAGE Apr 28, 2008 12:58:45...         com.sap.ide.webdynpro.ui.service.ServicesUI          [Thread[main,5,main]] Error: Internal error
       Plugin name: Web Dynpro Model Editor
       Plugin ID  : com.sap.ide.webdynpro.modeleditor
       Class      : com.sap.ide.webdynpro.modeleditor.ModelEditorCallback
       Method     : ReimportModel
       Message    : An error ocurred. See error log for more details.
       Exception  : java.lang.NullPointerException: null
    !STACK 0
    java.lang.NullPointerException
         at com.sap.ide.jcb.core.service.SAPLogonHelper.<init>(SAPLogonHelper.java:48)
         at com.sap.ide.jcb.core.wizardpages.SAPLogonPage$MessageServerPane.fillUpLoadBalancingPaneSystems(SAPLogonPage.java:1003)
         at com.sap.ide.jcb.core.wizardpages.SAPLogonPage$MessageServerPane.show(SAPLogonPage.java:303)
         at com.sap.ide.jcb.core.wizardpages.SAPLogonPage.createControl(SAPLogonPage.java:91)
         at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard.createPageControls(ModelWizard.java:408)
         at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:524)
         at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:473)
         at org.eclipse.jface.window.Window.create(Window.java:302)
         at org.eclipse.jface.window.Window.open(Window.java:552)
         at com.sap.ide.webdynpro.modeleditor.ModelEditorCallback.reimportModel(ModelEditorCallback.java:218)
         at com.sap.ide.webdynpro.service.modeleditor.ModelService.reImportModel(ModelService.java:207)
         at com.sap.ide.webdynpro.service.modeleditor.ServiceWithUI.reImportModel(ServiceWithUI.java:120)
         at com.sap.ide.webdynpro.tsmodel.application.actions.ReimportModelAction.run(ReimportModelAction.java:11)
         at com.sap.ide.webdynpro.projectbrowser.actions.PBReimportModelAction.run(PBReimportModelAction.java:77)
         at com.sap.ide.webdynpro.projectbrowser.actions.PBDevelopmentObjectAction.runInternal(PBDevelopmentObjectAction.java:80)
         at com.sap.ide.webdynpro.projectbrowser.actions.PBDevelopmentObjectAction.run(PBDevelopmentObjectAction.java:61)
         at com.tssap.selena.model.extension.action.SelenaActionCollector$GenericElementActionWrapper.run(SelenaActionCollector.java:224)
         at com.tssap.util.ui.menu.MenuFactory$MuSiAction.saveRunAction(MenuFactory.java:1425)
         at com.tssap.util.ui.menu.MenuFactory$MuSiAction.run(MenuFactory.java:1407)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction.processInternal(MenuFactory.java:616)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction.access$100(MenuFactory.java:586)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction$BusyProcessWorker.run(MenuFactory.java:716)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction.process(MenuFactory.java:610)
         at com.tssap.util.ui.menu.internal.MenuListenerFactory$ProcessAdapter.widgetSelected(MenuListenerFactory.java:172)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
         at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
         at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)
         at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
         at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:291)
         at com.sap.ide.eclipse.startup.Main.run(Main.java:789)
         at com.sap.ide.eclipse.startup.Main.main(Main.java:607)
    I have the  7.0.11 SAP Netweaver Developer Studio version.
    Can help me, ?
    Edited by: Josue Cruz on Apr 28, 2008 8:07 PM

    Hi Göran
    Thnks for your answer
    This always has been happening, i´m thinking that this is a problem of Windows Vista Operating System, because one coworker has the same project and the same NWDS with the same SP but he has Windows XP.
    I am working with Adaptive RFC Model.
    I can´t logon in anyone backend system (R/3), because i can´t open de wizard reimport model...
    well...
    t hnks

  • Problems with reimport a model

    Hello all,
    we changed the structure of our rfc function and want to reimport the new structure in WebDynro but nothing happends. Has anyone have any idea?
    We changed the name of table parameters and the type. I also tryed to delete the model and create it new with the same name, but it occurse so many errors, that I think that's not the right way.
    Best regards
    Petra

    Hi Petra,
    Are you getting error during compilation or during execution.
    If you are getting errors during compilation, I believe that will mostly have to do with the parameter names that have changed and are being referenced in the code.
    Are these the errors that you are talking about or some others. If this is the case, you will have to change your code to reflect the new parameter names and types in the code.
    Hope this helps.
    Pavan

  • The arguments' name change when I re-import the model

    Hello
    Some times, when I re-import Java bean model in developer studio (SAP NetWeaver 7.1 Composition Environment SP06 PAT0001), the arguments' name change to arg0, arg1u2026. 
    For example:
    I have some method in the EJB model, such:
    public String getCustomerName( String customerId);
    Some times the reimport is ok, but some times the reimport changes the arguments' name, like:
    public String getCustomerName( String arg0);
    What are Iu2019m doing wrong?
    Regards
    Janeth

    Hi everybody,
    i have the same problem. i also tried to reimport different ejbs into different wd-projects. allways the same problem. and i didn't found a workaround for this.
    i also deleted the model and made a complete new import. same result.
    i also created a new fresh web-dynpro dc  and created a new model there, also same result.
    I assume that it maybee has something to do with an nwds-update i made last week (so between last model-import and new model-import).
    does anybody has a solution for this so far?
    regards
    matthias

  • Changes in RFCs and reimport a model.

    Hello everybody
    I've developed wd application. I need to call RFCs , so I've created a rfc model by doing this. But now the RFCs have been modifyed so I need to reimport a new model. The problem is that this action causes big problems in my aplication and makes it insonsistent.
    Do you know that's the best way to do this ?.
    Thanks in advance.
    Best regards.
    Fernando

    Hi,
    I've had this a few times and I've found it is sometimes easier to simply delete your context from the Model controller and re-create it.  Then update all of the contexts in your other components.
    It seems that if you change an RFC and then re-import the model sometimes your contexts can loose the mappings even if things haven't changed.
    Hope this helps.
    Gareth Ryan.
    Message was edited by: Gareth Ryan
    Message was edited by: Gareth Ryan

  • Error while Reimporting the table

    Hi All,
    I am getting the following error while reimporting the target table.
    java.lang.NullPointerException.
    Can anybody tell me the solution plz.
    Regards,
    Siva

    This ussualy means that object with required ID is missing or OWB thinks it's missing. Try deleting it, and than do the import.

  • Using the Model Facade Pattern in a Java EE 5 Web application

    Hi,
    Yutaka and I did a Tech tip
    http://java.sun.com/mailers/techtips/enterprise/2006/TechTips_Nov06.html#2 on using a model facade pattern in Java EE 5 web-only applications recently. We got some questions about it, and these were some of the questions raised...
    Question 1) the first part of the tech tip(it has two articles in it) http://java.sun.com/mailers/techtips/enterprise/2006/TechTips_Nov06.html showed how to access Java Persistence objects directly from a JSF managed bean, is this a good practice?
    Question 2) when to use a facade(as mentioned in the second part of tech tip) ?
    and maybe
    Question 3) why doesn't the platform make this easier and provide the facade for you?
    Briefly, I will take a shot at answering these three questions
    Answer 1) You can access Java persistence directly from your managed beans, but as your application grows and you start to add more JSF managed beans or other web components(servlets, JSP pages etc) that also directly access Java Persistence objects, you will start to see that you are cutting/pasting similiar code to handle the transactions and to handle the Java Persistence EntityManager and other APIs in many places. So for larger applications, it is a good practice to introduce a model facade to centralize code and encapsulate teh details of the domain model management
    Answer 2) IAs mentioned in answer 1, its good to use a model facade when your application starts to grow. For simple cases a spearate model facade class may not be needed and having managed beans do some of the work is a fast way to jumpstart you application development. But a facade can help keep the code clean and easier to maintain as the aplication grows.
    Answer 3) First note that both of the articles in the tech tip were about pure web apps(not using any EJBs) and running on the Java EE5 platform. Yes it would be nice if a facility like this was made available for web-only applications(those not using EJBs). But for web-only applications you will need to use a hand-rolled facade as we outlined in the tech tip. The Java EE platform does provide a way to make implementing a facde easier though, and the solution for that is to use a Session Bean. This solution does require that you use ythe EJB container and have a Session Bean facade to access your Java Persistence objects and manage the transactions. The EJB Session Facade can do a lot of the work for you and you dont have to write code to manage the transactions or manage the EntityManager. This solution was not covered in this tech tip article but is covered in the Java BluePrints Solutions Catalog for Perssitence at
    https://blueprints.dev.java.net/bpcatalog/ee5/persistence/facade.html in the section "Strategy 2: Using a Session Bean Facade" . Maybe we can cover that in a future tech tip.
    Please ask anymore questions about the tech tip topic on this forum and we will try to answer.
    hth,
    Sean

    Hi Sean,
    I'm working on an implementation of the Model Facade pattern where you can possibly have many facades designed as services. Each service extends a basic POJO class which I'm calling CRUDService: its short code is provided below for your convenience.
    The CRUDService class is meant to generalize CRUD operations regardless of the type of the object being used. So the service can be called as follows, for example:
    Job flightAtt = new Job();
    SERVICE.create(flightAtt);
    Runway r = (Runway) SERVICE.read(Runway.class, 2);
    Employee e = (Employee) SERVICE.read(Employee.class, 4);
    SERVICE.update(e);
    SERVICE.delete(r);SERVICE is a Singleton, the only instance of some service class extending CRUDService. Such a class will always include other methods encapsulating named queries, so the client won't need to know anything about the persistence layer.
    Please notice that, in this scenario, DAOs aren't needed anymore as their role is now distributed among CRUDService and its subclasses.
    My questions, then:
    . Do you see any obvious pitfalls in what I've just described?
    . Do you think traditional DAOs should still be used under JPA?
    . It seems to me the Model Facade pattern isn't widely used because such a role can be fulfilled by frameworks like Spring... Would you agree?
    Thanks so much,
    Cristina Belderrain
    Sao Paulo, Brazil
    public class CRUDService {
        protected static final Logger LOGGER = Logger.
            getLogger(Logger.GLOBAL_LOGGER_NAME);
        protected EntityManager em;
        protected EntityTransaction tx;
        private enum TransactionType { CREATE, UPDATE, DELETE };
        protected CRUDService(String persistenceUnit) {
            em = Persistence.createEntityManagerFactory(persistenceUnit).
                createEntityManager();
            tx = em.getTransaction();
        public boolean create(Object obj) {
            return execTransaction(obj, TransactionType.CREATE);
        public Object read(Class type, Object id) {
            return em.find(type, id);
        public boolean update(Object obj) {
            return execTransaction(obj, TransactionType.UPDATE);
        public boolean delete(Object obj) {
            return execTransaction(obj, TransactionType.DELETE);
        private boolean execTransaction(Object obj, TransactionType txType) {
            try {
                tx.begin();
                if (txType.equals(TransactionType.CREATE))
                    em.persist(obj);
                else if (txType.equals(TransactionType.UPDATE))
                    em.merge(obj);
                else if (txType.equals(TransactionType.DELETE))
                    em.remove(obj);
                tx.commit();
            } finally {
                if (tx.isActive()) {
                    LOGGER.severe(txType + " FAILED: ROLLING BACK!");
                    tx.rollback();
                    return false;
                } else {
                    LOGGER.info(txType + " SUCCESSFUL.");
                    return true;
    }

  • MVC Design Help, Single Servlet, How do I access the Model and DB

    Hi all. New here and looking for some help.
    I am currently writing a website that allows the creation of users, that may upload articles and post comments on articles. Im trying to develop using MVC. I have a single controller servlet that processes POST actions throughout the site (eg. InsertArticle, DeleteArticle, ModifyArticle, etc..)
    Now my problem is, just how do I retrieve the articles from the database? .. for example, if I load up a page http://localhost/articles.jsp which should display all the articles currently in the site.. I would have a function say getAllArticles() which should return a collection of all the articles. I can then iterate through the articles in the jsp page.
    I am trying to use <jsp:useBean...etc.> BUT.. my articles bean constructor takes a databaseconnection object as a parameter. If I use useBean I cant pass the databaseconnection object to the bean and I get an error because it cannot create the bean.
    Any help on this would be appreciated as well as any tutorial links. I also looked at the petstore blueprint program on the sun website, but that program has me completely lost with all the xml. I would prefer not to use custom tags or struts for now. I would like to keep it simple with snippets of java code in the jsp pages for data retrieval and display while keeping all the business logic in the beans of the model. I would also like to keep this relatively secure. I am developing using Oracle Jdeveloper 10g.
    Thanks
    Jazz

    Hey steve, thanks for that.. but thats exactly what i
    dont want to do. I also realize that ive been writing
    the ejb's incorrectly to begin with and have begun to
    rewrite them. However maybe I can make it easier..
    what im trying to do is precisely what is in this
    diagram..
    http://gsraj.tripod.com/jsp/jsp.html
    the problem im having is where it passes data back to
    the jsp page.. entity beans cant (or shouldnt?) be
    accessed directly from jsp pages.. which means i
    create a session bean which interacts with the entity
    bean and can return information to the jsp page.. i
    understand what i have to do.. i just dont know how to
    do it.. been searching for google for tutorials and
    etc.. this site is the closest ive come but .. as you
    can see it says "more to come" ..
    thanks again guys really appreciate itAhhh. EJBs. Enterprise Java Beans and JavaBeans are two completely different beasts. I know nothing about EJBs, except:
    1) They are much harder to use (and serve a different purpose I assume) then JavaBeans
    2) Tomcat (the server I use) doesn't support them.
    Sorry I can't be of more help.

  • I need to get a new hard drive for my 13" mid-2009 MBP but the model number is worn off. Is there a place to find this?

    My hard drive needs to be replaced and I am looking to do it myself. However, I am in need of the model number of my MacBook Pro. The issue with this is, it has been worn off. My MacBook Pro is a 13" Mid-2009 model.
    Thanks!

    Any 2.5"dia, 9.5mm thick SATA HDD will be compatible.  Look at options here:
    http://eshop.macsales.com/shop/hard-drives/2.5-Notebook/
    This video will show you how to install it:
    http://eshop.macsales.com/installvideos/macbookpro_13_unibody_hd/
    Ciao.

  • Satellite Pro A300D - What is the model number for the keyboard?

    My husband managed to dislodge a keycap on my keyboard, and broke the white scissor clip that holds hit on...(don't ask me how)
    He spoke to the authorised service centre here in Norway, and they sent us replacement scissor clips (actually they sent an old non-functioning keyboard) but the clips are of a different design to the ones on my laptop.
    I was wondering if anyone has an idea of the model/serial number of the keyboard used in the Satellite Pro A300D-151 (PSAK9E) so I can get the correct replacement part.
    I really don't want to have to replace the whole keyboard when it's just 1 of the scissor clips that is broken...the laptop is only 5 months old.
    Here are some photos of the scissor clip in question & the where it attaches to the keyboard (sorry about the quality)
    Link:[http://img31.imageshack.us/gal.php?g=1000683o.jpg]
    Thanks
    notsure

    Hi
    Sorry buddy but its not possible to exchange some single keys on a keyboard so in this case you must replace the complete keyboard. But normally this should not be so difficult.
    Either you exchange the keyboard yourself or you sent the notebook to the authorized service provider.
    The model number for the keyboard is not known to me but contact your ASP!! They can order all Toshiba parts and they should know the right part number.
    Bye

  • Using bind variables in the model view for master detail

    Hi all,
    I have a master-detail views setup on the following two queries.
    In the first query below - I use two bind variables to collect the start and end date.
    you have to add (and :startDate = :startDate and :endDate = :endDate) or you will get errors - bind not defined in sql
    I then use the viewQueryCriteria to collect the data on a search panel - so far so good. (Make the bind variables required) along with the other criteria.
    The bind variables are displayed in the search panel and the data is entered correctly.
    The query executes and all is happy.
    VIEWOBJECT1
    SELECT DepositAccounts.COA_ID,
    ... ChartOfAccounts.ACCOUNT_CODE || ' ' || ChartOfAccounts.ACCOUNT_TITLE as description
    FROM DEPOSIT_ACCOUNTS DepositAccounts, DEPOSIT_ACCOUNT_DETAILS DepositAccountDetails, CHART_OF_ACCOUNTS ChartOfAccounts
    WHERE DepositAccounts.ID = DepositAccountDetails.DEP_ACC_ID
    and ChartOfAccounts.id = DepositAccountDetails.COA_ID
    and :startDate = :startDate and :endDate = :endDate
    Now I add the summation of a value (AMOUNT) to the view object (java - create view impl) to the VOViewRowImpl
    and everything works - the value is shown in the transient attribute formatted and looking nice.
    VIEWOBJECT2
    SELECT PostingBatchAccounts.AMOUNT,
    FROM POSTING_BATCH_ACCOUNTS PostingBatchAccounts, POSTING_BATCHES PostingBatches
    where PostingBatchAccounts.PB_ID = PostingBatches.ID
    and PostingBatches.SOURCE_DATE between :startDate and :endDate
    Now I need to add the start date and end date to the child query - before the view executes (or the summation is calculated).
    The attributes are in the where clause (PostingBatches.SOURCE_DATE between :startDate and :endDate) in VIEWOBJECT2 which is the child.
    I need the child records and the summation to work with the date restrictions.
    I would assume you could get access to the child view in the VOViewImpl file and set the bind variables there.
    Everything I find is based on the JSF - not the model layer - this should be fairly easy (and common). can anyone give me a hand on this?

    Hi all,
    I have a master-detail views setup on the following two queries.
    In the first query below - I use two bind variables to collect the start and end date.
    you have to add (and :startDate = :startDate and :endDate = :endDate) or you will get errors - bind not defined in sql
    I then use the viewQueryCriteria to collect the data on a search panel - so far so good. (Make the bind variables required) along with the other criteria.
    The bind variables are displayed in the search panel and the data is entered correctly.
    The query executes and all is happy.
    VIEWOBJECT1
    SELECT DepositAccounts.COA_ID,
    ... ChartOfAccounts.ACCOUNT_CODE || ' ' || ChartOfAccounts.ACCOUNT_TITLE as description
    FROM DEPOSIT_ACCOUNTS DepositAccounts, DEPOSIT_ACCOUNT_DETAILS DepositAccountDetails, CHART_OF_ACCOUNTS ChartOfAccounts
    WHERE DepositAccounts.ID = DepositAccountDetails.DEP_ACC_ID
    and ChartOfAccounts.id = DepositAccountDetails.COA_ID
    and :startDate = :startDate and :endDate = :endDate
    Now I add the summation of a value (AMOUNT) to the view object (java - create view impl) to the VOViewRowImpl
    and everything works - the value is shown in the transient attribute formatted and looking nice.
    VIEWOBJECT2
    SELECT PostingBatchAccounts.AMOUNT,
    FROM POSTING_BATCH_ACCOUNTS PostingBatchAccounts, POSTING_BATCHES PostingBatches
    where PostingBatchAccounts.PB_ID = PostingBatches.ID
    and PostingBatches.SOURCE_DATE between :startDate and :endDate
    Now I need to add the start date and end date to the child query - before the view executes (or the summation is calculated).
    The attributes are in the where clause (PostingBatches.SOURCE_DATE between :startDate and :endDate) in VIEWOBJECT2 which is the child.
    I need the child records and the summation to work with the date restrictions.
    I would assume you could get access to the child view in the VOViewImpl file and set the bind variables there.
    Everything I find is based on the JSF - not the model layer - this should be fairly easy (and common). can anyone give me a hand on this?

Maybe you are looking for

  • Fn mod for date

    xperts, any fn mod available for getting dates like; if i am exec on Mon; Sun Mon Tue Wed Thu Fri Sat Sun Mon Tue Wed Thu Fri Sat (10 days) if i am executing it on Wed. Sun Mon Tue Wed Thu Fri Sat Sun Mon Tue Wed Thu Fri Sat (8 days) wat i need is th

  • How do I boot up in safe mode?

    How do I start up in safe mode?

  • Look up query

    i have 2 queries. one has all customers info and another has manager info and list of customer belonging into. both are using diferent cubes now i want to get customer from first cube and then his manager if any in another cube and display in cube .

  • [solved] Telling dwm to use a custom dmenu

    I run a customized version of dwm from my home directory, in ~/build/dwm, which I maintain a git repository. I'd like to do the same thing with dmenu, but if I don't have dmenu installed anywhere else on my system (I haven't installed it as root), ho

  • Cannot mount 'My Book' HD no matter how I try - any advice how I can do this?

    Can you offer any advice or help with the following: I have a WD external Hard drive connected to my iMac I cannot get the HD to mount although the Smartware disc shows on the desktop I've tried disc verification and repair and the result is that the