Calling a method in DC1 from DC2

Hi
Can you please tell me how to call amethod in DC1 from DC2 wiith an example
Thanks
Rahul

hi rahul,
in additon to sharma's
check this
Re: Interfaces to Components
Re: Reuse of Component
when to use the
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/604ddc2f-ec9c-2b10-1682-be37e1c62dee
http://help.sap.com/saphelp_nw04s/helpdata/en/02/6755bd296ade42931646f869b1fd15/frameset.htm
complex conditons
https://www.sdn.sap.com/irj/scn/wiki?path=/display/wdjava/use%252bcomponents%252bin%252bbigger%252bweb%252bdynpro%252bprojects%252b(componentization)
with detail look
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30d56578-f7e5-2a10-5ab5-8afc55d2e0e8
let me know u need any further info
bvr

Similar Messages

  • Calling a method in Class from webdynpro

    Hi All,
    I have to perform some action when i click the button created in my webdynpro screen.
    However I must not write the code for the button action inside the button event. But I have to create a class and inside the class i have to create the method for this button event.
    Can anyone tell me how to call a method in a class created in SE24 from webdynpro on clicking the button.
    Thanks in advance.

    hi..
    When you want to perform some action after clicking a Button, then you have to write the code only in 'Events' - 'On Action' event. From your question, i assume that, you wanna use Assistance class in your webdynpro so as to increase better performance. Here is the link which will guide yuo with screen shot for using assistance class in WD-ABAP.
    http://wiki.sdn.sap.com/wiki/display/WDABAP/AssistanceclassfunctionalityinWDA
    thanks,
    Padma

  • Calling a method in view from component controller?

    Hi,
    Is it posible to call a method that is defined in the Component Controller in the View?
    If it is posible please give some sample code how to call the method?
    Regards,
    Padmalatha.K

    Padmalatha, all the methods defined in a controller from 'Methods' tab are instance methods. An instance method defined in a component controller is callable from any view controller that holds a reference to the component controller.
    Defining methods between the tags
    //@@begin others
    //@@end
    is useful if you want to declare static methods.

  • How to call a method in bean from application module Impl?

    i have to call a method which is in a bean from AppmoduleImpl class. Is it possible ?

    The model layer should never depend on a specific view layer - this breaks reusability.
    What you need to do is expose a service method on your AM. Then your view can call this method and pass a parameter into the model layer.

  • How to call a method in Viewimpl from transient attributes value

    Hai,
    I have a method in ViewImpl say validate().I need to call this method from an transient attributes value where value type is expression.i used adf.object.validate() but its not working.
    Can any one help me
    Thanks in advance

    Hai,
    Jabr i read these in a pdf where it explains about Introduction to Groovy support in JDeveloper and Oracle ADF 11g
    Referencing custom methods in the EntityImpl class
    If you have defined a method in your EntityImpl class, then this can be called as part of your
    expression for an attribute default:
    adf.object.getDefaultSalaryForGrade()
    Unlike when referencing an attribute of the entity object, which can be done by simply
    referencing the attribute name, when referencing a method, you are required to prefix the
    method name with adf.object.
    So is there a way?
    regards

  • Calling a Method in Bean from JSP

    Is there a defined jsp tag for calling a method in a Bean? Right now, in a bean named "bean", I would use: <% bean.doSomething(); %>. Is there a tag for this?

    I've wondered this too, the getProperty and setProperty tags only allow you call setters and getters. What if you've got a method called doSomething()?

  • Error when I call a method of AppModule from a backing bean.

    I use Jdeveloper 10.1.3.0.3 EA.
    In my application I have created ApplModule and UsrView(for my table USR).
    I have a login page (login.jsp and the backing login.java) with 2 fields userName and password and an ADF Faces Core command button (cmdCheckPass) and the method cmdCheckPass _action() for the click event .
    The problem is that I can’t call method testPassword(userName, password) which is written in AppModule. (I get error:
    javax.faces.FacesException: #{backing_login.cmdCheckPass_action}: javax.faces.el.EvaluationException: java.lang.NullPointerException) from line:
    answer = app.testPass(st1,st2);
    The code is as follows:
    public String cmdCheckPass_action() {
    String answer="";
    String mes = "";
    String st1=this.getInputText1().getValue().toString();
    String st2=this.getInputText2().getValue().toString();
    AppModuleImpl app = new AppModuleImpl();
    answer = app.testPass(st1,st2);
    if (answer == "OK") {
    return "toMain";
    } else {
    answer = "";
    mes="Invalid username, password !!!";
    FacesContext.getCurrentInstance().addMessage(null,new FacesMessage(mes));
    return answer;}
    I don’t know if theoretically is right to call, from a backing bean, a custom method of AppModule.
    Can I have any help on this?
    Thanks in advance,
    Panos

    Some quick ideas:
    Is the clip the same NTSC/PAL standard as the project you are importing it to?
    Have you tried to rename the offending clip (do NOT rename any clips inside the iMovie /Media folder!!).
    How much free space do you have on the iMovie project volume -- what is the size of the imported clip?

  • Calling a method in AbstractPortalComponent from JSP

    Hi,
    I have an abstract portal component with 2 methods:
    1. doContent - in this, I specify the name of the jsp to be included in the response - umlogonPage, and am setting a portal event named 'fireCRMRFC'.
    2. dofireCRMRFC - in this, I specify the code to connect to the backend crm and get back some value.
    In my umLogonPage.jsp, how can I trigger the method 'doFireCRMRFC'? Is it possible at all?
    Thanks
    OJ

    Hi Praveen
    I understand you partially...I have implemented this:
    public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
              IResource jspResource = request.getResource("jsp", "/umLogonPage.jsp");
              response.include(request, jspResource);
              IPortalComponentURI rfcURI = request.createPortalComponentURI();
              rfcURI.setPortalRequestEvent(request.createRequestEvent("fireCRMRFC"));
    and
    public void dofireCRMRFC(IPortalComponentRequest portalReq, IEvent event){
    <Connectivity code to backend.>
    And I read in another thread and help site that I can raise an event from the jsp to this method (maybe through the doCOntent), but it said this is possible. Can you give me an example of a code that I would have to use in my jsp?
    I am trying to understand how this works so I really appreciate your willingness to help.
    Thanks
    oj

  • Calling a method in AbstractPortalComponent from JSP without htmlb

    Hi,
    I am trying to trigger an event in a java method in an AbstractPortalComponent from a jsp.
    The event is caught in method doContent:
    IPageContext myContext = PageContextFactory.createPageContext(request, response);
    Event lastEvent = myContext.getCurrentEvent();
    if ((lastEvent != null) && (lastEvent.getComponentName().equals("Compute"))) {
      response.write("Compute");
    The problem is that I cannot trigger it from my jsp. In the jsp is used:
    <%
    IPortalComponentURI uri = componentRequest.createPortalComponentURI();
    uri.setPortalRequestEvent(componentRequest.createRequestEvent("Compute"));
    String linkEvent = uri.toString();
    %>
    and
    <.a href="<%=linkEvent%>">click</a.>     
    (i put some dots because otherwise the editor sees it as html)
    Please help.
    Raymond

    Hi Praveen,
    It still does not work. presentEvent is null.
    In line: if (null != event && "Compute".equalsIgnoreCase(presentEvent.getAction())) you wrote "event" Shouldn't that be presentEvent. I changed it to presentEvent.
    I think the problem is in the jsp. It seems to me that the jsp is not sending a correct event.
    Please keep in mind that I am not using htmlb in my jsp.
    Raymond

  • Call applet method with arguments from JavaScript

    I have an applet with a method doSomething(int a, String b, double c), I want get a,b,c from threee text fields put into an HTML page, and pass them to the applet method. I've a very poor knowledge in JavaScript, how can I pass correctly the arguments without raise a CastException? It seems to me that JavaScript doesn't have int, String, double.....

    Hi!
    You can verify before you send the parameters to the applet
    Something like that:
    var result = parseInt (a);
    if (result =NaN)
    alert("Sorry not Int");
    return false;
    and after that you can send the parammeters to the applet that way:
    document.yourApplet.Your_function_from_applet(result,..)
    hope this help!
    adina

  • Call JavaScript method in FXML from java controller

    I have fxml like
       <fx:root type="javafx.scene.Group" xmlns:fx="http://javafx.com/fxml">
        <fx:script>
            function applyState(oldState, newState)
        </fx:script>   
        ....and controller to it.
    The idea is to move some view logic to fxml file.
    So, when I need to change some view state, I want to call applyState from java code.
    The question is how to do it.
    What I have found:
    We can get
    fxmlLoader.getNamespace().get("applyState")and receive sun.org.mozilla.javascript.internal.InterpretedFunction.
    NetBeans see this class. But while building the project i have an error
    error: package sun.org.mozilla.javascript.internal does not exist
    But this class really exists in rt.jar in JRE.
    After that I have stopped digging into this.
    I suspect that using internal API is not a good idea to call this InterpretedFunction.
    Can somebody suggest how can I make such an invocation?
    Edited by: 940811 on Nov 19, 2012 11:21 PM

    Until JavaFX doesn't expose the ScriptEngine instance of FXMLLoader, there's no way to communicate (Java <-> Javascript) with the <fx:script>.
    But, if you want to rely on a hack, you can do this:
        private ScriptEngine extractScriptEngine(FXMLLoader loader) {
            try {
                Field fse = loader.getClass().getDeclaredField("scriptEngine");
                fse.setAccessible(true);
                return (ScriptEngine) fse.get(loader);
            } catch (IllegalAccessException | NoSuchFieldException | SecurityException ex) {
                Logger.getLogger(BrowserFXController.class.getName()).log(Level.SEVERE, null, ex);
            return null;
        }

  • Object created dynamically. how to call a method or interface from it

    Hi Experts,
    I've just created an abap proxy dynamically
       FIELD-SYMBOLS <ref> TYPE any.
        CREATE DATA dref TYPE REF TO
                   (ld_class).
        ASSIGN dref->* TO <ref>.
        CREATE OBJECT <ref>
          TYPE
            (ld_class)
          EXPORTING
            logical_port_name =logicalport.
    This runs OK
    But I  can't call an Interface of the object proxy that belongs to ld_class
      ld_prot ?=   <ref>->if_proxy_basis~get_protocol( if_wsprotocol=>sequence ).
    because the object <ref> is type any, it doesen't runs
    This work' s fine
        MOVE  <ref> ?TO proxy1.
        ld_prot ?= proxy->if_proxy_basis~get_protocol( if_wsprotocol=>sequence )
    if proxy is explicity declarated like class proxy
    But I don't want do it. I want do it dynamically to avoid write data declaration explicity
    I think this is a problem for every data that must be declarated by the form TYPE REF TO
    What must I do ?
    thanks in advance.

    Hi.,
    Check this help Document : [Dynamic Method Call in ABAP Objects|http://help.sap.com/abapdocu_70/en/ABENNEWS-46-OBJECTS-DYNAMIC.htm]
    aslo  [Dynamic method call|Type conflict during dynamic method call.;
    hope this helps u.,
    Thanks & Regards
    Kiran

  • Call static method of Acrobat from C#

    I have a C++ static function and I want to invoke that function from C# code (it's a button_click event). I tried to export that function by creating it's DLL, but it doesn't work out. My C++ function looks like this: static ACCB1 void ACCB2 HighlightWord(void *data). Please provide some pointers?

    Thanks for the reply. yes, this code is in Plug-In (C++). But can you please let me know the way or reference to use is in C# (if any), that would be great!
    I tried by creating DLL and tried to expose this function (static ACCB1 void ACCB2 HighlightWord(void *data))  but couldn't succeed. Please let me know.
    Or is there any sample available in Acrobat SDK, then please let me know its place, I can check that one as well.
    Thanks in advance!

  • Calling a method from an external component

    Hi All:
    I have comp1 with a view1 and comp2 with a view2. If I have view 2 embed in view1, how can I call a method in view2 from view1.
    I´m new in Web Dynpro, so I will appreciate a little bit of help.
    Thanks

    Aida,
    I don't think its possible to call view menthods existing in different components.
    Please check my earlier reply in your [thread|Re: Refreshing the Data from a embed view in a view container;
    Chintan

  • Calling a method of one class from another withing the same package

    hi,
    i've some problem in calling a method of one class from another class within the same package.
    for eg. if in Package mypack. i'm having 2 files, f1 and f2. i would like to call a method of f2 from f1(f1 is a servlet) . i donno exactly how to instantiate the object for f2. can anybody please help me in this regard.
    Thank u in advance.
    Regards,
    Fazli

    This is what my exact problem.
    i've created a bean (DataBean) to access the database. i'm having a servlet program (ShopBook). now to check some details over there in the database from the servlet i'm in need to use a method in the DataBean.
    both ShopBook.java and DataBean.java lies in the package shoppack.
    in ShopBook i tried to instantiate the object to DataBean as
    DataBean db = new DataBean();
    it shows the compiler error, unable to resolve symbol DataBean.
    note:
    first i compiled DataBean.java, it got compiled perfectly and the class file resides inside the shoppack.
    when i'm trying to compile the ShopBook its telling this error.
    hope i'm clear in explaining my problem. can u please help me?
    thank u in advance.
    regards,
    Fazli

Maybe you are looking for

  • Can't connect to wireless using certificate with Andorid device

    Hi, I'm trying to connect to my wireless network using an android device with certificate but with no success. I'm using a WLC 4402 7.0.235.3 SSID Security (WPA2 Auth802.1X + CCKM) Logs from WLC (Cisco Controller) debug>*apfMsConnTask_0: Jan 03 08:26

  • How do I delete an individual text completely off my phone

    How do I delete an individual text completely off my phone, so that the timestamp of the deleted text doesn't appear anymore. ios 8, seems to keep deleted texts on the phone, if I delete a text message it will be removed from the message app but the

  • Automatic Delele Media Cache content (DOMAIN USERS)

    Hello, I would like to know if theres any way to configure an automatic delete for the media cache content? I ask that 'cause in our production we have 40 machines, each one with several user domains accounts and, if the don't set a limit for the med

  • Mpg files

    I can open mpeg files on my mac after upgrading to snow leopard but no sound, I did download mpeg streamclip, but it takes to long to convert a bunch of clips. Does anyone know a quicker way to solve the issue. I am working with a person to make a vi

  • Any one could help me with this soap client program?

    Any one could help me with this soap client program? Below is the request format my partner is expecting to see: POST /Service.asmx HTTP/1.1 Host: 192.168.1.1 Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "https://api.abcde