No able to expose my method in view client interface}

hi i have this method in my AGRRowImpl class but when i click java client interface of my view am not able to view it
public class AGRRowImpl extends ViewRowImpl implements AGRRow {
    public Integer getId() {
        return (Integer) getAttributeInternal(ID);
     * Sets <code>value</code> as the attribute value for the calculated attribute Id.
     * @param value value to set the  Id
    public void setId(Integer value) {
        setAttributeInternal(ID, value);
public void PerformDeleteAgr(Integer agrid) {
            agrid = this.getId();
            callPerformSdmsLogon("SMS_FORM_TO_ADf.delete_agr(?)", new Object[] { agrid });
}Edited by: Tshifhiwa on 2012/06/30 12:55 PM

ok i can see the method now but when i test it in oracle adf model tester am geting this error (oracle.jbo.DeadViewRowAccessException) JBO-27102: Attempt to access dead view row of persistent id 0
public class AGRRowImpl extends ViewRowImpl implements AGRRow{
    public Integer getId() {
        return (Integer) getAttributeInternal(ID);
    public void setId(Integer value) {
        setAttributeInternal(ID, value);
    public void PerformAgr(Integer agrid) {
           // AGRRowImpl result = new AGRRowImpl();
            agrid = this.getId();
            //agrid = this.getId();
            callPerformSdmsLogon("SMS_FORM_TO_ADf.delete_agr(?)", new Object[] { agrid });
}

Similar Messages

  • Problem exposing Accessor Methods on View object (ViewRowImpl.java)

    JDeveloper 9.03
    I have a view link, ViewLinkSourceDest, that links two view objects Source and Destination. Each view object has its respective ViewRowImpl.java file created.
    I have selected "Generate Accessor in View Object" in View link Properties of the View Link Wizard for both source and destination view objects.
    The correct Accessor methods are available in both the source and destination ViewRowImpl files.
    When I access the Source accessor method from the DestinationViewRowImpl object I receive the following error:
              ORA-00904: invalid column name
              It is also is displaying the Source view object's SQL statement with the (:1 = Destination.ID) where clause.
    The error is occurring when trying to retrieve the view object using this type of method call:
              Row r = this.getSourceView();
    After further investigation I have found an example set of view objects in which the error does not occur. The difference was in the ViewLink.xml file.
    The ViewLink.xml file that accesses the Accessor with the error begins like this:
              <ViewLink     
                   Name="ViewLink"
                   Where=":1 = Destination._ID" >
    The ViewLink.xml file that accesses the Accessor with no error begins like this:
              <ViewLink     
                   Name="ViewLink"
                   EntityAssociation ="SourceDestAssociation" >
    suggesting that the use of an association would resolve this problem.
    I was not able to create a View link based on an association that would generate a ViewLink.xml file that ressemble the successful file above. I could however manually add the correct entry to the xml file that caused the error and sucessfully access the Accessor method in the source object. This is not the final answer because the IDE will regenerate the ViewLink.xml file to its original state even if created with the appropriate Association.
    Is this a bug?
    Is the way the ViewLink.xml file created different in JDev 9.03 than in 9.02
    Is there something I am missing that is causing the ViewLink.xml file to generate incorrectly?
    Any suggestions would be helpful.
    Rob

    Steps to recreate:
    1 Create SomeSuperEntityImpl.java extended by SourceEntityImpl.java and DestinationEntityImpl.java entity objects.
    2 Create SourceView and DestinationView objects
    3 Create SourceDestinationAssociation linking the entity object Source PK to Destination FK
    4 Create SourceDestinationView linking Source and Destination view using the SourceDestinationAssociation
    View the SourceDestinationView.xml file and you will see that the viewlink has Where=":1 = source.src_id"
    This is the scenario that causes the initial problem with the Accessor Methods.
    If the SomeSuperEntityImpl.java is removed as the super class and the same procedure is followed you will get the desired 'EntityAssociation = "package.SourceDestinationAssociation"' in the SourceDestinationView.xml file .
    Hope this is a little clearer.
    Rob

  • Unable to expose a method in web service

    Hi,
    My scenario is to expose a method in service. This method will take date as input & should return all the rows.
    To Implement this, I took employeeVO of HR DB(Employees Table) & created a ViewCriteria "GetEmpbyHireDate" with Hiredate as input param.
    & in AMImpl the code is
    public BaseEmployeeVOImpl getEmployeesByHireDate(Date hiredate){
    BaseEmployeeVOImpl baseEmployeeVO = (BaseEmployeeVOImpl) findViewObject("BaseEmployee1");
    baseEmployeeVO.setApplyViewCriteriaName("GetEmpbyHireDate");
    baseEmployeeVO.setNamedWhereClauseParam("pHireDate", hiredate);
    baseEmployeeVO.executeQuery();
    return baseEmployeeVO;
    The issue is I'm not able to see this method in "Available" list of Web Service Wizard.
    Help me in understanding what is missing ?
    Thanks in advance.
    P.S. from Jdev Help I understood that "Only methods with simple attributes as parameters and return types that are either void or view rows will appear in the list." & my method is returning rows of a EmployeeVO.

    Hi,
    2 comments:
    1) View Criteria can be directly exposed as find methods. Its on the last wizard page (just click the View Criteria tab). So no need for an Impl method
    2) If you wanted to expose a method, then the documentation I think is crystal clear: "oracle.jbo.server.ViewRowImpl or any subtype" Your method returns BaseEmployeeVOImpl (see the difference ?)
    Frank

  • Call methods from view controller to another (enhanced) view controller!

    Dear All,
    Is it possible to use/call methods from view controller to another (enhanced) view controller? Iu2019ve created a view using enhancement in standard WD component. I would like to call one method from standard view controller in the enhanced view controller.
    Is it possible to include text symbols as enhancement in standard class?
    u2026Naddy

    Hi,
    If you have just enhanced an existing view then you can call the standard methods in one of the new methods which you will create as part of enhancement.
    If you have created a totally new view using enhancement framework option ( Create as Enhancement ) then in this new view you won't be able to use existing methods in other view as a view controller is private in nature. So all the view attributes, context nodes and methods are Private to that view only.
    Regarding text elements, I guess adding a new text element is just a table entry in text table and is therefore not recorded as enhancement.( Not very sure about this, need to double check )
    Regards
    Manas Dua

  • How to call a custom controller method from view

    Hi,
    I ve created a simple web service and consumed it in a model. Mapped the input & output parameters to custom controller context which in turn mapped to component controller's context which in turn to view's contexts.
    How to call a custom controller method from view?
    Please explain the syntax.
    Regards,
    Manoj.

    Hi Patralekha,
    Give some idea for the below scenario:
    I ve created a simple web service and consumed it in a model. What I did was
    1) for the input parameters, mapped the node from view->custom controller->model
    2)for the output parameter, mapping from model->custom controller->view.
    It works fine.
    But I don't want to access model nodes directly, rather I want to set the input param in somewhere else (like custom controller) before calling the appropriate method, same for the response also.
    Share me your thoughts.
    Regards,
    Manoj.

  • Hook methods in component controller vs hook methods in view controller

    Hi,
    I want to know how WDDoInit in component controller differs from the same in view controller.
    How the lifecycle flows in both controllers?
    Eg. if i create a method intialize() in both component  & view controllers and if i called initalize method in view, which one will be called?
    Need to know how the flow works.
    Regards,
    Manoj

    Dear Manoj,
    Please check if it is helpful.
    The order of execution of standard hook methods when a WDJ application is called the first time is as follows:
    1. Component Controller DoInIt()
    2. View Controller DoInIt()
    3. Interface Window Controller
    4. Component Controller DoBeforeNavigation()
    5. Component Controller DoModify()
    6. Component Controller DoPostProcessing()
    After this, if you navigate to some other view, then the order of execution of methods of that New view will be:
    1. Component Controller DoBeforeNavigation()
    2. New View DoInIt()
    3. New View onPlugfromFirstView
    4. Component Controller DoModify()
    5. Component Controller DoPostProcessing()
    Then, if you again navigate back to the first view, then the order of execution of methods is:
    1. Component Controller DoBeforeNavigation()
    2. New View onPlugfromNewView
    3. Component Controller DoModify()
    4. Component Controller DoPostProcessing()
    Webdynpro - Sequence of Execution
    Thanks & Regards,
    Patralekha

  • How to call server event in DO INIT method of view

    Folks,
    I have declared a server event in the view and when I am trying to call that event in DO INIT method of view , it is not firing the event .
    <i><b>
      public void wdDoInit()
        //@@begin wdDoInit()
        // set icon file names
        wdContext.currentContextElement().setIconLeftArrow("topLvlScrollerLeft.gif");
         wdContext.currentContextElement().setIconRightArrow("topLvlScrollerRight.gif");
        // hide display when errors during startup
         if(wdContext.currentContextElement().getErrorDuringInit())
              wdThis.wdFirePlugOutEmpty();
         wdThis.wdGetDaylyChangeModeAction();</b></i>

    I have created a action event
    <i><b>  public void onActionDaylyChangeMode(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionDaylyChangeMode(ServerEvent)
         wdThis.wdGetVcCatRecordEntryInterfaceController().blcEvent(VcCatRecordEntry.ACTION_CHANGE_MODE);
         wdContext.currentContextElement().setSelectedTab("TabCatRecordEntryDay");
         wdContext.currentContextElement().setTemp("Changed Tab");
        //@@end
      }</b></i>

  • Users are not able to use Outlook 2010 to view free/busy information and cannot set Out Of Office automatic reply

    Hi All,
    Please help me.
    I have an issue where users are not able to use Outlook 2010 to view free/busy information and cannot set Out Of Office automatic reply. But they are can set Out Of Office automatic reply from OWA. My exchange server is Ms Exchange 2010.
    The test E-mail AutoConfiguration failed with this error:
    Autodiscover to https://mydomain.com/autodiscover/autodiscover.xml starting
    GetLastError=12175; httpStatus=0.
    Autodiscover to https://mydomain.com/autodiscover/autodiscover.xml Failed (0x800C8203)
    Autodiscover to https://autodiscover.mydomain.com/autodiscover/autodiscover.xml starting
    GetLastError=12007; httpStatus=0.
    Autodiscover to https://autodiscover.mydomain.com/autodiscover/autodiscover.xml Failed (0x800C8203)
    Local autodiscover for mydomain.com starting
    Local autodiscover for mydomain.com Failed (0x8004010F)
    Redirect check to http://autodiscover.mydomain.com/autodiscover/autodiscover.xml starting
    Srv Record lookup for http://autodiscover.mydomain.com/autodiscover/autodiscover.xml Failed (0x80072EE7)
    Srv Record lookup for mydomain.com starting
    Srv Record lookup for mydomain.com Failed (0x8004010F)
    Any idea?
    Thanks,
    Pieter

    OK.
    Please follow this step.
    1. As you said you are in coexistence step , so for now all endpoint already point to Exchange 2010 right?
    2. Check legacy owa redirect that you already configure
    3. In Exchange 2010 , Make sure that you already configure "Autodiscoverinternaluri" by this command set-clientaccessserver -identity "servername" -autodiscoverinternaluri
    https://autodiscover.domain.com/autodiscover/autodiscover.xml. and don't forget to create autodiscover record in DNS
    4. in Exchange 2010 , Make sure that you already configure "EWS" path by this command set-webservicesvertualdirectory -identity "XXX\Default web site name" -internalurl
    https://yourinternalurl/EWS/Exchange.asmx -externalurl https://yourexternalurl/EWS/Exchange.asmx
    5. don't forget to replicate freebusy from Exchange 2003 to Excahnge 2010 via public folder.
    You error look like client cannot get autodiscover process please check it again.

  • How to invoke a method in application module or view objects interface?

    Hi,
    perhaps a stupid RTFM question, but
    How can i invoke a method that i have published in the application modules or view objects interfaces using uiXml with BC4J?
    Only found something how to invoke a static method (<ctrl:method class="..." method="..." />) but not how to call a method with or without parameters in AM or VO directly with a uix-element.
    Thanks in advance, Markus

    Thanks for your help Andy, but i do not understand why this has to be that complicated.
    Why shall i write a eventhandler for a simple call of a AM or VO method? That splatters the functionality over 3 files (BC4J, UIX, handler). Feature Request ;-)?
    I found a simple solution using reflection that can be used at least for parameterless methods:
    <event name="anEvent">
      <bc4j:findRootAppModule name="MyAppModule">
         <!-- Call MyAppModule.myMethod() procedure. -->
          <bc4j:setPageProperty name="MethodName" value="myMethod"/>
          <ctrl:method class="UixHelper"
                  method="invokeApplicationModuleMethod"/>
       </bc4j:findRootAppModule>
    </event>The UixHelper method:
      public static EventResult invokeApplicationModuleMethod( BajaContext context,
                                                               Page page,
                                                               PageEvent event ) {
        String methodName = page.getProperty( "MethodName" );
        ApplicationModule am = ServletBindingUtils.getApplicationModule( context );
        Method method = null;
        try {
          method = am.getClass(  ).getDeclaredMethod( methodName, null );
        } catch( NoSuchMethodException e ) {
          RuntimeException re = new RuntimeException( e );
          throw re;
        try {
          method.invoke( am, null );
        } catch( InvocationTargetException e ) {
          RuntimeException re = new RuntimeException( e );
          throw re;
        } catch( IllegalAccessException e ) {
          RuntimeException re = new RuntimeException( e );
          throw re;
        return null;
      }Need to think about how to handle parameters and return values.
    Btw. Do i need to implement the EventHandler methods synchronized?
    Regards, Markus

  • How can i convert 2k resolution dpx files of a movie to DCP and will they be able to open the harddisk and view the files?

    how can i convert 2k resolution dpx files of a movie to DCP and will they be able to open the harddisk and view the files?

    AFAIK, this is beyond the capabilities of FCPX/Compressor. This company makes a plug-in, which I have to say I have no experience with. Here is a thread that may give you some other ideas. Good luck.
    Russ

  • Calling controller methods in view.

    Hi Friends,
         I am created two methods in component controller, while i am accessing those two methods in view, i am not getting
         wdGet<Controller_name>Controler() method in the view.
         How can i get that?
    Thanks & Regards,
    Murali

    Hi Murali,
    This is because you didt add the componet controller under Required Controllers for the view.
    For that, take the view, and take its properties. There you will see a option called Required Controllers. Click Add and add your  component controller (carefully select component controller).
    Now try to access the method by the code you mentioned.
    Regards,
    Jithin

  • Expose AM methods as web services

    Hi All,
    As searched results from the forum, most of posts talking about how to consume WS by generating java file from wsdl. My question is, can we expose an AM method as web services? If answer is yes, may I have some high level steps for following up?
    If we expose AM method as an web service, does that mean we have to pack all FND/OA classes in war file then deploy it into OC4J container?
    We are using an old AS and even don't have standalone OC4J server installed. Even I can install a standalone OC4J but I still don't know how to resolve above question.
    Thanks & Regards,
    KJ

    I have used Glue (http://www.themindelectric.com/products/glue/glue.html) to expose some of our stuff as Web Services. I recently found this on serverside. It's pretty good.
    http://www.theserverside.com/resources/article.jsp?l=Systinet-web-services-part-1
    I believe that the middleware they use can be plugged into IPlanet. There is also an article in the knowledge base on the IPlanet site.
    Jon

  • Is it possible that only people with buyed DPS are able to login to IPAD Content Viewer App?

    Is it possible that only people with buyed DPS are able to login to IPAD Content Viewer App?

    Log into digitalpublishing.acrobat.com with that ID and then try again.
    Bob
    grafikerorg.de <mailto:[email protected]>
    Tuesday, April 2, 2013 10:41 AM
    >
          Re: Is it possible that only people with buyed DPS are able to
          login to IPAD Content Viewer App?
    created by grafikerorg.de
    <http://forums.adobe.com/people/grafikerorg.de> in /Digital Publishing
    Suite/ - View the full discussion
    <http://forums.adobe.com/message/5199071#5199071

  • Exposing ViewImp methods to AppModule

    Hi
    I am using JDeveloper Studio Edition Version 11.1.2.2.0 and ADF.
    Just simple question.
    I created custom method inside EmployeesImpl class. In order to call it from my AppModule, do I need to expose it through Object Client Interface, or is there other way to enable this?
    Thx

    Is this EmployeesImpl a VO? If yes then exposing it to the client interface is the way to go.
    Only other thing you can do e.g. if you don't want the VO to be exposed in the data model, is to write a wrapper method in the application module (where you can access the ViewImpl) and expose this method in the application module client interface. This way external users can only see your wrapper method but not the whole VO.
    Timo

  • Not able to find validateUser method in java.io.*

    I have a servlet code that has "import java.io.*"
    The class uses validateUser method but files in the lib folder is not able to find this method. Using Eclipse and thru IDE I browsed JAR file and method does not exists. Using Java 1.5.01
    Please advice.

    What object does it call the method from?
    If there is no object pre-fixed to the method name then the method belongs to the class which calls it. If you don't see it in the class you are working on, then check all of the class' parents.
    If it doesn't exist there then contact whoever you stole the code from and ask them were the method is supposed to be.

Maybe you are looking for

  • Linux user lost in solaris 10 network configuration :\

    I installed for evaluation Solaris 10 dor x86 and i'm trring to configure network interfaces. My problem is: If i "ping www.google.com" not works, but if i "nslookup www.google.com" works and i get ip ( 66.249.85.104 ) and if i "ping 66.249.85.104" o

  • Enable to open Sales Order

    Hi       We are using R/3 back end, After replication of sales order from CRM to R/3,the system is not allowing to make changes in R/3. while click on  change mode button it showing error. Can anyone plz give me the inputs..... Regards Bala

  • Problem with continuous scale, crop JAI operations

    Hi, I am using JAI in my application, i need to do the following operations in order, for the given image. 1. Scale 2. Crop 3. Crop Each operation gets the RenderdOp object given by the previous operation as input [Output of the 1st operation is prov

  • Alternative ways to load Flash website

    Hello, I have created a fully Flash website and as I continue to add images to my swf file obviously it is taking longer to load the site. I think I have created a pretty slick and straight forward preloader, but as I continue to add images to my sit

  • A repeating plug-in container issue

    I am trying to update Roboform and everything seems fine until I get to the Roboform Landing where it lists all of the fixes, and then an error message pops up that says: Can not load RoboForm add-on Please restart browser or reinstall RoboForm TypeE