Is it possible to pass parameters for the action in the confirmation dialog

I tried it but a null pointer exception is occuring. Is it possible to pass parameters ,if s give the solution....
Thanks and regards.
Karthik.

Hi Karthi,
Directly it is not possible. You can achieve it by this way.
1>     Create 2 Event Handlers  say “OK” and “OKTest”.
public void OK(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin OK(ServerEvent)
    String param = "abc";
    wdThis.OKTest(wdEvent,param);
    //@@end
public void OKTest(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String paramtest )
    //@@begin OKTest(ServerEvent)
     wdComponentAPI.getMessageManager().reportSuccess("Param : "+paramtest);
    //@@end
2>     Code for popup.
                String dialog = "No of Rows : ";
                IWDConfirmationDialog confDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(dialog,wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers("OK"),"OK");
                confDialog.setTitle("Test Window");
                confDialog.show();
/thread/66776 [original link is broken]
Regards,
Mithu

Similar Messages

  • How to open a page from a Form and pass parameters to the form on that page

    I found a similar example on this forum, but it did not work for me:
    declare
    l_names owa.vc_arr;
    l_values owa.vc_arr;
    i number;
    begin
    PORTAL.wwpro_api_parameters.retrieve(l_names, l_values);
    FOR i in 1..l_names.count
    LOOP
    htp.p(l_names(i) || ' ' || l_values(i));
    END LOOP;
    end;
    By using this method i get the parameters for the Form, like the session ID, but not the parameters for the Page that the form is displayed in.
    Another method I tried:
    To open a Form from a Form and pass parameters works fine like this:
    --In the After processing page PL/SQL event.
    declare
    v_id number;
    blk varchar2(10):='DEFAULT';
    Begin
    v_id:=p_session.get_value_as_number (p_block_name=>blk,p_attribute_name=>'A_ID');
    if v_id > 0 then
    htp.formOpen('PORTAL.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=2649500412&p_arg_names=_show_header&p_arg_values=YES&p_arg_names=ID&p_arg_values='||to_char(v_id),'post');
    htp.formSubmit(NULL,'Upload Files');
    htp.formClose;
    end if;
    End;
    But I want to open a Page containing the Form instead of just opening the Form. Is this possible to open a Page and pass paramters to the page, and then let the form inside the Page access the passed paramters. The reason for this is that a Form cannot be based on a page template, or can it? When opening the form i want to keep the left menu, which I can if it is a page based on my template with the left menu.
    Best regards
    Halvor

    Hi,
    You can do this by calling the url of the page with the form. You can then use p_arg_names and p_arg_values to pass parameters. In the called form you can get the value from p_arg_names and p_arg_values and assign it to the form field.
    You can call this code in the success procedure of the calling form.
    declare
    v_id number;
    blk varchar2(10):='DEFAULT';
    v_url varchar2(2000);
    Begin
    v_id:=p_session.get_value_as_number (p_block_name=>blk,p_attribute_name=>'A_ID');
    v_url := <page_url>;
    if v_id > 0 then
    call(v_url||'&p_arg_names=id&p_arg_values='||v_id);
    end if;
    End;
    In the called form in "Before displaying form" plsql section write this code.
    for i in 1..p_arg_names.count loop
    if p_arg_names(i) = 'id' then
    p_session.set_value(
    p_block_name => blk,
    p_attribute_name => 'A_ID',
    p_value => p_arg_values(i)
    end if;
    end loop;
    This code picks up the value from p_arg_values and assigns it to the form field.
    Hope that helps.
    Thanks,
    Sharmila

  • Is it possible to pass parameters through eventlisteners?

    Hello everyone!
    Inside a .fla file I have some buttons and each button will tween a different image to the stage. All the images are outside the stage in the same x and y position and I just need to tween the x coordinate.
    Now I'm working with an external document class where I'm trying to hold all my functions and I'm stucked with the Tweens. I'm willing to stay away from the flash tween engine and I'm trying to work with tweenLite.
    My question is: Is it possible to pass parameters through eventListeners so I can use something like this inside my docClass?
         public function animeThis (e:MouseEvent, mc:MovieClip, ep:int):void { //ep stands for endPoint.
         TweenLite.to(mc, 2, {x:ep});
    If this is possible, how am I supposed to write the listeners so it will pass the event to be listened for AND those parameters? And how to build the function so it will receive those parameters and the event?
    If this is not possible, what's the best approach to do this?
    Thanks again!

    So, I understand you need to match buttons with corresponding visuals.
    Here is a suggested approach.
    Since SimpleButton is not a dynamic class, I suggest you have an enhanced base class for these buttons that extends SimpleButton. What is enhanced is that button has reference to the target.
    I wrote code off the top of my head and it may be buggy. But concept is clear:
    This is base class for all the buttons:
    package 
         import flash.display.DisplayObject;
         import flash.display.SimpleButton;
         public class NavButton extends SimpleButton
              public var targetObject:DisplayObject
              public function NavButton()
    Now, this is your doc class that utilizes this new buttons:
    package 
         import flash.display.DisplayObject;
         import flash.display.MovieClip;
         import flash.display.Sprite;
         import flash.events.Event;
         import flash.events.MouseEvent;
         public class DocClass extends Sprite
              private var btnArray:Array;
              private var visuals:Array;
              // references to objects being swapped
              private var visualIn:MovieClip;
              private var visualOut:MovieClip;
              public function DocClass()
                   if (stage) init();
                   else addEventListener(Event.ADDED_TO_STAGE, init);
              private function init(e:Event = null):void
                   removeEventListener(Event.ADDED_TO_STAGE, init);
                   // buttons and MCs shouldn't be in the same array - otherwise it is counterintuitive
                   // assuming all the objects are on stage
                   btnArray = [price_btn, pack_btn, brand_btn, position_btn];
                   visuals = [g19_mc, g16_mc, g09_mc, g04_mc];
                   configObjects();
              private function configObjects():void
                   var currentVisual:MovieClip;
                   var currentButton:NavButton;
                   for (var i:int = 0; i < btnArray.length; i++)
                        currentVisual = visuals[i];
                        // hold original positioin
                        currentVisual.hiddenPosition = currentVisual.x;
                        currentButton = btnArray[i];
                        // set target MC
                        currentButton.targetObject = currentVisual;
                        currentVisual.addEventListener(MouseEvent.CLICK, placeObject);
                        currentButton.addEventListener(MouseEvent.CLICK, placeObject);
              private function placeObject(e:MouseEvent):void
                   // if NavButton is clicked - make new visual targeted for moving in and currently visible object subject for moving out
                   if (e.currentTarget is NavButton) {
                        visualOut = visualIn;
                        visualIn = NavButton(e.currentTarget).targetObject;
                   else {
                        // otherwise - move visual out
                        visualOut = visualIn;
                   swapVisuals();
               * Accompishes visuals swapping
              private function swapVisuals():void {
                   if (visualIn) TweenLite.to(visualIn, .3, { x:0 } );
                   if (visualOut) TweenLite.to(visualOut, .3, { x:visualOut.hiddenPosition } );

  • Passing parameters into the Oracle form

    I want to pass some paramaters into the .fmx file which i invoke through the applet. like say, in the following line
    serverArgs="module=abc001.fmx userid=user/pwd@dbuser useSDI=no"
    i want to pass parameters in the following manner:
    serverArgs="module=abc001.fmx(param1,param2) userid=user/pwd@dbuser useSDI=no"
    since one cannot pass parameters to a .fmx file before invoking it, it does not seem possible.
    But is there a sort of a workaround? A java wrapper for oracle forms?? so that i pass parametrs to the java class and it passes this info to the form.
    i need to pass these parameters because these param1,param2 are the username/password for my oracle forms-based application which implements its own in-house user validation logic and i need to display the menu in the applet based on the user without prompting him for this application username/password
    thanks
    Any help will be highly appreciated.

    In the form FNDRSRUN which is the Standard Request Submission form there are parameters CHAR1-CHAR5, NUMBER1-NUMBER5, and DATE1-DATE5. I was wondering if i populate the parameter NUMBER1 with my value how can I access this parameter when the form is brought up. This is more of an applications setup issue I will be creating a function that calls the FNDRSRUN form this function will force this form to use a single request not a request group. In the request setups there is a parameter. When I set up the request parameter I have to select a value set and then for Default Type I can select Constant, Profile, SQL Statement, or Segment and then I have to give a default value. Can I default this parameter to use NUMBER1 or another parameter in the FNDRSRUN form.

  • Launching a page by passing parameters in the URL

    My app has a page sentry function that sets the APP_USER using the Apache mod_ntlm module to the Windows domain user. I check security for each page in a custom table that I maintain.
    If I try to launch a page by passing parameters in the f?p= URL like
    f?p=100:1:::::P1_ID:10
    since I dont have a session yet, the page sentry generates a session for me and redirects to the page (100:1), but I lose my parameters (P1_ID)
    How can I preserve the entire URL in this case?
    Thanks

    I modified the page sentry function like you suggested.
    Launched f?p=102:51:::::P1_ID:1234
    This got redirected to
    f?p=102:51:2458638498649564102
    My debug table has 8261051781657854662
    When I inspected session state for 2458638498649564102 using Workspace XXX>Manage Workspace>Session State Management>Recent Sessions>Session State
    it had no entry for FSP_AFTER_LOGIN_URL. All it had was
    -      -      -      1:15:0:0
    -      -      -      1:15:0:0
    -      -      -      1:15:0:0
    -      -      -      1:15:0:0
    There is no entry for 8261051781657854662
    Thanks for your continued help. Appreciate it.

  • Passing parameters to the process chain

    Hi friends,
    I want to know ,how to pass parameters to the process chain. Suppose i want to pass parameter to my DTP in my process chain in order to filter the data and do the delta upload in my cube .

    Hi,
    I dont think there is any direct way to achieve this.
    There is a work Around which can be achieved with help of abap.
    You need to write ABAP routine to get the selection values from user and store them in the table TVARVC.
    Then you need to write a routine in the DTP filter to fetch these values.
    In the ABAP program where you get the values, you can trigger the process chain once the values are entered for the selections using an event,
    Regds,
    Shashank

  • Passing  Parameters for url in portlet

    I want to pass parameters through the url to a portlet.
    As I can make that?
    There is some example.
    I am working with the portal 9i release 2 and jpdk november 2002 v2

    hi Frank,
    Thanks for the response. We followed your suggestion and managed to capture URL parameters in afterPhase(LifeCycle.PREPARE_MODEL) and save parameters to ViewScope.
    Then in beforePhase(LifeCycle.PREPARE_RENDER), we retrieve parameters back and invoke FndUIController.openMainTask method to launch the correponding taskflow but nothing happens.
    public static void openTaskflowOnNewTab(String taskflowId) {
    try {
    FacesContext fc = FacesContext.getCurrentInstance();
    ELContext elc = fc.getELContext();
    ExpressionFactory ef = fc.getApplication().getExpressionFactory();
    ValueExpression valExp = ef.createValueExpression(elc,"#{bindings.openMainTask}",Object.class);
    JUCtrlActionBinding methodBinding = (JUCtrlActionBinding)valExp.getValue(elc);
    Map params = methodBinding.getParamsMap();
    params.put("label", "Some Title");
    params.put("taskFlowId", taskflowId);
    params.put("reuseInstance", true);
    methodBinding.invoke();
    } catch (Exception e) {
    e.printStackTrace();
    To prove that this method works, we create a UI button on the page (which binds this method in PageDef.xml), and associate this method to onclick event. At runtime after page is opened, clicking on the button does launch the taskflow on new tab successfully.
    Do you happen to know what I do wrong in the beforePhase() method?
    Thanks
    -Phi

  • How to adjust mouse or trackpad parameters for the user selection screen?

    This is not critical, but annoying.  I can change the mouse or trackpad parameters by user, so anyone can use their own mouse or trackpad adjustment.  However I can not locate how to change this parameters for the welcome or user selection screen.  In my case I have two users, both of us use the trackpad with the one touch for click function, so no one press physically the trackpad for a click.  However, as the default parameter is the touch function deactivated we have to actually click the trackpad in that exclusive screen.
    Another example with mouse, normally we use the mouse with almost double of the default acceleration, but when in the user selection screen the mouse assumes default configuration and feels super SLOWWWWWWW.
    Again, this is not critical, but would be very nice to be able to modify this parameters in the welcome screen.
    Tyrone Carrion

    For the login screen, you are not associated with a normal user, but the system defaults...try logging in to the Admn account and change the behavior there...those settings should then apply to the login screen.

  • How to pass value for value field of return parameters for an action step in teststand sequence file programatically using c#

    I used a method LoadPrototypeFromMetaDataToken(token,options) to load the return type parameters. I am unable to set the value field in the return parameters for an action step in teststand sequence file programatically using C#.How can I do that.

    Continue here

  • Passing parameters to the url which navigates to oracle applications

    Hi All,
    My requirement is i need to display a link in the email message, so that user can click it and can navigate to a form in oracle applications.
    The link will be like http://shine.apps.com/function_id=670&language=US etc
    I am able to display the form which the user wants, but they want the form to be queried with a value. so can anyone help me to how to pass parameters to the above url.
    Thanks in advance
    Srinivas Dodla

    I achived the same thorugh workflow. In the workflow define a attribute of type form and then pass the formname, applicaiton name, resp name and any other form parameters to it.
    You can mix forms personalization to achive best results.
    Thanks
    Prudhvi
    www.erpschools.com

  • Is it possible to pass TABLE as the output parameter in stored procedure

    Hey Experts,
      Is it possible to pass TABLE as the output parameter in stored procedure.
    eg
    create procedure spGetData
    @tableName as TABLE(intValue INT NOT NUL)
    as 

    You can use OPENQUERY or OPENROWSET, as mentioned above, to make stored procedure results table like. There are
    some limitations with these methods:
    http://technet.microsoft.com/en-us/library/ms188427.aspx
    In OPENQUERY this-sql-server-instance can be used instead of a linked server name. It requires setting data accces server option:
    exec sp_serveroption @server = 'PRODSVR\SQL2012'
    ,@optname = 'DATA ACCESS'
    ,@optvalue = 'TRUE'
    LINK: http://www.sqlusa.com/bestpractices/select-into/
    Kalman Toth Database & OLAP Architect
    SELECT Video Tutorials 4 Hours
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Is it possible to pass parameters to custom search portlet?

    Hello!
    I use custom search to display automatically results.
    But I need to dynamically add some conditions or change sort order based on user selection in another portlet.
    So, is it possible to pass parameters to custom search portlet?
    Boris
    P.S. I am use Portal 9.0.4

    Hello!
    Ok, I find how to hack it and find out parameters (p_mainsearch, p_order_by_attribute...), but is there any documentation or notes about it?
    And is it possible to change order by list & add there my attributes?
    Kind regards,
    Boris

  • Hi when I try to connect some bluetooth devices I get asked for my pass code for the mac air .  I never had 1 is there a default code

    hi
    when I try to connect some bluetooth devices I get asked for my pass code for the mac air .
      I never had 1 is there a default code
    thanks
    rob

    the shaker wrote:
    is there a default code
    no.

  • Pass percentage for the BI certification exam C_TBW45_70 is required

    Hi Group,
    Please kindly let me know the pass percentage ( % ) for the BI certification exam ( code : C_TBW45_70 ) in the SAP TechEd 2008. ( BI 7.0 certification at the Associate level ).
    As far as my knowledge is concerned, last year it was 57% but, somebody told that it has been changed from this year to 67%.
    So please let me know whether this is correct or not.
    Regards,
    Vishnu.

    Hi Vishnu
    I recently appeared for C_TBW45_04S. on July 11 '08
    The pass Percentage for this Exam is 70%.
    By the way I cleared the Exam.
    Good Luck to you .
    Thanks and regards
    Novino

  • Passing percentage for the course C_TAW12_70

    Hallo friends,
          Do you know the passing percentage for the course C_TAW12_70?
    Thanks,
    Shilpa

    Hi,
    I think 70%
    bye

Maybe you are looking for

  • Sleep & iCal reminders

    I have set my display to go to sleep after an hour of inactivity, but the computer itself is set to never go to sleep. However, iCal does not display reminders if the display is asleep. This means that when I come back to my computer, the reminders h

  • Best practice in moving files from Downloads to other locations

    I'm new to Mac and tend to download or get sent a fair few files, apps and so forth. Over the past few weeks the Download stack has started looking rather messy (full of logos from corporate emails and that sort of crap). So I thought I'd have my fir

  • Validate Settlement Rule for Transaction IW32 / IW31

    Hi All, I want to validate Settlement Rule for trx IW31 and IW32. When someone tries to create Settlement rule for cost center, I have to validate that cost center against some criteria. Do anyone know any BADI or user-exit for this? I tried user-exi

  • IMessage sign in problem

    I am not not able to sign in iMessage as well as FaceTime,,,my iPod touch4 always says "could no sign in.Please check your network connection and try again" guys please help me out ,,,thank you!!

  • I can't download music on I tunes after iOS 8. I have an I pad mini.

    I