Calling a method in the view controller from the component controller

Hi
Is there anyway to call a method in the view implementation from the component controller??
Thanks
jack

Thanks for all your replies. I want this kind of a functionality because Im trying to invove a DC (Child DC) from a Parent DC such that the Child DC's view is displayed onto the view container of the Parent DC. I have embedded using 'interface view of a component instance' in the Parent Window and am able to create the component and set usage though the onPlugDefault of the Child View.
But I observe that when i make a call from the parent, the flow is like this:
1. The wdDoInit of the Child Component Controller gets triggered first.
2. Then the wdDoInit of the Child's <b>VIEW</b> gets triggered
3. and <b>THEN</b> the onPlugDefault of the Child Component Interface View
What I had actually wanted was to Fire onPlugDefault where Im calling a method LoadData(), after which the Child DC's view must be triggered so it can display the fetched data.
What is actually happening is the view gets displayed, but no data is displayed in the view.
Right now I have just given a work around where Im triggering <b>LoadData()</b> of the <b>COmponent COntroller</b> from the <b>wdDoInit</b> of the <b>VIEW</b>.
Is there a better way to do this? I find it strange that I have to load the Data from the view.
Thanks
Jack

Similar Messages

  • IDVD 7.1.2: I am making music instrument instructional DVDs, and I want to include several audio loops in that the viewer access from the main menu to play along with

    iDVD 7.1.2: I am making music instrument instructional DVDs, and I want to include several audio loops that the viewer access from the main menu to play along with

    Export the slideshow out of iMovie via the File  ➙  Share ➙ File menu option as a 480p Quicktime movie.
    Open iDVD, select a theme and drag the exported QT movie file into the open iDVD window being careful to avoid any drop zones.
    Follow this workflow to help assure the best quality video DVD:
    Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image  menu option. This will separate the encoding process from the burn process. 
    To check the encoding mount the disk image, launch DVD Player and play it.  If it plays OK with DVD Player the encoding is good.
    Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality.  Always use top quality media:  Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    OT

  • How do I customize the toolbar if I've removed the "view" tab from the toolbar?

    I was trying to customize my toolbar while working in excel and accidentally removed all of the tabs along the top toolbar (File, Edit, View, etc).  I can't figure out how to put them back as all of the help threads begin with "go to the View tab".

    Hi, ryanfromtorrance.
    I think I'm understanding what you did.
    You will need to start in the Excel menu bar at the very top of your screen.  The one with the  in the far left corner.  Find the View menu there. It should be three over from the  icon.
    Click View > Customize Toolbars and Menus...
    When the Customize Toolbars and Menus window opens, click the Toolbars and Menus tab, then make sure the checkbox next to Standard is checked.
    That should return the display of your toolbar when you close that customize window.
    I hope this is helpful.

  • How to call  a method of one view in other view

    Hi
      could any one suggest "how to call  a method of one view in other view "
    thanks
    kaushik

    Hi Kausic,
    Its not possible to call a method from view to View.
    Since view is private entity we can not pass the data directly.
    I suggest you to declare the method in Component/Custom controller and call.
    the code is,
    wdThis.wdGet<Component/Custom Name>Controller().<methodName>();
    Regards,
    <b>Ramganesan K</b>

  • Problem calling a method which takes a parameter from a table

    Hi guys,
    I'm very new to jsf and hope you can help me out.
    On my page i'm generating a list, which is working fine. now i want to add some commandLinks to the list entries. on click, i want to execute a bean method, which takes a parameter from the list, generates a picture and displays it on my page.
    here's a piece of code thats already working:
    <rich:dataTable var="data" value="#{pathwayBean.orgList}">
    <rich:columnGroup>     
            <rich:column>     
               <h:outputText value="#{data.name}" />
         </rich:column>
    </rich:columnGroup>
    </rich:dataTable>now, i want to replace the outputText with a commandLink, and execute a method with {data.id} as parameter. Unfortunately, the commandLink property "action" can only call bean methods with no parameter, or is that wrong?
    Thanks in advance,
    Alex

    use actionlistener.
    here a typical code that works fine for me:
    (JSF 1.2)
    //Java
    private Integer selectedItemId=null;
         public void selectItem(ActionEvent event) {
              // Find the UIParameter component by expression
              UIParameter component = (UIParameter) event.getComponent().findComponent("itemId");
              // parse the value of the UIParameter component
              try {
                   selectedItemId = Integer.parseInt(component.getValue().toString());
                   // find itemBean here using selectedItemId
              } catch (Exception e) {
                   logger.error(e, e);
              logger.info(" +++ selectedItemId =" + selectedItemId);
         public String viewItem() {
                 //create view beans here
                 return "itemView";//return appropriate view.
    //JSF
    <h:column>
                             <h:commandLink     id="View"
                                                 action="#{itemListBean.viewItem}"
                                                       actionListener="#{itemListBean.selectItem}">
                                  <h:outputText value="select"/>
                                  <f:param id="itemId" name="itemId" value="#{itemBean.id}"/>
                             </h:commandLink>
                     </h:column>

  • RMI call back - How to refer to the client project from the server project?

    Hi, I am working on an RMI assignment which basically needs me to use the RMI call back for the server to notify the clients.
    I have 2 projects , one for the client and another for the server.
    In the client project, I have a client interface and the main client class implements this interface.
    In the server project, I have a server interface and a class that implements this interface.
    I can use the server interface in the client project's code by adding the server project in the path of the client project. it lets me use the server interface in the code if I put "import.." statement.
    But the issue is I can not do the same to access the client interface from within the server project's code. Since that will be a circular reference, the compiler does not let me use the client interface from within the server's code. This is putting me in a great difficulty and I am stuck here. What should I do so that I can use the client interface and the compiler won't complain?
    Thanks for any help..
    Regards.. js

    Let me explain what I tried: I manually generated stub class of the client using the Eclipse IDE as mentioned in my previous message. The StockMSClient_Stub.class got created in my client project.
    The common project has the 2 interfaces - one from the client and one from the server.
    I have added reference to the common project from the client and server projects to use the interfaces.
    With the above mentioned in place, when I run the server project, the registry binding of the server objects is very fine. But I am getting error in the applet at the line where I am passing the client object to the method provided by the server interface. The following is the code snippet in the applet where I am getting the error.
    specifically the line: String response = objs.login(userId, password, smsClient);     ====================
    public void login() {
                Registry reg = null;
                String userId = "test";
                String password = "test";
                this.smsClient = new StockMSClient();
                try {
         reg = LocateRegistry.getRegistry(rmiHost,rmiPort);
                          UserInterface obj = (UserInterface) reg.lookup(rmiStrings
                                                                                                                        [1]);
         User u = obj.find(userId);
         if (u == null) {
              System.out.println("This user is not valid");
         } else {
                         UnicastRemoteObject.exportObject(smsClient);
         reg = LocateRegistry.getRegistry(rmiHost, rmiPort);
         LoginLogoutInterface objs = (LoginLogoutInterface) reg
                                   .lookup(rmiStrings[0]);
                        //getting error at the following line.
                        String response = objs.login(userId, password, smsClient);     
                         System.out.println("response :" + response);
               } catch (AccessException ae) {
                       System.out.println(ae);
               } catch (NotBoundException nbe) {
                      System.out.println(nbe);
               } catch (RemoteException re) {
                      System.out.println(re);
    } //end login()====================
    Error is:
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
         java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
         java.lang.ClassNotFoundException: sms.rmi.graphics.StockMSClient_Stub (no security manager: RMI class loader disabled)================
    I don't know why this is happening..Please help.
    thanks & regards, js
    Message was edited by:
    jsitaraman

  • How to call a method of an Action class from JSP on load?

    Hi guys
    Due to bad design pattern, i am forced to do something which i have not tried before.
    I need to call a method of a struts action class which invalidated the user session FROM the JSP itself on load. Which means it would not require user input.
    We have a subclass of a DispatchAction that handles all the incoming .dos.
    So http://blarblarblar:7001/blar/blar/doSomething.do?method=logout will dispatch to an Action class called DoSomething, into a method called logout().
    So when the webapp throws an exception, the ActionMapping actually displays an error.jsp and i have to invalidate the user at this stage.
    I can't change the most top level code in the base action class so i got to do it this way.
    Any help is much appreciated.
    Thanks.

    hi :-) DispatchAction is quite cool ;-)
    dont get much of your question but hope
    the suggestion below could help.
    A. use redirect?
    or
    B. autosubmit the form
    1. create your form in a jsp
       <html:form action="/doSomething" />
         <html:hidden name="method" value="logout" />
       </html:form>2. auto submit the form with method = logout
    put the function autosubmit in the "onLoad" event of the body
       <script>
         function autosubmit(){
         var form = document.yourformname;
         form.submit();
       <script>regards,

  • Choosing the view dynamically from mm02

    Hi Experts,
    I am making a BDC Program  of transaction MM02, As per the requirement I need to choose a particular  view
    and  change the value of a field (which is a custom field added through extention)
    now  i have cheked many materials , with change of material no the  position of the views differs in the sequence,
    for eg : if the view  is sales org 
    for material 001 it is on 5th No and for material 002 it is  on 4th noi
    i need to pick the same view for every material irrespective of the position of  the view in the sequence
    if record with matarial 001 the cursor would go 5th no ;while uploading materials like 002  the program would pick the view on 5th no which would not be sales org.
    Could u please tell me if there is a way through which we can pick a particular view for all materials dynamically.
    Edited by: sabsvk on Sep 21, 2009 12:54 PM

    Since the views are dependent on material types so you have to go by the material type of the material which you can find out in MARA table.
    Apart from the previuos replies you can check the following code for your BDC.
    DATA: lv_tkstatus(15),
          lv_dispstatus LIKE t130m-pstat.
    DATA: BEGIN OF lt_bildtab OCCURS 30.
            INCLUDE STRUCTURE mbildtab.
    DATA: END OF lt_bildtab.
    PARAMETERS : p_mtart LIKE t134-mtart.
    SELECT SINGLE pstat INTO lv_tkstatus FROM t134 WHERE mtart = p_mtart.
    CALL FUNCTION 'SELECTION_VIEWS_FIND'
      EXPORTING
        bildsequenz  = '21'
        pflegestatus = lv_tkstatus"mara-pstat
      TABLES
        bildtab      = lt_bildtab.
    LOOP AT lt_bildtab.
      IF lt_bildtab-pstat CA lv_tkstatus.
        IF lt_bildtab-kzanz IS INITIAL.
          lt_bildtab-kzanz = 'X'.
          MODIFY lt_bildtab.
        ENDIF.
      ELSE.
        IF NOT lt_bildtab-kzanz IS INITIAL.
          CLEAR lt_bildtab-kzanz.
          MODIFY lt_bildtab.
        ENDIF.
      ENDIF.
    ENDLOOP.
    READ TABLE lt_bildtab WITH KEY dytxt = 'MRP 1'.
    * Take the SY-TABIX value to locate the position.
    May be some help you will get.
    Regards
    Shiba Prasad Dutta

  • How to call java method having array as argument from c++ ?

    Hello sir,
    how to call java method having array as arguments from c++;
    here is java code which is called from c++
    class PQR {
         public void xyz(int[] ia) {
         System.out.println("hi");
              for (int i = 0; i < ia.length; i++)
                   System.out.println(ia);
    suppose all jvm invocation is done...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    For someone well versed in java, C++ and JNI although tedious that should be obvious.
    For someone not well versed in all three it is going to be very difficult.
    Even for someone that does have knowledge in all of those areas coming up with a C++ interface that reflects that functionality in a dynamic way such that anyone is will to use it is going to be quite an adventure.
    At any rate to start building it you do exactly the same thing that you would in java.
    1. Extract everything in the jar via the zip package
    2. For each found instance extract all of the methods, return types, parameters, etc and build a description tree for each class.
    Doing all of that in C++ is going to take a LOT of code. If someone wanted an estimate from me it would take me 6 months to do it. And before I would even attempt it I would get them to explain to me in detail exactly how they thought they were going to use it when I was done because I can't see any reasonable way to do that.
    I left out the description tree itself. I suppose you could duplicate the entire reflection api in C++.
    Now perhaps if it was much, much more constrained, like to only those classes that implement a single interface then that would be more reasonable.

  • Iam from Yemen we have CDMA carrier called Yemen mobile I bought an iPad from the US CDMA works with Verizon when I got to Yemen doesn't work with the carrier Yemen mobile and  both carriers verizon and Yemen mobile work by the CDMA system don't know whey

    Iam from Yemen we have CDMA carrier called Yemen mobile I bought an iPad from the US CDMA works with Verizon when I got to Yemen doesn't work with the carrier Yemen mobile and  both carriers verizon and Yemen mobile work by the CDMA system don't know whey can anyone help me please..

    A Verizon-model iPad can only work on CDMA with Verizon. You cannot use it with any other carrier. Apple, to my knowledge, has not released the iPad in Yemen, so there is no iPad you can use with any carrier there that works only on CDMA. You would need to find a GSM carrier and then get an unlocked GSM iPad.
    Regards.

  • I viewed photos  from the memory card of my camera without importing them to my mac air but on the next day I realized that I Lost my memory card. Is there a chance that my mac air took a back up of these photos ? Please say yes and guide me pls

    I viewed photos  from the memory card of my camera without importing them to my mac air but on the next day I realized that I Lost my memory card. Is there a chance that my mac air took a back up of these photos ? Please say yes and guide me through the steps to recover them. I need URGENT HELP please

    If you didn't import them to Photos or copy them to the hard drive there will be no way to recover them. 
    How did you view them?

  • SSRS in SharePoint2013:Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModule

    SSRS in SharePoint2013: There is a report in SharePoint and it contains a sub-report and the sub-report hyperlink. When I click the hyperlink to go to the sub-report, after >10min, I click the "Back to.." button
    on IE to go to the previous page. Then it catch the error as:
    Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
    Details: Error parsing near '
    <!DOCTYPE html PUB'.
    I am using SQL2012 and Sharpoint2013.

    Hi Alisa,
    Thanks for your reply, I changed the web.config, but the issue did not resolved. 
    I add the codes in two parts of the web.config as below, you can find in by keywords “aspnet:MaxHttpCollectionKeys”
    This issue can not reproduce on Chrome only occur on IE.
    So, do you have some details suggestion for me to fix it?
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <configuration>
    <configSections>
    <sectionGroup name="SharePoint">
    </sectionGroup>
    <location path="_layouts/15/TA_AppMonitoringDetails.aspx">
    <appSettings>
    <add key="ChartImageHandler" value="storage=memory;timeout=20" />
    </appSettings>
    </location>
    <location path="_layouts/15/ReportServer/RSViewerPage.aspx">
    <appSettings>
    <add key="aspnet:MaxHttpCollectionKeys" value="10000" />
    </appSettings>
    </location>
    <system.net>
    <defaultProxy />
    </system.net>
    <appSettings>
    <add key="aspnet:MaxHttpCollectionKeys" value="10000" />
    <add key="aspnet:RestrictXmlControls" value="true" />
    <add key="FeedCacheTime" value="300" />
    <add key="FeedPageUrl" value="/_layouts/15/feed.aspx?" />
    <add key="FeedXsl1" value="/Style Library/Xsl Style Sheets/Rss.xsl" />
    <add key="ReportViewerMessages" value="Microsoft.SharePoint.Portal.Analytics.UI.ReportViewerMessages, Microsoft.SharePoint.Portal, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
    </appSettings>

  • How to call the RFC's from the third party applications or Non SAP applicat

    Hi,
    For calling RFC's from the wedynpro , SAP has provided the modeling concept.
    In the same way, if i want to access or call the RFC 's from the third applications or Non SAP applications what is the procedure and what is the methodoligy.
    As per my knowledge, we need to expose those RFC's as webservices . Then we must be able to acces in hetrogeous environment from any third party applications..
    Please revert back soon, It is very urgent.
    Regards
    Vijay

    Ayyappa Raj,
    Thanks for the reply.
    Please let me the detailed information for implementing.
    AS you said . I need expose the RFC's as webservice. This point is clear to me.
    2) Use tthe JCo to connect and create client proxy.
    Can u please elabrate the above point?
    If u have any steps created in the document or url to refer. Please forward it to me.
    Please forwar the document to this id "vijay00" in yahoo.
    AS the sdn is not allowing to give  the maill id i have given only the id details in yahoo.
    I am new to this procedure.
    Regards
    Vijay

  • Newsstand suppresses the home screen from the app switcher view when the home button is pressed?

    Newsstand suppresses the home screen from the app switcher view when the home button is pressed.
    Has anyone else seen this before, I needed to lock and unlock iPad to get back to the home screen.

    Aloha Ethan. Fortunately it's working as designed, but you'd never believe how many people wanted to argue with me smply because it worked differently. Can't please everybody I guess.  Bob. 

  • Is there a method of deleting the developer key from the user?

    Is there a method of deleting the developer key from the user?
    Please help me.

    Hi Matt,
    Could you explain from which table should be deleted..?
    Thanks.
    Regards,
    Ramses Hutahaean

Maybe you are looking for

  • How can I change the permissions on a read only external HD

    I have a WD external HD and I am transferring a file more than 4GB in size. The current partition scheme supported by Ma, being FAT 32, supports only up to 4GB in file transfer size. If I format the external HD on my PC in a NTFS file format it is su

  • Delta not reflecting in ODS

    Dear All,          I am pulling data from Ztable (R/3) using generic extraction. The data is on planned production. The fields are YEAR,MONTH,WEEK, UPLOAD-DATE , MATERIAL,QUANTITY. The R/3 user uploads a flat file every month into this Ztable. During

  • Identifying separate cel phone names in my contacts

    In many cases I have two or more cel numbers within individual contacts in my Outlook 2007. to aid in calling the correct one I have added their name after their number (ie. Tom) in the same field & it synced just fine with my previous HTC WM 6.1 pho

  • FDM Web interface - inputbox to populate variable in script

    Hi Everyone, I am looking for a way to input a variable via the web so that the variable can be used when scripting in FDM. I am currently using the messaging function in FDM to display the message but can not seem to find an "inputbox" within FDM AP

  • Remove space of JButoon

    how can i remove space (Top , Bottom, left and right ) of JButton