Calling a popup from FPM button

Hi All,
The scenario is from SRM (7.0).
1. I click on a button in the FPM Identification Region lets say - Create PO.
2. When I click on the button Create PO, it creates a PO in the back ground and gives me a confirmation pop up saying that the PO is created.
Now my requirement is such that I need to populate the header/ Payment terms texts in the PO.
As the button being clicked is in FPM frame work, how do I call a pop up and pass the texts in to the PO.
Best Regards,
Basha

I hope someone has an answer to this. I am looking for a similar solution. I do know the Web Dynpro Component for that screen is FPM_OIF_COMPONENT, the view is CNR_VIEW, the "Create Purchase Order" button is OTHER_FUNCTIONS_22 and the method ONACTIONBUTTON_PRESSED controls all of the other buttons (ie. Print Preview, Close, etc.). However, I can't find what happens when the Create PO button is pushed.
Edited to Add: The Web Dynpro info only applies to the RFx Response screen. Probably not what you are looking at.
Edited by: Sharina Smith on Apr 28, 2009 8:45 PM

Similar Messages

  • Calling a Procedure from a Button? (REVISITED)

    Hi All,
    I once asked a question Re: Calling a Procedure from a Button? & that problem was resolved when i was working on the online ApEx.
    On my application, requirements have changed a bit: I have one form based on two tables. One table contributes two fields (name & surname) to the form while the remaining fields are contributed by another table to make a total of 17 fields on the form.
    My process is in such a way that a user enters an id number & clicks Search button, if the apllicant exists then both name & surname corresponding with the id number will be retrieved from the database. If the applicant does not exist then an error message will be displayed inline with the id number field. Here's the PL/SQL anonymous block to that:
    DECLARE
    vNAME APPLICANTS.name%TYPE;
    vSURNAME APPLICANTS.surname%TYPE;
    BEGIN
    SELECT count(*)
    INTO :P2_COUNT
    FROM applicants
    WHERE id_number = :P2_ID_NUMBER;
    IF :P2_COUNT > 0 THEN
    SELECT name,surname
    INTO vNAME, vSURNAME
    FROM applicants
    WHERE id_number = :P2_ID_NUMBER;
    :P2_NAME := vNAME;
    :P2_SURNAME := vSURNAME;
    ELSE
    apex_application.g_print_success_message := '<span style="color:red">Applicant does not exist.</span>';
    END IF;
    EXCEPTION WHEN NO_DATA_FOUND THEN
    apex_application.g_print_success_message := '<span style="color:red">Exception Caught.</span>';
    END;The PL/SQL block works except for error displaying part (but that's a problem for another day).
    NB: On my application, there’s already Automated Row Fetch & Automatic Row Processing (DML) processes for one table. Furthermore, there is also a javascript for verifying the validity of an id number. As a result, I decided to include Automated Row Fetch & Automatic Row Processing (DML) processes for the other table. When I click a Search button the javascript is activated even though I did not specify a URL target for the button - because this is a simple button among region items – it does not have Optional Url Redirect section.
    I'm not sure what I'm doing wrong here - any help is appreciated.
    Regards
    Kamo

    Hi Dan,
    Sorry for causing confusion with my post - it's just that I was asking the same question (with different constraints) as I had asked before so I didn't feel like going to details was necessary because in my post I included a link to the previous thread. Interestingly, I was working on apex.oracle.com when I posted the original thread - the only problem came to be when I started to move the solution to my application on my machine.
    Anyway, thanks for the response!
    Regards
    Kamo

  • Calling a Procedure from a Button?

    Hi All,
    I'm using Oracle Application Express 11g & I'm currently working on an application. One of the requirements for this particular application is that a user has to be able to enter an applicant's id number (in the id textfield) & if a user clicks a button then they should be able to check in the db whether the applicant exists or not. If the applicant exists then name & surname textfields should be populated with values from the database corresponding to the id number & all these three textfields should be read only. If the applicant doesn't exist then the user will be directed to a page where he/she will fill in new applicant's details.
    So, I wrote the following procedure to do that:
    CREATE OR REPLACE PROCEDURE search_applicant(
    P17_APPLICANT_IDNUMBER IN FIR_APPLICANT.applicant_idnumber%TYPE,
    P17_NAME OUT FIR_APPLICANT.name%TYPE,
    P17_SURNAME OUT FIR_APPLICANT.surname%TYPE,
    P17_COUNT IN FIR_CURRENCY.currency_id%TYPE) IS
    BEGIN
    SELECT count(*)
    INTO P17_COUNT
    FROM fir_applicant
    WHERE applicant_idnumber = :P17_APPLICANT_IDNUMBER;
    IF P17_COUNT > 0 THEN
    SELECT name,surname
    INTO P17_NAME, P17_SURNAME
    FROM fir_applicant
    WHERE applicant_idnumber = :P17_APPLICANT_IDNUMBER;
    dbms_output.put_line('Name: ' || P17_NAME || ' & Surname: ' || P17_SURNAME);
    ELSE
    dbms_output.put_line('Applicant does not exit.');
    END IF;
    EXCEPTION WHEN NO_DATA_FOUND THEN
    dbms_output.put_line('Applicant does not exit.');
    END;
    So far I have not been able to find any help in this regard. I know how to invoke a javascript from a button but I'm not sure how to go about this one.
    Any help in this regard is highly appreciated.
    THANK YOU
    Kamo

    Thanx PaulD & Chris,
    Sorry for the delay in response - I couldn't implement the solutions you recommended for me. My ApEx instance is down (& has been for the past week). It finally dawned on me that I could recreate my problem @ apex.oracle.com. Please take a look at the following application & see if you can help:
    http://apex.oracle.com/pls/otn/f?p=45267:2:714925804498386:::::
    Username: Kamo
    Password: admin
    PS: I have tried to call a Procedure from a button using a page process but it still couldn't work.
    THANK YOU!
    Kamo
    Edited by: user5429001 on 2009/01/28 6:10 AM
    Edited by: user5429001 on 2009/01/28 6:21 AM

  • Calling ASP script from APEX button passing Bind variable

    I am looking for some examples or best form for calling asp script from apex button that will pass apex bind variable to asp script to process.
    Thanks,s
    Bob

    I am surprised by the degree of no replies. I have solved this by using asp redirects such as:
    Response.Redirect("test.aspx?UserName="&user)
    My formulated solution contains a page with a manually built interactive report. I have a number of bind variables at the top of the reoprt where users can query the information they want based on desginated database columns for this particular report. Once they have the "manual" interactive report displaying what they want, they click a button where a asp script is called with parameters passed that calls a Java based Crystal Reports plugin with the called correspnding report displayed with passed parameters.
    Works like a charm!
    This solves our reporting needs without having to resort to Bi Publisher (much too expensive) and other third party applications that kinda indicate it can work with apex but provide limited help or best form for doing so.
    Bob

  • Opening a popup from custom button in a Form

    I have a requirement to open a popup from a custom button of a portal form and once the value is selected from the popup the control should return to the main form with the value selected and set it to some display only field in that same form. It can be done thru' popup of a field directly but how can I do this thru'a button ?.
    Help would be appreciated.
    Thanks
    -Krishnamurthy

    Works for me if I middle-click a bookmark on the Bookmarks Toolbar and browser.tabs.loadBookmarksInBackground is set to true.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Calling java script from a button

    Hi,
    I have a Form and I would like to let the end-user to confirm some action that was initiated by pressing a button. The best way would be to call Java script, but the button is an 'item' button and not a 'region' button - i..e it is placed between items and not above the region, like Save, Cancel etc.
    In case of 'item' buttons I do not have 'Optional URL Redirect' field where to place the javascript call.
    Tamas

    You can try this..
    Instead of using button
    Edit the Item to which you want to associate a button.
    Go to Element tab
    Under Post Element Text enter
    </ br> <a href="#" -onclick=call_me() class="t20Button">Click me</a>Note : you need to change class="t20Button", i'm using theme 20 and in that the look and feel of button is derive from t20Button.
    remove the hyphen before onclick ..
    Regards,
    Shijesh

  • Calling a page from a button url

    Can you give me a hint how to call (branch to) a page from a button which is placed behind an item in a region. If I choose button to be a HTML button this should be possible. I think it's documented in User Guide Page 6-22. But description is not very informative. It's easy to do if the button is in a region position.
    Regards Christoph

    Christoph,
    For buttons in region positions the branches can be associated with the button by picking the button from the "When Button Pressed" select list. For buttons displayed among the region items, you need to conditionally branch based on the request send by the button. Assuming you already created the button and a branch that takes you to the target page, edit the button, scroll down to "Button Request Value" and type in your request string, e.g. BUTTON_PRESSED. Then edit your branch, and make it conditionally based on a request "Request = Expression 1" and type in your request string BUTTON_PRESSED into the Expression 1 field.
    Hope this helps,
    Marc

  • Need a way of calling this code from a button

    Hi all
    I am sorry to have to ask this but I can not find any info on this.
    I found this code somewhere on the net. I should be able to delete a folder with file inside of it.
    I need to call this when a button is clicked.
    CAN ANYONE HELP ME or show me away of deleting a folder with files inside from a button?
      public  static boolean deleteDir(File dir) {
       dir = new File ("Epod Configuration/Config Files/Temp Image Files/");
        if (dir.isDirectory()) {
          String[] children = dir.list();
          for (int i = 0; i < children.length; i++) {
            boolean success = deleteDir(new File(dir, children));
    // The directory is now empty
    return dir.delete();

    First have your class implement the Actionlistener interface then do this:
    //create a button object
    Button b = new Button("Delete");
    //listen for action on the button.
    b.addActionListener(this);
    //add the button to the container.
    add(b);
    //call the method to delete the directory when button is clicked.
    public void actionPerformed(ActionEvent e) {
    if ("Delete".equals(e.getActionCommand())) {
    deleteDir(File dir);

  • Calling Forms/Reports from a button

    How to call a Report or a Form which had been developed using the Wizard from a button created in a region of a page flow?
    National Steel
    Harirajan

    There are two ways to achieve this.
    1) Assign a URL for the button to redirect to. You will have to use the f?p syntax to do this, so for example, if your FlowID is 100 and your page ID is 4, you could redirect to:
    f?p=100:4:&SESSION
    Note the use of the substitution variable for the user's session.
    2) Create a branch that is fired by the button when the page is submitted. A branch is an instruction that tells the Flow which page to go to next. You only need to specify the page ID which has your form or report on it when you create the branch.
    Team Project Marvel

  • Automation server can't create object when calling a jsp from a button

    Hello,
    I have created the following jsp that allow me to execute an external program that is located on the client side:
    <script language="JavaScript" type="text/javascript">
    <!--
    function execAppli(app)
    var wshShell = new ActiveXObject("WScript.Shell");
    wshShell.Run(app+".exe", 1, true);
    -->
    </script>
    If I call this jsp in a simple html page is works correctly when i call it from a button in apex (3.0) I got the error message Automation server can't create object.
    Any idea ?
    Thanks,
    Claude-Alain

    Hi Claude,
    Just be sure that you really (like really) trust your endusers, because I can see some huge opportunities for exploiting that JavaScript routine you've shown. If you're not taking steps to prevent cross site scripting (search this forum or Google for details on what that is), then it's not beyond the bounds of possibility for someone to do something 'nasty' which would do horrible things to your end users if your executing a program on their client machines without any warning or validation of what that program actually does.
    Sometimes it's best to work backwards from the point of view of....what if you walk into work one morning and find that 400 end users machines have had their hard-drives wiped because the script arbitrarily executes whatever command you pass to it? Then you can perhaps see that what sometimes looks like a good idea might not be such a good idea after all ;)

  • Call WD popup from SE38 report..?

    Is it possible to call a web dynpro popup out of 'standard' coding (like SE38 report, SE37 function module, SE24 method)?
    If yes, is it also possible to pass back values from the web dynpro popup to the report, function module, method)?
    How?

    Hi,
    mixing SAP GUI and Web Dynpro ABAP technology is not recommended, see also SAP note 1098009
    Regards, Heidi

  • How to call a URL from a button

    Hi Experts,
    In my requirement I have to  call a URL in the same page,through a button,
    so please tell me how to acheive this.
    Regards
    Upendra

    Hi,
    use the below code to call the URL onAction of the Button,
    IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow(
    "<place URL here example http:www.sdn.sap.com>",
    "<description about the URL >",
    false);
    window.open();
    Regards,
    ramesh

  • Calling single action from multiple buttons

    Hi All,
    i want to call a common action assigned to 2 buttons. the action will have a flag. depending on button click i have to execute method with flag as true/false.
    i think i can do this by getting the ID of the button. please let me know is there any method to get the ID of the button clicked or do u have any other solution for this???
    Regards,
    Chandra

    Hi Chandra,
    Just enter "ID type string" as a parameter above to the code of the action.
    Best regards,
    Thomas
    P.S: Another way to solve this problem is to use parameter mapping for events of ui elements.

  • Calling a popup from a report

    I would like to open a popup window by clicking a value in a report. I am using the following Java Script:
    <script language="JavaScript" type="text/javascript">
    function customerPopup2 (sold_to_org_id) {
    var url;
    url = 'f?p=&APP_ID.:7:::::P7_SOLD_TO_ORG_ID:' +SOLD_TO_ORG_ID;
    w = open(url,"winLov","Scrollbars=1,resizable=1,width=700,height=400");
    if (w.opener == null)
    w.opener = self;
    w.focus();
    </script>
    and my select statement looks like this:
    SELECT a, b, c ,
    '<a href="javascript:customerPopup2('''
           || sold_to_org_id
           || ''');">'
    || HTF.escape_sc (customer_name)
    || '</a>' sold_to_org_id
    FROM table
    Everything works. I am able to open the page but the value I want to pass to the item on that page is showing:
    [object HTMLTableCellElement]
    and not what I would like to see - my "sold_to_org_id".
    I was trying to do it differently, by using the column link to pass the value of the #sold_to_org_id# to the element of my popup page. That works but in that case the page doesn't open as popup - it opens in the full screen mode.
    What am I missing?
    Denes Kubicek

    Hi,
    APEX_UTIL.PREPARE_URL is PL/SQL function, and you can not use it on URL target.
    http://docs.oracle.com/cd/E14373_01/apirefs.32/e13369/apex_util.htm#insertedID60
    Try following:
    Change your report query have one extra column
    SELECT ...
    APEX_UTIL.PREPARE_URL('f?p=&APP_ID.:11:&SESSION.::NO:11:P11_PERSON_ID:' || PERSON_ID, NULL, 3) AS URL_FOR_JS
    FROM...In report attributes set this new URL_FOR_JS column hidden
    Then change link column URL target
    javascript:popUp2('#URL_FOR_JS#',800,700);Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME
    Edited by: jarola on Nov 30, 2011 5:41 PM
    Edited by: jarola on Nov 30, 2011 6:00 PM

  • Calling a servlet from af:button

    Hi
    I am invoking a servlet using af:commandbutton. I am trying that this servlet be invoked by authenticated user. For this, I injected ADFContext.getCurrent.getSecurityContext().isAuthenticated(); in servlet.
    Based, on the *...isAuthenticated()* method value , doGet() should execute code.
    But this warning is coming -
    <ADFContext> <getCurrent> Automatically initializing a DefaultContext for getCurrent.
    Caller should ensure that a DefaultContext is proper for this use.
    Memory leaks and/or unexpected behaviour may occur if the automatic initialization is performed improperly.
    This message may be avoided by performing initADFContext before using getCurrent(). Is this right to use ADFContext in servlet? Should I ignore warning?
    I cannot use 'isAuthenticated()' as a parameter from commandbutton's managed bean. Since user can see the servlet parameter url in browser & without authentication , they can call the servlet.
    What is the way to avoid this type of situation?
    Using Jdev 11.1.1.5 with ADF RC with WLS 10.3.5.

    You can ignore this warning

Maybe you are looking for

  • Itunes could not sync calendars to the iPhone because the iPhone disconnected

    Just went to sync my iphone today and got this message: iTunes could not sync calendars to the iphone because the iphone disconnected. Any ideas what the problem might be.  Had not had this happen to me before. Can't be iCloud because the only thing

  • Power Adapter alternatives?

    Rather than paying $30 for a power adapter for a 5th G 30gb video Ipod, what other non-apple adapters would work with this? I've seen several on Ebay, but I want to make sure they're compatible with the 30gb video Ipod. Anybody use one?

  • Integration of PLC(programming logic unit) in SAP

    i'm facing problem with this, our client is using PLC (programming logic unit) for there manufacturing ,so with out third part tool how can we integrate in SAP plz any one can help

  • Finishing methods

    hi! i had to develop this program for anassignement and im dont know how to finish it. most of the work is already done. it is a library that perform simple operations. im missing A method that chehcs wheter and item has been borrowed or not as well

  • Can't update my iphone software (firmware) issue

    Hi, im trying to update to 5.1.1 and it keeps saying - cannot be updated firmware is not compatible. i dont know much about this stuff so i just need some help. i want to update because my phone runs so slow. and i have never updated the software on