How to call required page after the am.invokermethod is called.

Hi All,
I have a serch page which search the table ABC and returns the results(Standard functionality). I results table will have update icon. Now when the update icon, i will pass param mid = 100, is clicked I need to check the table MST whether it has records with mid=100. If yes, i need to display the details by calling the MSTPG page. If no, need to call other page called MSTTEMPPG.
So, How do i check the record exists in the table or not and call the appropriate page.
If i use am.invokermethod(), it call the procedure and executes but this method doesnot return values.so that based on the return value i can call the required page.
Thanks,

Thanks Senthil for the response.
I Just wanted to keep the question simple and that is not all the requirement.
I know the switcher bean concept i'm sure that it may not meet my requirements.lets keep it a side.
But sure the second point you mentioned. To redirect to page based on the return value should help me can you elobrate / how do i call a page from the AM.
1) Does am.invokermethod() - returns a value.
2) If no, The procedure AM invokes should have the redirect method - what is the method and how do i call the page from AM
Thanks
Ganesh.

Similar Messages

  • How to redirect a JSP page after the session is killed

    Hello!
    I am quite new to JSP. I have a question about how to redirect a jsp page after the session is killed. Could anyone help?
    thanks a lot in advance!

    You can't, directly. There's no connection betweenthe server and browser.
    even after invalidating the session. we can do it
    directly using the statement
    response.sendRedirect("....");
    or we can use the meta refresh tag.if session is invalidated and if we try to do response.sendRedirect(".. ") it throws IllegalStateException

  • How do I spot a command in pages after the app has locked up?

    how do I spot a command in pages after the app has locked up?

    I am not sure what you mean by "spot a command" but in any case this question would likely be better lodged in the iWork Discussion.

  • How to add a page in the SAP Scripts

    Hi All,
    I want to know how to add a page in the sap scripts. there is already sap script developed by some other person.
    Now I have to add a page in front of that and have to add some more data.I added a page in page windows but thats not at all working.
    Please help me out in this.
    Thanks,
    Praveen

    new page will create in sap scripts using new page command.
    you have to set condition like after some number of records displayed in page new page has to be trigger.
    ex:YOU HAVE SO MANY RECORDS FOR PRINTING BUT YOU WANT TO DISPLAY 100 RECORDS IN FIRST PAGE REMAINING IN SECOND PAGE LIKE THAT.
    Here you can use NEW PAGE COMMAND .
    IT IS OPPOSITE PURPOSE OF PROTECT AND ENDPOTECT.
    Reward if useful.

  • How can i open iphoto after the new update OS X 10.9.2 (13C64) i keep getting this mac can not open this application.

    How can i open iphoto after the new update OS X 10.9.2 (13C64) i keep getting this mac can not open this application.

    This screenshow shows which previous versions of iPhoto are compatible with Mavericks.  It also indicates which versions qualify for a free upgrade to iPhoto 9.5.1 and which require a purchase:
    OT

  • TS1702 What is wrong with Pages after the update?

    What is going on with Pages after the update?

    Hey George.iD, you wrote on 6 Feb 2014, this:
    Re: What is wrong with Pages after the update?in response to TRSPAGES
    What's wrong with it?
    As one thing after more-than a month later on 22 March, Pages _refuses_ to alter the color of text.  How maddening this is:  I select text, I select a crayon, but the text _remains_ black.  < Pages is Incorrigible! :-( >
    [After I vented steam, I feel better  --  until later.  What a cycle!  :-) ]

  • [IPhone SDK] How to close all pages after safari exit

    Apps close when you hit the home screen, however i find that Safari seems to keep multiple pages open even you close it , which no doubt uses memory. so does anyone know how to close these pages after safari exit ? Thanks very much.

    Does anyone know it , please give me some advises , thanks very much.

  • How to delete a Page in the portal

    Hello gurus,
    Could you please tell me how to delete a Page in the portal?
    Thanks in advance for any helps.
    Regards,
    Niki Nguyen

    I've tried that procedure, but it keeps giving me a message below, so it won't allow me to delete the Page, what is the next step?  Please advice.
    MESSAGE:
    An error occurred. Objects could not be deleted.
    Objects in the selected folder or object are currently locked
    Thanks in advance for any helps.
    Regards,
    Niki

  • I can't print any web page. after the print command, it wants to save xps files. on cannon printer. vista system

    can't print any web page. after the print command, it wants to save as a xps file.
    == This happened ==
    Every time Firefox opened
    == after up grade to 3.6.6 ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C)

    I found that Firefox/XPS had deleted all printer driver setups except for the XPS connection. I had to reinstall my printer connection in order to have that selection present in the printer dialogue box.

  • Pages 5.2 - When I try to reorder different pages it just takes all the pages within the document and turns them into a stack! Why is this happening and how can I oder pages as the update is meant to let me?

    When I try to reorder different pages it just takes all the pages within the document and turns them into a stack! Why is this happening and how can I oder pages as the update is meant to let me?
    Any Help?I know the update has only been out a while but if anyone has an idea why it is doing this, please let me know!

    But you are telling me something I already know.
    Be precise.
    It is not Pages '09 that is broken.
    I am back in Mavericks and testing Pages 5.2.
    There are improvements, we shall see how useful, but in less than a minute I have already discovered bugs.
    Peter

  • How do I move pages in the thumnb nail view. This was available in previous versions. Can't do it in the new version.

    How do I move pages in the thumnb nail view. This was available in previous versions. Can't do it in the new version.

    Pages v5+ is Apple's version of, “Who moved my cheese?”
    This is a brand new 64-bit rewrite redesign of the prior version. It isn't that they malevolently removed 100+ features that were user productivity habits — it is due to the fact that they haven't had time to restore 8 years of Pages evolution back into the application. The end result is the same. A largely useless product.
    It is anyone's guess what schedule priority and functionality Apple will follow with future application updates. For starters, they should set the version back to 1.0, if for no other reason, than to create an even greater cosmos between Apple Marketing and fact.
    There is no point going further. Peter has shared clarity. Apple is lost in its own funhouse of mirrors regarding desktop applications.

  • Credit Risk Analyzer - How limits can be reset after the term has ended

    Hi Experts,
    I would like to know how limits can be reset after the transaction term has ended.
    Currently, my utilization reports still show past transactions and this transactions are still affecting my limit calculation report.
    Am I missing a process or a configuration?
    Also, would anyone know where the SAP limit utilization report is pulling out the transactions so when I run the limit utilization report, I can still view historical data?
    Thanks in advance.

    Hi Jerry,
      I do not think this customization helps. It only has two options to set start date as start of term or as date of commitment. But what if i want to set in future like your problem. Do we make it date of commitment for all the money market instruments?
    Best regards!
    Sandip

  • How to extract HTML page from the internet

    i am new to java, i wish to know how to extract Html page from the internet and also how to identify the differences between the images and text information?

    You can create a java.net.URL that points to the file you want to "extract" and read the HTML code (or what ever that file contains) from there using the inputstream given by URL.openStream().
    The difference between images and text... well, images are embedded in html using the img-tag. example: <IMG src="http://forum.java.sun.com/images/reply.gif" alt="Reply">. Attributes width, height, alt are sometimes left out and there may or may not be quotes around the values and everything is case insensitive... you'll be having hard time trying to parse the input so I'd suggest using existing parsers.
    What are you trying to do anyway? You can load a URL directly to a JTextEditorPane with the setPage(URL page) method...

  • HT5858 How do you close apps after the new apple update?

    How do you close apps after the new apple update?

    Double tap the home button and swipe upwards on the preview of the App (not the App Icon).
    http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf

  • TS4009 how do you retrieve information after the system has been reset to default

    how do you retrieve information after the system has been reset to default?

    From a backup on itunes or icloud, assuming you have made backups.  Connect to itunes and in the first tab for your device, choose to perform a restore.

Maybe you are looking for

  • ITunes tags to ID3 tags

    Hi, I made a previous question, but now I see it again, I see it can be misleading, so I'm rewrtiting it: I have managed to have my itunes library quite neat now, all the artists and songs tags are the way I like them to be. However, I have noticed t

  • Parallel currencies in Asset

    Hello In our case Legal valuation & Profit Centre valuations are active with currency INR.  In the Depreciation areas for Asset account, I have copied reference 0IN and I have kept two depreciation areas 01 (book) & 15 (tax).  However, while trying t

  • What is Laserfiche and what does it do?

    What is Laserfiche and what does it do?  Does it integrate with O365? Is it a standalone plan or an add on? 

  • After I got the update I now have 10GB of new 'other' info on my iPhone, how do I fix this?

    I don't know why it happened.  I had far less than 1GB before this and now I have over 10GB.  All of it was added to the 'other' category and I have no idea of how to get rid of it, where to remove the 'other' information.  I'm getting frustrated bec

  • Paid for a app twice

    I paid for a bike on bike race and i download it again and it made me pay fo it again. What do i do?