How to call view from Diffrent Components

Hi Experts,
In my application 5 component(comp1,comp2,comp3,comp4,comp5) under one DC.
In Comp1-> View1 have a drop down to select business operations, View Container with empty view while starting.
Ex: one,two, three, four list of values in drop down.
If i select Two from drop down, it should  display view from comp2->View1 in ViewContainer.
Like this it should display view from diffrent component in comp1->View1 (Inter Componet Communication).
This application developing in CE 7.1 & NWDS 7.1 not in 2004s..
Please any one help me to do this requirement .....
Thanks in advance..
Regards, 
Satya.

Hi,
The simplest solution in this case is to create another DC component.
This will have a single window with (a) ViewSet Container(s). Then you will have to create a window per view in your first DC Component.
After this - you will need to add the first DC component to the second DC component (under used DC Components). This is done by first creating public parts of the first DC and adding to the second, following which you need to right click "Used DC components" in the second DC and select the first. You may need to do this multiple times for different windows.
After this - in your second DC you will need to embed the Component Interface views of each of the windows to the View Set Containers (as created previously).
Next you will need to write some code in the onSelect Action for the DropDown that will manage the visibility of the different views.
Let me know in case there are any further issues.
Thanks.
HTH.
p256960.

Similar Messages

  • Calling view from view.

    Hi,
    I am Facing a problem, actually i want to call a view from within a view (both views are under the same controller "indx.do") and for that i am using <a> tag like:
    In "View1.htm" i am using,
    <a href="Qual_Insp.htm"><label>Qualty Inspection</label></a>
    but i am unable to do the same.
    Can anyone please tell me how to do this.
    regards,
    Aayush Aggarwal

    avoid duplicate posts. continue the discussion at
    calling view from onClientClick

  • Related documents or links on how to call webservices from WDJ

    Hi all
    i need documents & links on how to call webservices from Webdynpro for Java.
    if anybody send the documents on sample scenarios on the same then it is the great help to me...
    Thanks
    Sunil

    Hi Sunil,
    May these links help you.
    http://help.sap.com/saphelp_nw04/helpdata/en/f7/f289c67c759a41b570890c62a03519/frameset.htm
    http://help.sap.com/saphelp_nwce10/helpdata/en/64/0e0ffd314e44a593ec8b885a753d30/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/d2/0357425e060d53e10000000a155106/frameset.htm
    and  the below thread to call weservices in java.
    Re: How to call a web service from Java
    Regards,
    Supraja

  • Call view from one DC to anothe Dc

    Hi ,
    How to access view from one DC to another DC.
    Please give me details.
    Thanks
    Risha

    go through this thread [Accessing one DC from Another|Re: interacting one DC with another DC]
    nikhil

  • How to call view of one application from another application in SAP UI5?

    Hi,
    I have a main shell application. inside the shell i have called a application project using iframe.
    Now from this project i have to access the view from the shell application. I tried getParent() but it returns null.
    How do i access view which is not in my project and in a different project?

    Yeah view cannot be called independently.
    Here in the above post i am just saying call the interface view.
    which will call the window and first view will be called.
    in the wddoinit of the first view . we will check the interface node and if a particular attribute is set.
    that means call is coming from the comp B then you can fire the plug to next view.
    this will take the user directly to second view.
    but the flow logic then will be as per by comp A only.
    means after view 2 it will go to view 3 like that as you have defined in comp A.
    so you cannot use it as an independent reusable entity.
    thanks
    sarbjeet singh

  • How to call view-controller method out of componentcontroller

    Hello all,
    my component implements a component-interface with method BACK.
    Thus my componentcontroller has the interface Method BACK.
    When triggering BACK from an foreign component, the implementation within the componentcontroller is called. So far so good.
    Now I want to POPUP_AND_CONFIRM when BACK is hit. But this POPUP_TO_CONFIRM requires me to create an action. But I can't create an action within the componentcontroller.
    I could realize the POPUP_AND_CONFIRM within the components view. But how can I call a view-method out of the componentcontroller?
    Or does anybody have a better solution? (Maybe I could implement BACK within the view, but how to connect the componentcontroller-back-method with the views back-method?)
    Thank you very much in advance...
    Regards
    I. Durmaz

    You should never attempt to call view methods from outside the view.  It is possible to register popop event handlers to methods of the component or custom controllers.  From the online help:
    For a few special cases it is useful to register event handlers for component controllers or custom controllers on the button events of a dialog box. For these cases, a special POPUP_TO_CONFIRM attribute of type IF_WD_POPUP_TO_CONFIRM_N has been implemented in the IF_WD_WINDOW interface. This interface provides precisely the methods with which event handlers for component and custom controllers can be registered on events of the dialog box.
    http://help.sap.com/saphelp_nw70ehp2/helpdata/en/47/b9487e01602fe2e10000000a42189d/frameset.htm

  • How to call View of Component B in WINDOW of Component A .

    Hi Experts,
    I have 4 different webdynpro Component. On the button click of first component view, I want second component view should be open in same exiting WINDOW, and same when button click from view of second component, 3rd component view should be open .  I want all 4 component should be opened in ONE WINDOW ONLY .
    Now I am using URL of component to open next component but this is opening seperate window.
    So please guide me how to open different different webdynpro component in ONE WINDOW.
    Thanks & Regards,
    Abhiiesh.

    Hi,
    Why did you create 4 views in 4 different components when you want to use all of them in a single window?
    You could have created all 4 views in a single component.
    Answer to your query:
    Define the usage of components 2, 3 & 4 in component 1
    Add the interface views of components 2, 3 & 4 in window of Comp_1
    Create inbound and outbound plugs for the interface views and windows of components 2, 3 & 4 . Use these plugs to create navigation links in Window of comp_1.
    Use the outbound plugs of windows to navigate btw views(From view call a method in window controller which will fire the outbound plugs).
    Regards,
    Ashwin

  • How to call webservices from ADF page

    Hi,
    I am using ADFBC.
    I want to call webservices from ADF page.please give examples of sample program on how to call a web service from the ADF pages.please give examples.
    please help me.
    Thanks,

    http://marianne-horsch-adf.blogspot.com/2011/03/how-to-create-web-service-based-adf.html
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/70-dependent-listboxes-using-ws-286107.pdf
    http://www.oracleimg.com/technetwork/developer-tools/jdev/adfcomplexwstypes-101013.html
    http://technology.amis.nl/blog/9726/quickly-creating-reploying-and-testing-a-webservice-interface-for-adf-business-components
    http://oracamp.com/passing-parameters-between-web-services-and-jsf-pages

  • How to call WDA from PCUI link.............

    Hi friends,
    I want to call a custom WDA from a standard PCUI button. Can someone tell me how to call this.
    Once the stndard button in PCUI view is clicked, my WDA has to be displayed.
    thanks in advance,
    Niraja

    Hi,
    As said by Thomas, the WDA is just like another HTML page with URL. So what you can do is Put an entry for the button in the action list. Then in application layout  put an entry for the new WDA application(specify it as popup). select the page type as HTML.
    This is more PCUI work than a WDA work.
    Thanks,
    selvakumar M.

  • How to call LSMW from a Report program

    Hi,
    I have a requirment of extending vendor master data (Companycode data and Purchasing Organization data ) through Tcode XK02 using LSMW.Also I need to generate an error log file for validating the data from flat file and  must have an export option of the error log file.
    Can you help me how to proceed on this in steps.
    Also pls let me know how to call LSMW transaction through a Report.
    Based on the selection criteria I need to maintain two source structues,one for companycode data and the other for Purchasing Orgnization data for uploading  data thru LSMW.How to do this?
    pls respond ASAP,
    Thanks,
    Nagendra

    Hi,
    create 2 LSMW object (under same project and subproject)..
    one for extended vendor master data for company code data and other for  extended purchase organization data for company code data.
    Now check the radio buttons and based on that populate ur LSMW object.
    Store project
      project = < >.
    Store subproject
      subproj = < >.
    Store object
      object  = '6GSC022_TS3'.
    if r_ccode = 'X'.
    Store object
      object  = < >.
    else.
    Store object
      object  = < >.
    endif.
    Call the function module to display object (LSMW) maintenance screen
      CALL FUNCTION '/SAPDMC/LSM_OBJ_STARTER'
        EXPORTING
          project        = project
          subproj        = subproj
          object         = object
        EXCEPTIONS
          no_such_object = 1
          OTHERS         = 2.
    Generating error log:
    After the checking the field if u think for this u need to generate error message then In the Maintain Field Mapping and Conversion Rules option under the required field write the following code:
    data: v_msgtxt(100) type c.
    message  <msg ID>    <message type>   <message no>
                     with   <var1>  <var2>
                     into v_msgtxt.
    write v_msgtxt.
    Follow the next step in LSMW object till you reach the option  Convert Data.
    After you execute this option you will get the desired message here.
    Regards,
    Joy.

  • How to call methods from within run()

    Seems like this must be a common question, but I cannot for the life of me, find the appropriate topic. So apologies ahead of time if this is a repeat.
    I have code like the following:
    public class MainClass implements Runnable {
    public static void main(String args[]) {
    Thread t = new Thread(new MainClass());
    t.start();
    public void run() {
    if (condition)
    doSomethingIntensive();
    else
    doSomethingElseIntensive();
    System.out.println("I want this to print ONLY AFTER the method call finishes, but I'm printed before either 'Intensive' method call completes.");
    private void doSomethingIntensive() {
    System.out.println("I'm never printed because run() ends before execution gets here.");
    return;
    private void doSomethingElseIntensive() {
    System.out.println("I'm never printed because run() ends before execution gets here.");
    return;
    }Question: how do you call methods from within run() and still have it be sequential execution? It seems that a method call within run() creates a new thread just for the method. BUT, this isn't true, because the Thread.currentThread().getName() names are the same instead run() and the "intensive" methods. So, it's not like I can pause one until the method completes because they're the same thread! (I've tried this.)
    So, moral of the story, is there no breaking down a thread's execution into methods? Does all your thread code have to be within the run() method, even if it's 1000 lines? Seems like this wouldn't be the case, but can't get it to work otherwise.
    Thanks all!!!

    I (think I) understand the basics.. what I'm confused
    about is whether the methods are synced on the class
    type or a class instance?The short answer is; the instance for non-static methods, and the class for static methods, although it would be more accurate to say against the instance of the Class for static methods.
    The locking associated with the "sychronized" keyword is all based around an entity called a "monitor". Whenever a thread wants to enter a synchronized method or block, if it doesn't already "own" the monitor, it will try to take it. If the monitor is owned by another thread, then the current thread will block until the other thread releases the monitor. Once the synchronized block is complete, the monitor is released by the thread that owns it.
    So your question boils down to; where does this monitor come from? Every instance of every Object has a monitor associated with it, and any synchronized method or synchonized block is going to take the monitor associated with the instance. The following:
      synchronized void myMethod() {...is equivalent to:
      void myMethod() {
        synchronized(this) {
      ...Keep in mind, though, that every Class has an instance too. You can call "this.getClass()" to get that instance, or you can get the instance for a specific class, say String, with "String.class". Whenever you declare a static method as synchronized, or put a synchronized block inside a static method, the monitor taken will be the one associated with the instance of the class in which the method was declared. In other words this:
      public class Foo {
        synchronized static void myMethod() {...is equivalent to:
      public class Foo{
        static void myMethod() {
          synchronized(Foo.class) {...The problem here is that the instance of the Foo class is being locked. If we declare a subclass of Foo, and then declare a synchronized static method in the subclass, it will lock on the subclass and not on Foo. This is OK, but you have to be aware of it. If you try to declare a static resource of some sort inside Foo, it's best to make it private instead of protected, because subclasses can't really lock on the parent class (well, at least, not without doing something ugly like "synchronized(Foo.class)", which isn't terribly maintainable).
    Doing something like "synchronized(this.getClass())" is a really bad idea. Each subclass is going to take a different monitor, so you can have as many threads in your synchronized block as you have subclasses, and I can't think of a time I'd want that.
    There's also another, equivalent aproach you can take, if this makes more sense to you:
      static final Object lock = new Object();
      void myMethod() {
        synchronized(lock) {
          // Stuff in here is synchronized against the lock's monitor
      }This will take the monitor of the instance referenced by "lock". Since lock is a static variable, only one thread at a time will be able to get into myMethod(), even if the threads are calling into different instances.

  • How to call BAPI from ABAP Inbound Proxy

    Hi All
    Can some one provide/giude  a sample code on how to call a BAPI from generated Method (Inbound Proxy) and how are the table parameters passed from Proxy to BAPI.
    Thanks
    Ravi/

    Hello Ravi,
    In the proxy before calling the BAPI, construct the table, fill it with the appropiate values by lopping over the proxy request object. Now use this table for calling BAPI
    Cheers,
    Naveen

  • How to call RFC from Power Builder

    Hi,
    I am using Power Builder Tools and I want to know how can i call RFC from Power Builder
    Thanks for ur reply

    Hi,
    Although I have not worked with Powerbuilder, I am sure if you have a certain level of proficiency with it, you will be able to code your logic that will call your wrappers written in VB/C/.NET etc. Check out the wonderful weblog by Thomas Jung on integrating ActiveX controls with ABAP Control Framework at https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/995. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    Do get back if you have further queries.
    Regards
    Message was edited by: Shehryar Khan

  • How to call webservice from Java application

    Hi XI gurus
    Pls let me know how to call a webservice from Java application.
    I wanted to build synchronous interface from Java Application to SAP using SAP XI
    For example, i need to create Material master from Java application and the return message from SAP, should be seen in Java application
    Regards
    MD

    Hi,
    If your  JAVA Application is Web based application, you can expose it as Webservice.
    JAVA People will pick the data from Dbase using their application and will send the data to XI by using our XI Details like Message Interface and Data type structure and all.
    So we can Use SOAP Adapter or HTTP in XI..
    If you use HTTP for sending the data to XI means there is no need of Adapter also. why because HTTP sits on ABAP Stack and can directly communicate with the XI Integration Server Directly
    If you are dealing with the Webservice and SAP Applications means check this
    Walkthrough - SOAP  XI  RFC/BAPI
    REgards
    Seshagiri

  • How to Call Function from SAPSCRIPT

    I want to Call a function from my SAPSCRIPT to get some data and print the same in the form , Can I get an example for this

    Hi Nandan,
    U cannot directly call function from SAPScript... For that u have to create one include in which u need to write the code. Using Perform... EndPerform u can call the same from SAPScript. See the below example
    u need to write this code in SAPScript
    PERFORM formname IN PROGRAM includename
    USING &field1&                                      
    USING &field2&                                      
    CHANGING &field3&                                     
    ENDPERFORM                                               
    Here includename is your include type program.
    u need to write this code in your include type program..
    FORM formname TABLES in_par STRUCTURE itcsy
                            out_par STRUCTURE itcsy.
    data : var1 like field1,
           var2 like field2,
           var3 like field3.
      READ TABLE in_par WITH KEY 'field1'.
      CHECK sy-subrc = 0.
      var1 = in_par-value.
      READ TABLE in_par WITH KEY 'field2'.
      CHECK sy-subrc = 0.
      var2 = in_par-value.
    now u can call corresponding function using local VAR1 and VAR2. Here u can pass N no of USING parameters.
    After processing on VAR3...
      READ TABLE out_par WITH KEY 'field3'.
      out_par-value = VAR3.
      MODIFY out_par INDEX sy-tabix.
    EndForm.
    Here in_par and out_par are the structures which will be used to communicate with SAPScript. And this is the only way as per my view.
    I m sure this code will work fine. Here i have used dummy variables that u need to change as per your requirement. If u have more queries write me back.
    And yes if this works than dont forget to give the points.
    Regards,
    Sagar

Maybe you are looking for

  • IPhoto 09 folder structure bug

    Let me start by saying that I am a big Apple fan. I have a Macbook Pro (end 2006) running 10.6 with a 30 inch Cinema Display, a 23 inch iMac (mid 2007), and an iPhone 3G and a Nano 5th G. I am an Apple Certified Systems Administrator and was also the

  • Problem while bringing Google Calendar events to Oracle Tables

    Hi Friends, I have written the following code to bring the Google Calendar Events to Oracle Tables... CREATE OR REPLACE procedure XX_DEV.authenticate_service_test(p_email in varchar2,p_password in varchar2) is l_request utl_http.req; l_response utl_h

  • How to display BI Content provided infocube as star schema

    I go to Matadata Repository>BI content> and then where to next? There is supposedly a a setting somewhere in the MDR to choose schematic display as star schema.  FYI I want to view one of the available infocubes 0cca_c11 as start schema layout in the

  • Stock requirements list for special stock E

    Hello Experts, Is it possible to view sales order stock along with the sales order and the linked PO in Stock requirements list? If so, would it need configuration changes? Any input would be rewarded with points. Thanks, Raj

  • Role of copy profiles in client copy.

    Hi All, Can anybody give the idea regarding the role & importance of copy profiles in Cilent copy.. Regards Srinivas K