Event on buttons of messagebox alert in designer

Hi All,
How to write an event on the buttons of message box alert in designer?
xfa.host.messageBox("Enter Number","Validation",1,2);
This will prompt an alert.
"Enter Number" will be the comment.
"Validation" will be the title bar.
"1" means we are using warning as an alert
"2" means we are going to have 2 (Yes/No) buttons in alert box.
Please someone help me out to write an event on the (Yes/No) buttons.
If someone click on the yes then it should have done some  actiity and No then other set of activity.
Regards
Abhishek

Hi,
Can i able to creae my own customized button in this message box?
No the messagebox is limited to what is in the help.
Consider if i want to create two buttons in message box "Ok" and "Edit" is it possible with live cycle designer?
If you are creating a PDF ( viewed in Acrobat or Adobe Reader) then you could  create your own dialog to do this,  to create your own dialog you would have to use the Acrobat JS Guide, specifically the "app.execDialog" function, but this is fairly complex and requires a lot more coding than xfa.host.messageBox.
The Acrobat JavaScript guide is here if you want to investigate further
http://livedocs.adobe.com/acrobat_sdk/10/Acrobat10_HTMLHelp/JS_API_AcroJS.88.136.html
Hope this helps
Malcolm

Similar Messages

  • Need script to handle event on button.

    Hi All,
             I need to handle some event on Button click.
    My requirement is quite simple. There is a DropDown List in PDF and a button.
    Depending the value selected by the user in DropDownList i want to display relevent blocks(Subforms) in PDF on Button Click. All the Blocks are made hidden initially.
    i.e User will select a value from Drop Down and click on 'Display' Button then
    I want to make Any peticular Subform Visible.
    I am unable to write scripting for it. Can anybody please help.
    Thanks and Regards,
    Atul.

    Hi,
    your adobe form must be dynamic for this functionality.
    Do you have Acrobat Reader 7.0 or later?
    Does it work in PDF Preview? If not, go to menu Edit -> Form Properties in LiveCycle Designer, tab Defaults. Preview Type must be Interactive Form, XDP Preview Format must be Acrobat 7.x Dynamic PDF.
    Does it work in PDF Preview now? If not your script is wrong.
    If you use Java WebDynpro, you must insert following code in wdDoModifyView:
      if(firstTime) {
        IWDInteractiveForm iForm = (IWDInteractiveForm)view.getElement("YOUR FORM");
        iForm.setDynamicPDF(true);
    If you use ABAP and you create pdf by function module, you must set dynamic = 'X' in structere for exporting parameter /1BCDWB/DOCPARAMS .
    Michal

  • How to catch a event by button personalization

    Hi,
    I added a button in a standard page by Personalization. On click of button, I need to do some validations.
    As this is not a “Submit Button”, I cannot get the event in processFormRequest.
    So I need to define a event by setting “Action Type” as “Fire Partial Action”.
    But in Personalization structure where I added a button, this option of defining a event is not there.
    So what is the procedure to fire a event through button in case of personalization?
    Please help. Thanks in advance.

    Girish,
    This is basically javascript function to submit page.I have used it many times, haven't faced any problem.
    Your problem, seems to be irrevelant of this.Just in your new page remove this javascript function and then run with submit button, still you should get the same error, essentially your error says " Object name for type View Object is invalid." which has nothing to do with javascript function.
    You don't have to enter anything for defaultformname, just keep it as it is. This function will just submit the page with parametre XXX value as "abc".Also remember attach this function only to item of "button" type and not "submit button" type.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • I can no longer use all of the "Computer Management" tools against a remote computer. "Local Users and Groups", "Event Viewer", "Performance Logs and Alerts" and "Device Manager"

    Hello All,
    I can no longer use all of the "Computer Management" tools against a remote
    computer. "Local Users and Groups", "Event Viewer", "Performance Logs and
    Alerts" and "Device Manager"
    kindly see the below snapshot for assistance
    REGARDS DANISH DANIE

    This link may help....
    http://windowsxp.mvps.org/admintools.htm
    Freeman

  • I am trying to download a calendar into ical and keep getting this message-Some of the events in this calendar have alerts that open files or applications.  What am I doing wrong???

    I am trying to download a calendar into ical and keep getting this message-Some of the events in this calendar have alerts that open files or applications. Remove alerts or cancel 
    What am I doing wrong or missing??

    I have this same problem in October of 2013. I am unable to import .ics files into Lion that I exported from my Snow Leopard MacBookPro without losing all of my future events (which all have alerts attached). All of the events from BEFORE today's date are successfully importing, presumably because they are no longer expected to trigger alerts via Apple Mail. After my first unsuccessful attempt, I learned that iCal was communicating with iCloud by default. I have since turned off iCloud, but I have not found a solution to the problem. Harvey

  • Custom FPM Event for Button row element

    Hi Expects,
    I have created a new button row element in standard screen, where I want to add custom FPM event and handle the same in get_data( ). But by default SAP is providing few event ID's in drop down.
    Please help me how to add custom FPM event for  button row element.
    Regards,
    Reny Richard

    Hi Remy,
    Process Event method does have any signature parameters in it which allow us to disable/enable buttons.
    We can handle this in Get data method.Get Data is always triggered after Process Event. So you can write that in Get Data instead.
    ****this is a sample code to do the same. You can do a read as well if single button needs tobe handled***
    LOOP AT CT_ACTION_USAGE INTO lw_action WHERE id = (your event id for the button).
        lw_action-enabled = abap_false.
        MODIFY CT_ACTION_USAGE FROM lw_action TRANSPORTING enabled.
        EV_ACTION_USAGE_CHANGED = 'X'.
    ENDLOOP.
    ***use field symbol to avoid modify if you want***

  • How can I call functionality of ALV Grid by event of button outside grid?

    Hello,
    How can I call functionality of ALV Grid by event of button located outside ALV Grid? For example how to fire printing of this ALV Grid by button click elsewhere on the screen (not in toolbar of ALV Grid).
    Best regards,
    Josef Motl

    hi Motl,
    these are steps to create a button in ALV and trigger an event from it..
    1.Use the parameter i_callback_pf_status_set in the function module REUSE_ALV_GRID_DISPLAY
    i_callback_program = gd_repid
    i_callback_pf_status_set = 'SET_PF_STATUS'
    form set_pf_status using rt_extab type slis_t_extab.
    set pf-status 'NEWALVSTATUS'.
    endform.
    You have to copy the standard ALV pf stauts to 'NEWALVSTATUS' and add your button.
    2.You have to do the following to process the new button click.
    i_callback_user_command = 'USER_COMMAND'
    form user_command using i_ucomm like sy-ucomm
    is_selfield type slis_selfield.
    case i_ucomm.
    3. to copy the standard pf status to a new one.go to the ALV screen and take the menu System -> Status.  Then look for the standard pf status. Copy this to Z range and then add your new button.
    reward points if helpful
    regards
    satesh

  • How to set the default button of an ALERT

    Can someone help me how to set the alert propety to change the default button from button1 to button2.Not from the prioperty palette, but inside the code using like set_alert_property.I am using the Oracle Forms 10g.
    Thanks in advance.
    Srini

    To the best of my knowledge, the default button cannot be set at runtime. This must be set at design time in the Builder.
    Refer to the Forms Builder online help for details:
    http://www.oracle.com/webapps/online-help/forms/10g/topics/f1_help/builts/setatpro.html

  • Can an image button make an alert box popup?

    So, my first question is: Can a SAVE button that has a button style of IMAGE trigger an alert box to popup?
    If yes, then I have a second question: If I am suppose to use the ONCLICK event, where do I put this code for this type of button? The BUTTON ATTRIBUTES field is greyed out.
    Thank you,
    Maggie

    Maggie:
    You could try the following
    On the 'Edit Button' page
    Set the Target of the button to be URL
    Set the URL Target to be
    javascript:alert('My message');doSubmit('<button name>')varad

  • How to Make All Events in One Calendar Have Alerts Automatically

    I am a college student majoring in engineering, which means I always have lots of homework due at various times. So to help me keep better track of when my assignments are due, I have started putting the due dates into my calendar. The only problem with that is every time I enter in a new event I have to set up an alert for that particular event. This is extremely annoying having to do this for each assignment. What I am wondering is there a way to make it so that every event in my "Homework" Calendar sends me an alert two hours before the event starts? I know you can make it so that all events send you an alert, but I just want this one calendar to automatically send alerts for it's events. Any help is greatly appreciated!

    Thread is closed.
    'Twas simple, but problem was my lack of knowledge how winhelp is built.
    I needed to Update (synchronizae) document after I linked it and built proper topics and link them with proper document section.

  • PPR event hides button click :(

    Hi,
    I have a problem with the PPR event.
    I have a PPR on a field. If I change this field without tabbing out from it, and I press a button, the code in the button is not performed. I read the OAF DEV Guide, and I put in the processRequest the code:
    << OAWebBean body = pageContext.getRootWebBean();
    if (body instanceof OABodyBean)
    body.setAttributeValue(OAWebBeanConstants.FIRST_CLICK_PASSED_ATTR, Boolean.TRUE);
    >>
    but it does not work.
    Could you kindly help me?
    Thanks a lot,
    Rosanna.

    Sorry for the delay Rosanna.
    How are you capturing the event's such as when save button is pressed/ppr action fired. I assume you differentiate the save button's event by setting an attribute name something similar to "saveEvent" and the field's ppr event attribute as "varianceEvent" or something. Then on the controller code you could do pageContext.getParameter("event") and compare it with saveEvent and varianceEvent to differentiate what hte user has clicked on.
    You can also club the processing that you do for PPR enabled fields with the save part of the code. Then remove the PPR on the fields. You will have the fireaction/firepartialaction only on the save button in the page. Could you check if this approach works for you.
    Thank you,
    Arun

  • Link button in Messages/Alert Overview

    Hi,Experts
    I am sending an alert message to Messages/Alert Overview ,in that if i click the link button i have to get the user defind form.Can any one can help me regarding this.
    Thanks & Regards.
    Rajesh.

    Hi Rajesh........
    Is that your customised form?
    If yes then you have to manage it in your Source code itself.........
    Regards,
    Rahul

  • Eventing - No Button Click

    My EPCM eventing code does not work completely.  I have been able to get an event handler to populate an SAP InputField but I cannot get the event handler to execute a click() on a SAP Button in the same iView.  I'm using the following code:
    EPCM.subscribeEvent("urn:PPM.SAPIntegration.Events", "GetSapEquipment", GetSapEquipment);
    function GetSapEquipment(eventObj)
         var equipDesc = eventObj.dataObject;
         <%= Form.ID + "." + txtDescription.ClientID %>.value = equipDesc;
         <%= Form.ID + "." + btnGetEquipment.ClientID %>.click();
    The button works if it is pressed manually.  It calls my .NET function btnGetEquipment_Action.  I see examples of this type of event handlers so I am confused why my code does not work.

    I also ran the PDK example that uses a search field and button to make a google.com
    search. That example works.  In my case, I'm trying to execute my button code that resides
    in my portal component on the server.  Therefore my button has the runat=server
    option.  When the SAP button is pressed, the portal component should be called so
    that this c# procedure gets executed:
    private void btnGetEquipment_Action(object sender, SAP.Web.UI.Controls.AbstractButton.ActionEventArgs e)
    Again I say that if I press the button manually, it works.

  • On Click event for button not firing

    Hi,
    I'm writing a portlet under Plumtree 5.0.2 and using web controls 2.1 (released version).
    I have a form that has a text box, a label, and a submit button. By cliking on the button the text from the box should appear in the label. If I run the application outside the portal everything seems to work fine, but on the portal the click event does not fire. why?
    I have my ptrender tag on the form, httpmodules in the config file, GetPostBackEventReference on Page_Load. Did I forget something?
    any advice is appreciated. Thanks
    Tania

    Tania,
    You'll need to add ptrender="true"to the button's opening tag if you want the button's server-side code to execute. Also, you won't need ptrender on the form's opening tag.
    From what I can see, placing ptrender on the form's opening tag can be used for two things:(i) when the user clicks a button (which doesn't have ptrender itself) causes the browser to return to the portal, similar to executing portletresponse.ReturnToPortal() in your server-side code.(ii) causing a third-party control to similarly return to the portal as (i) above.
    Nick.

  • Problem with Script Events Manager buttons not showing up

    Hi,
    First off let me say that the latest release of Adobe products is a steaming pile of @#$#$.
    Countless software issues, it's slow, buggy, you name it.
    That being said, has anyone had this problem and know how to fix it.
    My Script Events Manager is broken. Yes broken. The only buttons I see are "Done" and "Remove". There is no "Add" button so that I can actually add events. Someone please tell me this is user error and that I don't need to reinstall PS.

    My system has 8 Gb of Ram and 4 processors. I doubt it's the system. I've had problems with CS Master Collection since day one. My main complaint is the ******* tabs and interface. Everything is so chunky. CS2 was smooth as butter. They keep making their products use more RAM and it's ridiculous. The tabs don't help, they only make life harder.
    Thanks for the suggestions, I was hoping not to have to reinstall PS, but looks like it's the only option.

Maybe you are looking for