How can I call AM from another page

Hi,
I have come across a situation which I am not sure how to solve it. Here is the issue. I have a custom requirement to add another page to an already existing custom page. The first page used to hold the data and commit buttons however because of requirements, we want users to add some comments on the second page and then save the data. In other words the save button is now suppose to move to the second page.
The dilemma I have is that the method that used to be called from the PFR CO of Page 1 was linked to page 1 AM which had that commit method.
I still want to re-use the method from the Page 1 AM since there is a lot of logic involved. How can I call that method while I am in my second page from my CO?
I am using setForwardURL and I am retaining AM from page 1.
Also, if this is not feasible what are other alternatives. Any ideas would be appreciated.
Edited by: user501998 on Jan 7, 2010 12:21 AM

Hi,
Can you give me an example? I mean do I just call the AM like in the example below...in my PFR...of Page 2 Controller. I thought this would be giving me an error method not found or something since it would be looking at the AM of my current page. I will try it and see but if there is another syntax can you please provide it.
Thanks
Partial code from PFR of Page 2
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
if(eventName.equals("save"))
if ( respName.endsWith("Admin") )
am.invokeMethod("commitTransaction"); --- This is the AM Method in Page 1...
} else
throw new OAException("Shipper successfully updated.", OAException.CONFIRMATION);

Similar Messages

  • New iphone 6 with ios 8.0 crushed and didnt open again. call center told me that use itunes to update 8.0.2 but server is too slow and didnt let me download it. it stopts in the middle of the session. how can i download it from another link or server

    new iphone 6 with ios 8.0 crushed and didnt open again. call center told me that use itunes to update 8.0.2 but server is too slow and didnt let me download it. it stopts in the middle of the session. how can i download it from another link or server. by the way i try to dowload from turkey.

    anyone help me there? )=

  • How can i import contacts from another AIM account to this new one

    If you reference my last ichat question, you will see that I have had serious problems and had to create a new account.
    How can I import contacts from another AIM account to this new one??

    Hi,
    Use AIM for Mac and use the Export and Import features.
    Other than that it is a question on making sure every Single Buddy has more than just their Screen name in the IChat Address Card so it is added to the Address Book and dragging them back from there
    9:08 PM Thursday; February 7, 2008

  • How can i get data from another database SQL Server use database link from

    I have a database link from Oracle connect to SQL Server database with user cdit connect default database NorthWind.How can I get data from another database(this database in this SQL Server use this database link)?

    hi,
    u should see following documentation:
    Oracle9i Heterogeneous Connectivity Administrator's Guide
    Release 1 (9.0.1)
    Part Number A88789_01
    in it u just go to chapter no. 4 (using the gateway),,u'll find ur answer there.
    regards
    umar

  • How can i transfer songs from another itunes other than mine

    how can i transfer songs from another itunes other than mine

    Purchases made under 1 Apple ID are permanently associated with that Apple ID and CANNOT be transferred to another Apple ID.  So if you want to keep those songs, you'll need to always have access to your dad's account.
    B-rock

  • How can i copy songs from another library to my itunes library with homesharing?

    How can i copy songs from another library to my itunes library with homesharing?  I see the other libraries, but cannot drag the songs into my library.  The help window says to use the "show menu" at the bottom, but I don't have that menu with itunes 11.

    You can do this in 2 ways.
    1) You can enable the sidebar and you can drag and drop like you used to be able to.  To turn on Sidebar in iTunes 11, go to View > Show Sidebar
    2) Another way is to connect to your Home Share from the drop-down menu from the left (where it says Music) and select your Home Share.  Once you are connected to your Home Share, select Music and you should see a button that says "All Items" and on the right, you should see the Import button.  To copy, select the songs you want to import and then click on Import.

  • How can I retrieve playlists from another Spotify account

    How can I retrieve playlists from another Spotify account that the email is no longer active and I forgot the password to that account.

    Hey there , welcome to the community!
    Since you have two accounts, it would be best to just have Spotify close that account and have them transfer all your music to your new account. How does that sound? If you contact the accounts team through the online contact form and provide the account username with the e-mail address, date of birth, and zip code on the account then they should be able to do it for you! If you receive an automated e-mail directing you back to the community, just reply to it and you should receive a reply from a representative within 24-48 hours.

  • How can I download music from another computer's music library to my Ipod without losing my own music?

    How can I download music from another computer's music library to my ipod without losing my own music?

    You'll want to enable Manually Manage Music and Videos. Once you do that you'll be able to drag and drop the music from the computer to the iPod.

  • Iweb question. How can you remove music from a page?

    How can you remove music from a your welcome page on iweb? Dumb but I can'f figure it out.

    Hi ...
    Try posting in the iWeb forum here.

  • I lost my I phone how can I track it from another I phone

    I lost my I phone how I can I find it from another I phone

    IF you set up the find my iphone feature on your iphone, then you can search for it from the Find my iphone app on another iphone.  Sign into your account and see if it can locate it.
    IF you did not set upt the find my iphone feature on the iphone, then you cannot track it.

  • How can I carry information from one page to another page???

    Hi, I have two different pages, and two different tables on them. Like city and house pages and tables. I wantto add new record in house tables which depends on city tables and they must on be different pages, I mean I cant use master detail tables or master detail forms.
    So this is the problem :This two tables have same column called cityId. And I have a button on city page called " create new house"How can I carry Cityid information from city page to haouse page when I pushed the button.Thanks for your help.

    Hi,
    I would suggest using something like what eax23 proposed, but using pageFlowScope instead. So in the 1st page:
    <af:commandButton .....>
      <af:setActionListener from="cityID" to="#{pageFlowScope.cityID}"/>
    </af:commandButton>In the second page you have your managed bean read the cityID from the page flow scope directly. This will prevent having issues from the bean scope that eax23 solution could cause sometimes.
    Regards,
    ~ Simon

  • How can I stop firefox from preventing pages to automatically redirect to another page

    When I go to a bookmarked web site, I get the message (firefox prevented this page from automatically redirecting to another page)
    I can click on (allow) and it will go to page I want but it is irritating to
    have to keep doing this. How can I resolve this

    The preferences option is global. I want to be able to turn this on/off for each page.

  • How can I call contacts from my list without the country code that is registered with that contact?

    I have all my contacts registered with a country code. When I want to make calls from my iphone, I do not want the phone to dial the country code, but only the area code. How can I make that happen?

    Your 3G backup contains your contacts already, you don't need to sync them to Outlook or anything just restore the backup file from the 3G onto the 4S and you should be good to go.
    This kb article should help:
    http://support.apple.com/kb/ht1414

  • How can i get APP_ID from another app?

    Hi gusy,
    I need some help here
    I have 5 applications and now I need to create a new one, and in this new applications i need to have links to these 5 already existing apps.
    The problem is that i need to make the links parameterized, not hard coded.
    So my question is: How can I get the ID of some application from another application?
    And I need to get this ID without starting the first application ( the application whose ID i wonna get)
    Is there some kind of sys table where are kept the application names and their IDs?
    Thanks in advance
    Tsveti

    Hi Tsveti,
    then it's more complicated, because the APEX repository views are not available in this release.
    I would see two options you have:
    1) grant access to table FLOWS_020000.wwv_flows to your application schema. This table contains the APEX applications or
    2) create an application level item for each of your 5 application ids. eg: TRACKER_APP_ID, SUPPORT_APP_ID, .. and use a computation to fill it with the hardcoded app id. In your code reference them with :TRACKER_APP_ID or &TRACKER_APP_ID.
    This has the advantage, that they are just hardcoded in one place and easy to maintain.
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com
    Check out the ApexLib Framework: http://apexlib.sourceforge.net

  • How can I call EJB from JSP/Servlets in iWS?

    Hi!!
    My JSP/Servlets are on iWS, and I deploy EJB on iAS.
    In this case, I don't know how JSP/Servlet call EJb on iAS.
    I'd like to know how I can set JNDI name in JSP/Servlet on iWS.
    I will thank you if you give me a simple example source using JSP/Servlet
    and EJB.
    Thanks in advance!!!
    - Park-

    Park,
    Why Are you running your JSP/Servlets in iWS instead of iAS? For whatever
    reason,
    look at the Converter sample from iAS. You will be doing RMI/IIOP in this
    case and the sample explains in detail what to do.
    hth,
    -robert
    "SungHyun, Park" <[email protected]> wrote in message
    news:9jpfmt$[email protected]..
    Hi!!
    My JSP/Servlets are on iWS, and I deploy EJB on iAS.
    In this case, I don't know how JSP/Servlet call EJb on iAS.
    I'd like to know how I can set JNDI name in JSP/Servlet on iWS.
    I will thank you if you give me a simple example source using JSP/Servlet
    and EJB.
    Thanks in advance!!!
    - Park-

