Execute method from outside the view

Hi,
I have a method in view X that I would like to execute from view Y. what is the API for executing a methods from another view? (I know the API for executing a method in the controller, but now I refer to a method in the view).
Thanks in advance,
Aviad

Hi Aviad,
As far as I know, there is no direct way to access a view's method from another view. But you can achieve this functionality using events.
1) Create an event and a method to fire this event in your component controller.
2) Create a corresponding event handler in the second view, which will call the desired function.
3) Now from the first view, you can call the event triggering function of the component controller. This will inturn execute the method in the second view.
If you need to manipulate some data, you can either pass them as Event parameters or use data mapping.
Hope this helps,
Best Regards,
Nibu.
Message was edited by: Nibu Wilson

Similar Messages

  • Can anyone get personal information from my computer from outside the home

    Hello, Is it possible for someone to get information from my computer from outside the house
    ? thanks

    Sadly your credit card info is easy to pickup from the following insecure methods:
    1. Connecting to a passwordless WiFi, or one with just WEP or WPA version 1 encryption.  Always use WPA2. Make sure your password is not in any dictionary of any language.
    2. Delete all browser cookies for retailers that have had credit card transactions before using the computer in a WiFi hotspot that has no password requirements.
    3. Connecting to a website without at least 128 bit RSA key encryption and entering your credit card number in such a website.  Browsers have a method of determining your encryption either by clicking the lock icon, or hovering over the lock icon, or viewing the web browser security settings.  When making online transactions, do not save your credit card number to any website, and secure the website you are making a transaction with, with a password that isn't found in any dictionary.
    4. Look at your credit card receipts wherever you use your credit card.  Both the customer copy and the retailer copy should have all but the last 4 digits Xed out.  If they are all visible, inform the retailer there are more secure credit card machines that do, and you won't purchase anything with them by credit card until they use such machines.
    5. Gas stations, it is better that your receipt is not printed at all, and if it is, don't forget to check with the attendent if they have a copy of the receipt and get it from them.
    6. Credit card wireless scanners.  Apparently people have managed to scan other people's back pockets and get the credit card number off them.  If at all possible don't leave your credit card in your back pocket, and use your front pocket, or a purse that you always keep an eye on.
    If your bill online or otherwise indicate charges you don't recognize, get your number changed immediately, and dispute the charges within 60 days.  If you don't you may be liable for them.  Otherwise you are usually only liable for the first $50.

  • Invoke an awt event from outside the swing application

    Is it possible to invoke an awt event triggered from outside the swing app? I am trying to implement a use case where i have to open a new tab in an already running swing app when a user clicks on a browser link.

    I have a desktop application that was invoked via webstart. The java webstart process started when the user clicked on a link that downloaded the swing application and now it runs in the clients JVM. Each browser click downloades and launches the application that performs a certain function. Now lets say, the user clicks on another link, then i don't want another java application to be launched. I want the same application that executes the function in lets say a new tab.
    Its kind of like you click on a link that somebody sent you in an outlook email. When you click on it and if firefox is already running, the link opens up in a new tab on an already running firefox browser. If firefox was not running, it starts a new firefox process.
    Hope this makes sense

  • Pages (or Numbers) Template Cannot Be Opened From Outside the Application

    Ever since the upgrade to Mavericks, I cannot open a Pages (or Numbers) template without being asked.....
    Do you want to add this custom template to the Template Chooser?  Then my only options are Cancel or Add to Template Chooser.
    If I cancel, it won't open anything.
    But this template is already in my Template Chooser.
    So the only way to open a template in Pages (or Numbers) is to open the application first, and then click "New", and choose the template.
    I can't figure out a way to open the template from outside the application, which is very very handy, rather than having to open the application every time that I want to access a template.
    How can I open a template simply by clicking on it?

    Yes, the problem is that opening the template from outside of the application will not open the application, showing the document.  I only get this....
    Do you want to add this custom template to the Template Chooser?  Then my only options are Cancel or Add to Template Chooser.
    If I cancel, it won't open anything. 
    But this template is already in my Template Chooser.
    Put your Pages or Numbers document on your desktop and open it by double-clicking it, and you'll understand.  You can't do it, even if the template is in your template chooser.
    The only way to do this now is to open the application, select "New", and the select the template.  So you cannot open a template from outside the application....only from within.

  • How can I use an American credit card to pay for a membership from outside the US?

    How can I use an American credit card to pay for a membership from outside the US? My payment page is set up for Japanese credit cards. I can't change to the US store, because the "Select a Store" page just jumps to the "Products" page.
    Has anyone else had this problem? Any help would be much appreciated!

    Hi Batt5721,
    Welcome to Adobe Forums.
    The address and the country on the Credit Card should match the billing address then only payment would be possible.
    Thanks
    Garima

  • How to get the number of community members from outside the community

    Hi everyone.
    I need to know if there is any way to get the number of community members from outside the community, I mean, not using the "What's happening" webpart. I want to build up a page with a Webpart that summarize my three most visited communities indicating
    number of members, three last messages in the newsfeed, and number of posts in blog, wikis, document libraries, etc.
    Do I need statistics to get this kind of information? Should I use Sharepoint Object model instead?
    Here is an example of what I need:
    - Community name
    - Number of members
    - Community activity (messages, docs uploaded to library, etc)
    - Number of posts in calendar, blog, wiki that belongs to community
    Thank you all!

    Hi Thuan.
    Thanks for your answer but it does not help me because these communities are Sharepoint Communities not external sites so I need to get that information using SP object model and BCS in this case is useless.
    EDIT
    I found the solution using the search objects but I was only able to get members, discussions and replies
    using (ClientContext clientContext = new ClientContext("URL_OF_ENTERPRISE_SEARCH_CENTER"))
    KeywordQuery keywordQuery = new KeywordQuery(clientContext);
    keywordQuery.QueryText = "The_Name_of_the_Community WebTemplate:COMMUNITY";
    SearchExecutor searchExecutor = new SearchExecutor(clientContext);
    ClientResult<ResultTableCollection> results = searchExecutor.ExecuteQuery(keywordQuery);
    clientContext.ExecuteQuery();
    System.Collections.Generic.IDictionary<string, object> ret = null;
    foreach (System.Collections.Generic.Dictionary<string, object> resultRow in results.Value[0].ResultRows)
    Console.WriteLine("{0}: {1} ({2})", resultRow["CommunityMembersCount"], resultRow["CommunityTopicsCount"], resultRow["CommunitiyRepliesCount"]);
    This is a Console Application.
    I hope someone helps

  • Premiere Pro CC's sequence lost. Is there a way to "search" for it from outside the project?

    I seem to have lost a sequence created in Premiere Pro CC. I can't find it anywhere inside the Project bin.
    We have so many same-name, older projects (between Auto-Save, different drives and so on) that looking inside each of them would take forever.
    But we do know the name of the sequence. I am wondering  if there is a way to "search" for a sequence name from outside the project?
    Thanks

    there is a way to "search" for a sequence name outside of the project,
    but it would be a pointless waste of time.
    sequences are only saved within the project file itself!!
    We have so many same-name, older projects (between Auto-Save, different drives and so on) that looking inside each of them would take forever.
    better get at it then!
    hahahahahahahaha!!!

  • Can not access CRM from outside the office network - Access denied You do not have sufficient access rights or privileges to perform this action.

    Hi,
    I can not access CRM from outside the office network - Access denied You do not have sufficient access rights or privileges to perform this action.  I can access CRM with same user id and password from our office inside the network.  I can get
    the page to give login details once I have login details I got below error. Please help me to solve this issue.  It was working before.
    Access denied You do not have sufficient access rights or privileges to perform this action. 
    Regards,
    Noushad
    [email protected]

    On Premise system Configured with AD FS server for claims-based authentication you need to update your host file with server url to access it from outside office network.
    Refer
    this on how to update host file.
    Regards, Saad

  • Numbers (or Pages) Template Cannot Be Opened From Outside the Application

    Ever since the upgrade to Mavericks, I cannot open a Numbers (or Pages) template without being asked.....
    Do you want to add this custom template to the Template Chooser?  Then my only options are Cancel or Add to Template Chooser.
    If I cancel, it won't open anything.
    But this template is already in my Template Chooser.
    So the only way to open a template in Numbers (or Pages) is to open the application first, and then click "New", and choose the template.
    I can't figure out a way to open the template from outside the application, which is very very handy, rather than having to open the application every time that I want to access a template.
    How can I open a template simply by clicking on it?

    Yes, the problem is that opening the template from outside of the application will not open the application, showing the document.  I only get this....
    Do you want to add this custom template to the Template Chooser?  Then my only options are Cancel or Add to Template Chooser.
    If I cancel, it won't open anything. 
    But this template is already in my Template Chooser.
    Put your Pages or Numbers document on your desktop and open it by double-clicking it, and you'll understand.  You can't do it, even if the template is in your template chooser.
    The only way to do this now is to open the application, select "New", and the select the template.  So you cannot open a template from outside the application....only from within.

  • Calling Options Team from outside the UK

    I am away on business and I need to call BT Options Team urgently due to a flood in my office back home. All numbers are 0800 numbers or go through to call waiting numbers with no idea how long it will take to get through. Having waited 45 minutes listening to the 'in a queue message' I had to hang up. Anyone know the correct number to call from outside the UK and how one can get through or email the team since there appears to be no one there.

    Hi daylight,
    Welcome to the forum.
    The Customer Options Team deals with cancellations so I'm not too sure how they can help if your premises are flooded, the Faults team might be a better team to speak to?
    I'll PM you their number (when calling from overseas) though if your account is a BT Business account the number will be different so I'll PM both.
    For future reference the BT Business Forum is at http://btb.lithium.com/t5/Forums/ct-p/forums
    Hope you get this sorted, I can only imagine how stressful this would be. You can also email in if you want, we'll need your BT account details and forum username sent to the email address registered against my profile.
    Thanks,
    Stephanie
    Stephanie
    BTCare Community Manager
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post. If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • I need to link to a screen within a movie from outside the movie

    Hi,
    That last question was answered so quickly, I'll ask this
    next one right away:
    I need to link to a screen within a movie from outside the
    movie (so for example, from file1.cp, I need to open file 2, screen
    4).
    Am I able to do this in Captivate 1?
    Thanks,
    Kim

    I've just gotten a chance to check out these responses. About
    the Flash - no can do. Don't have it. And about breaking the file
    apart, that would get messy because I have several files already.
    OK. At least I know my options are limited to linking to page 1
    from outside, so I'll have to be creative.
    Thanks for the response.
    Kim

  • How can I buy subtitled movies from outside the US?

    how can I buy subtitled movies from outside the US?

    People here are users, you need to contact Apple Inc. by phone and see if you can resolve this problem.
    http://support.apple.com/kb/he57

  • Why are my images scrolling from outside the Page width?

    Why are my images scrolling from outside the Page width? I am positive i has all the settings correct, to have an image parallax scroll from the edge of the page into the page and out again. But the images are flying in from the browser width - not the page width. This is not the effect I am after.
    Any suggestions on how to fix this? Given the key position is only linked to the height, I can't for the life of me work out how to ensure the images start moving from a certain position onthe left and right of the page.
    Thanks

    I think the effect you are seeing is a result of how the lineHeight is set up. By default, the lineHeight will be calculated as 120% of the size of the largest thing on the line -- in your case, this is the inline graphic. This is designed to leave space between the line before and the line with the graphic. So it is taking the height of the graphic, multiplying by 120%, and making this the distance between the previous line and the line with the graphic. So the bigger the graphic, the bigger the space above the graphic. Normally this works well with text, but in this case you may want to get closer to "set solid". You can do this by setting the lineHeight to 100%. Or you may wish to leave a couple of percent for the descenders of the previous line. Or, another alternative that may work well for you if you really know exactly where you want the line set, you could measure the graphic, add on the number of extra pixels to leave for the descenders, and make the lineHeight a constant. So you could do something like this:
    <img lineHeight="104%" height="411"/>
    or this:
    <img lineHeight="423" height="411"/>
    Obviously you would still need to specify the source and any other parameters you want on the image.
    Note that if you are trying to fit a 200 pixel high graphic into a 200 pixel high container, you will hit the same problem -- in order to fit the graphic, the container will have to be slightly bigger than the graphic in order to fit the descenders on the last line. This is true even if the last line contains only the graphic, and no descenders (or text) at all.
    Hope this helps,
    - robin

  • Submit a af:subform from outside the subform

    Hi friends,
    Can you tell how can i submitt the subform on button click from outside the subform .
    Event submitting the individual inputText or selectOneChoice will work , only thing is the button is outside the subform.
    This is to stop the validations getting done on partialPageSubmit.
    This is done to solve this poblem Re: Mandatory fields on the same page with dependent LOVs
    Regards
    Rohit
    Edited by: Rohit Hoon on May 28, 2009 1:51 AM

    hi Frank
    I don't want it to get submitted when a list with partiaSubmitt is true but only when a button is clicked
    Regards
    Rohit

  • Error messages shown outside the view/table.

    Hi People,
          I have created a view & added an event 'Before saving the data' to it. So when we enter data into the view & try to save it, it will trigger the event & that will call a function module, which will check if the user entries are correct, If the entries are incorrect then i am showing an error message. The problem is, this error message is shown outside the view maintenence screen but inside the sm30 transaction! then I have to navigate back to my view maintenence screen. Kindly guide me on how to avoid this & make the error message appear in the same view maintenence screen. 
    Thanks & Regards,
    Deepak

    Hi,
          I have now used the event '05' For new entries. I am able to validate the entries, & show the error messages for invalid entry. Now when I enter valid input, still the vent is triggered & it shows me the error message. I am using the following code
    FORM CHECK_BEFORE_SAVE.
        DATA: wa_total(1000) TYPE c.
        DATA: BEGIN OF ls_total,
                mandt type mandt,
                FUNCTIONAL_ID type /PRA/RESP_FUNC_AREAS,
                HIER_ID type /PRA/HIER_ID,
                DESCRIPTION type /PRA/HIER_DESC,
                CHANGE_FLAG type boolean,
               END OF ls_total.
    LOOP AT TOTAL INTO wa_total.
        ls_total = wa_total.
        IF ls_total-functional_id IS INITIAL.
            MESSAGE E208(00) WITH 'Functional Area cannot be empty'.
        ENDIF.
    ENDLOOP.
    ENDFORM.
    I see that when i enter the valid entry & this event is triggered, The global table for view TOTAL is not refreshed with new values & hence I still get the error. How do i refresh this TOTAL table?
    Regards,
    Deepak

Maybe you are looking for