Maybe you are looking for

  • How to get adobe cs6 web and design premium

    In adobe assistant manager it seems like a dumb idea right now because I have tried two different computers and still can't get it cause there is error to update asm or theres the 109 or 108 error which I have done all I could from what I read and st

  • Purchase Order form printout error.

    Hi all experts, I am not sure which category I should put this question to. Please guide me if I have raised the question in the wrong category, so that I can raise it at the right category. Sorry! I am having some problems in printing Purchase Order

  • When using external-scheme what is still stored on-heap?

    Hi all, If I have a scheme like this... <distributed-scheme>     <scheme-name>distributed-scheme</scheme-name>     <service-name>TestDistributedService</service-name>     <backing-map-scheme>       <external-scheme>         <lh-file-manager>         

  • Multiple issues with Safari

    As of this morning my Safari appears to be performing faster, although not consistently; however, youtube will load but cannot view videos, news video will not load, and I cannot listen to the radio via my computer (no streamming). Any assistance is

  • Prime Infrastructure and C2948G-GE-TX switches?

    I'm trying out Prime Infrastructure, but can't get the SSH to work with our C2948G-GE-TX switches.  The SNMP works, but when the correct SSH credentials are entered for Password and Enable, I get "Wrong CLI Credentials" when attempting to sync.  I ca