Customizing Alert Boxes

Hi Experts,
Currently we have an option, were in a message will pop up every 20 minutes in an application.
and we used java scripting for this.
But, now our customer wants to change the symbol in the alert message.
This is the sample code of how i am currently wrking out the same using javascripts.
< s c r i p t  l a n g u a g e = " J a v a s c r i p t " >
  v a r   w a i t  =  1200;
  v a r   l v _ c n t  =  1;
  v a r   s t o p ;
  f u n c t i o n  s t a r t C l o c k ( )
     w a i t  = w a i t  - l v _ c n t ;
     s t o p  = s e t T i m e o u t ( " s t a r t C l o c k ( ) " ,   1 0 0 0 );
     i f ( w a i t = = 0 )
a l e r t ( "   H e l l o   W o r l d  " ) ;
     w a i t = 1 2 0 0 ;
    s t a r t C l o c k ( ) ;
< / s c r i p t >
Is der a way i can change the symbol of the alert box or do i have to go to VBscripting. If tats the only option then pls let me know which part i need to change for VBscripting..

Hi,
Look at the following link, it might help you.
[http://bytes.com/forum/thread145158.html|http://bytes.com/forum/thread145158.html]
Salil.

Similar Messages

  • Centering an Alert box.

    I have a flex web application in which the flex components are embedded inside portal jsps. When the user clicks on a datagrid (clicks on item renderer inside the datagrid), the Alert box has to notify the user. However the alert box centers itself wrt the flex application and it goes out of the user's view. Because the user can view only a portion of the large datagrid at a particular time (scrollbars for the page are present, not for the datagrid).
    I have tried assigning absolute and relative values, but nothing seems to work.
    Any suggestions woudl be greatly appreaciated.
    Thanks in advance.

    I've run into a similar situation and here is what I did to resolve it without using the move method...
    Say you have an application that has a layout container which contains a custom component in it somewhere
    Application
           |--->HGroup
                        |---> CustomComponent (the one that calls the alert box)
    if your alert box code looks like this:
    Alert.show(
    "Your Alert Message Here!","Your Alert Title Here...",0x4,this,null,null);
    Your alert box will appear centered over the custom component which called it.
    Add an id to the container you want the alert box centered on:
    Application
           |--->HGroup id="myContainer"
                        |---> CustomComponent (the one that calls the alert box)
    Change your alert box code to look like this:
    Alert.show(
    "Your Alert Message Here!","Your Alert Title Here...",0x4,this.parentApplication.myContainer,null,null);
    This will center the alert box over the HGroup layout container that has its id property set to myContainer.
    The example above sets the parent property of of the Alert class show method:
    public static function show(text:String = "", title:String = "", flags:uint = 0x4, parent:Sprite = null, closeHandler:Function = null, iconClass:Class = null, defaultButtonFlag:uint = 0x4):Alert
    So if I'm understanding your issue correctly... regardless of the size of your viewport you'll maybe want a dynamic method to determine the id porperty of the layout container currently being displayed within the viewport, and then center your alert box over that container via the method above.
    I hope this helps.

  • Add a custom alert monitor set in Central Reports of NWA 2004s

    Hi,
    I installed recently netweaver administrator 2004s to use central monitoring. I created a new CCMS monitor set with RZ20 and was hoping to see this set in the Monitoring -> Central Reports view set of the NWA (drop down box with all the Alert monitor sets defined in the CEN), but it wasn't there. Is there a way to add custom alert monitor sets created with RZ20 in the Central Reports "View Set" of the NWA ?
    Thx
    Bart

    > Hi,
    >
    > you see all the Monitor Sets of transaction RZ20 of
    > the central monitoring system with an activated
    > "public" flag (you set it during the creation of the
    > monitor set in RZ20).
    >
    > But:
    >
    > The application reads the monitor sets only at
    > startup. So, if you create a new (public) monitor
    > set, you have to restart the application.
    >
    > You achieve this by restarting the engine, or in the
    > Visual Administrator. Go to "Server --> Services -->
    > Deploy", "rutime" tab rider, choose "Application",
    > and stop and start the application
    > "sap.com/tclmwebadminmonitorprovider_ear".
    >
    > HTH
    > Dirk
    That helped indeed.
    Thx

  • HTML in Alert Box

    Fairly new to Flex, but I have attended "Flex2: Developing
    RIA" class. Working on a fairly complex Flex app that gets data via
    WebServices. Unfortunately some of the data, i.e., product names
    and descriptions are html based.
    Does anyone know if and how I might be able to render the
    html inside of an Alert box or custom pop-up box? Or at minimum,
    remove all html tags from the data prior to displaying (not best
    option, but still cleaner).
    Thanks in advance!

    Great question.
    The first step to figuring out the answer is understanding both the Wallaby HTML structure and CSS3. I highly suggest taking a look at the various tutorials we have at http://labs.adobe.com/wiki/index.php/Wallaby:Technical_Tips.
    What you really want here is to add an event listener for the 'webkitAnimationEnd' event.
    If you look at the Wallaby structure of your output, you'll notice that each of the Ponds tubes are contained in a
    with the wlby_1 class attached. Looking at the CSS file you see that wlby_1 defines a -webkit-animation-duration of 2.04167s. This is the total length of your animation. You should also notice that for each
    associated with a tube there is a
    with the display style of 'none' (i.e. the ones with wlby_5, wlby_9, wlby_11, and wlby_13). These are used to get the delays before the various tubes come onto the stage.
    You might think to add a listener on 'wlby_1' but that would end up getting called at the end of the animation of each tube. What you really want in this case is to get a hit only on your last tube. From looking at your animation this is obviously the blue tube which is animated by the wlby_14 class.
    So, what you want is to add a listener in the  section of your HTML like this:
    $('.wlby_14').each(function()
    { this.addEventListener('webkitAnimationEnd', function(evt) { alert('end'); }) });
    Alternatively you could modify the wlby_14 div to have an identifier (i.e. id="last") and then do:
    last.addEventListener('webkitAnimationEnd', function(evt) { alert('end'); });
    I've tested out both of these locally with your output and they worked as expected.

  • Adding a carriage return in an alert box

    Hello
    I have a user request to display this alert box in the format below:
    Attention: The owner name has changed on this vessel.
    Current Name: xxxxxxx:
    New Name : yyyyyyy
    Please confirm or deny that this is an owner change.
    Confirm and Deny are the two buttons.
    How can I insert a c arriage return at the end of each text line so the text looks this way in the alert box? I can get it to wrap but it doesn't look right
    can the 'Confirm' and 'Deny' buttons be set to different colors?
    Thanks!

    Use chr(10).
    For example:
    v_alert := 'Attention: The owner name has changed on this vessel.' || chr(10) || 'Current Name: ' || etc....

  • How to limit the number of rows in the Custom Control box

    Hi All,
    In my Module pool screen I have a Custom Control box for providing some free text as input. Now, there is no limit in the number of rows allowed for this box.
    But, the requirement is, it should have the maximum number of rows = 99. and each row should have maximum length = 60 characters.
    User should not be allowed to enter more than 60 characters per row and more than 99 rows.
    Could you please let me know how to do this..? Are there any methods available which controls the maximum number of rows and maximum length per row..?
    Please help me in resolving the issue. Thanks in advance.
    Thanks & Regards,
    Paddu.

    By "Custom Control Box", do you mean a Custom Container or a Table Control?
    Anyway, I suggest you to use a table control (not a custom container as your requirement seems to be very precise on that point, maybe ask your client twice to make sure). Look at the examples of table controls in ABAPDOCU transaction.

  • How to put custom check box in a tableview column

    Hi,
    I would like to put a custom checkbox in a tableview column for each row of the table.
    Such that when the user selects the rows and among those rows if for fews rows this checkbox is active, i need to do some special processing. how can i add a custom check box to a tableview column.
    Can anyone help me in this regard?
    Thanks and Regards,
    Kumar

    Hi,
    You can use the checkbox code within your tableview column:
    <htmlb:tableView id = ".."
    >
    <htmlb:tableViewColumn id = " "
    type = "USER"
    >
    <htmlb:checkBox id = ".."
    selected = " "
    />
    </htmlb:tableViewColumn>
    </htmlb:tableView>
    I hope it helps.
    regards,
    Rohit

  • I can see only one ringtone in the custom ringtone box.plz help

    i can see only one ringtone in the custom ringtone box.plz help

    Cap,
    This view, with the one photo big and the thumbnail strip across the top, is what happens when you double-click a photo with "Edit in: Main Window" set in the Preferences. There should be a button visible that says either Done or Return, to exit edit mode and return you to the library. If you still see only one photo, use the size slider in the lower right corner to reduce the photo size and get more thumbnails on the page.
    If, for some reason, you can't exit the edit mode, you may have a corrupt preference file. Quit iPhoto. Use the Finder to navigate to Macintosh HD/ Users/ (your user name)/ Library/ Preferences/ com.apple.iPhoto.plist and move that file to the Trash. Launch iPhoto, and you should be returned to the main viewing mode. You'll have to go in the Preferences and reset them to your liking.
    Regards.

  • Alert box:No more free items available, please create new one

    Hi,
    We are running a SAP ERP Ecommerce, we get a strange alert box message "no more free items available, please create a new one". This alert window pops up only when you have created one order in a session and you are trying to create another order. Has anyone come across this issue?
    Steps to recreated this issue
    1. Create an order with any product - quantity is rounded to next possible value.
    2. Order created, close the order.
    3. Trying to create new order. (Product field is not a text box anymore)
    4. Try to transfer product from catalog by hitting shopping basket icon.
    5. Error message -> "No more free items available, please create new one".
    Thanks,
    -Tarun

    Hi,
    We are running a SAP ERP Ecommerce, we get a strange alert box message "no more free items available, please create a new one". This alert window pops up only when you have created one order in a session and you are trying to create another order. Has anyone come across this issue?
    Steps to recreated this issue
    1. Create an order with any product - quantity is rounded to next possible value.
    2. Order created, close the order.
    3. Trying to create new order. (Product field is not a text box anymore)
    4. Try to transfer product from catalog by hitting shopping basket icon.
    5. Error message -> "No more free items available, please create new one".
    Thanks,
    -Tarun

  • Help needed in adding custom About box in built applicatio​n in LabVIEW 2009

    Hello,
    Can anyone please help me add custom About box in built application in LabVIEW 2009? I had successfully built my application in labview 8.6, 8.5 and 8.2 before to include custom About box. However, when I tried the same method in LabVIEW 2009, it only showed LabVIEW 2009 About box rather than my custom About box.
    Here is what I did:
    1) Wrote an "About Application.vi" in the built VI folder;
    2) Included this "About Application.vi" in the "Always Included" section of Source Files in Application Build;
    3) Built the application;
    4) Ran the built application, the About box showed only LabVIEW 2009 about (attached a picture).
    You can see that on the upper left corner of the picture, there is my custom icon.
    Your help is greatly appreciated,
    Cathy
    Solved!
    Go to Solution.
    Attachments:
    About Box.JPG ‏34 KB

    Here is the link to download LabVIEW 2009 f2 patch:
    http://digital.ni.com/public.nsf/websearch/C3F88F3​596A164AD86257647006FB022?OpenDocument
    Thanks for the help,

  • Javascript alert boxes are wrapped in Windows 7 with IE 8

    I can't count the number of JavaScript alert boxes I have throughout my systems and they have always made the transition between IE browsers from 6 to 8 without a hitch.  Without a hitch until I setup my first Windows 7 machine.  It is a 64 system that has both 32 & 64 bit IE browsers.
    It doesn't matter which of the two versions I use, the JavaScript messages that I have so carefully crafted with just the proper layout are now wrapped.  The resultant text in the new W7 popups is almost unintelligible because it is so badly scrambled/wrapped on the new white background.
    Since an alert box is simplicty itself, there is no way that I can think of to change the inherent size of the box.
    Has anyone else notice this phenomena???   If so, do you have a way around it short of redoing all of the text in the effected boxes???
    Len
    XP machine's JavaScript Alert popup in IE 8
    W7 machine's JavaScript Alert popup in IE 8 with wrapped text

    HMM I have the same problem. My researches suggest that the Zone.Identifier ADS is still being used for the internet zone, but not the Intranet zone. I too can get an intranet location out of IE, but not by querying Zone.Identifier eg using Powershell. This
    issue is present in XP as well as Win 7. It appears to extend to trusted zone ids.
    One hypothesis is that this is being stored in hidden form to prevent zone ids that decrease security being applied by malware.
    I had thought that maybe the intranet zone id was only present during download - but your experiment suggests otherwise.

  • Need an Alert box

    Is it possible to get an alert message whenever closing the file in the Indesign? The problem is, I will forget some checkpoints before sending the files. Making scripts, will need to run, specially, which cannot be in mind in rush times. But if an alert message shoots whenever we close a file, it will always be helpful. I just need to create a alert box to display some message, whenever I say, close or exit the file.
    Is this possible in CS2?
    Thanks in advance and help appreciated!
    Prasant

    CS2 you need a plug-in called InEventScript
    CS3 you need to create an event "beforeClose" with a script run as targetengine "session".
    Looks also in the Javascript samples provided w/ CS3 about events
    ==============================================
    #target indesign
    #targetengine "session"
    app.scriptPreferences.version = 5.0;
    //******************** BEGIN Main ********************
    main();
    function main()
    //** Number 0
    app.addEventListener( "beforeClose", EventClose, true);
    alert ("Event(s) added...");
    //******************** END Main ********************
    //******************** EVENTS ********************
    function EventClose (itsEvent)
    alert ("Don't forget your checklist!!!);
    ==================================================

  • An alert box with a yellow triangle keeps randomly popping up

    An alert box with a yellow triangle keeps randomly popping up on my screen. But I don't have time to read what it says because it disappears in 1 sec. What is it? What can I do to get rid of it?

    Window keeps popping and closes before...: Apple Support Communities

  • Polish , turkish text not decoding in the alert boxes in JSP file

    Hi All,
    Currently I am working on application in the J2ee development perspective in NWDI  and this contains many Jsp pages.As per the business requirement we need to make this application support Polish and turkish languages , for this we have maintained properties files .
    I have encoded the polish and turkish text using the u201CHTML Unicode format encodingu201D hence when checked the url in the IE with Polish and turkish locale all the characters are getting decoded properly ,but i have a proplem with the text in the alert boxes i.e. the special characters in the text displayed in the alert boxes is not getting  decoded at all eg:"Wprowad&#378; numer konta BP" whereas it has to display as "Wprowadź numer konta BP:
    Also i have used java encode also to achieve the same and for this "?" is getting displayed i.e. it is not getting properly decoded.
    I have also used native2ascii method in this also it is getting decoded but not correctly i.e. "?" is displayed
    Please note that the alert boxes are written in the script tag in the JSP page.
    Request you to kindly help me in resolving the issue at the earliest as this is a very critical issue in my project now.
    Thanks and Regards,
    Nishita Salver

    Hi nishita,
    We had a similar problem in one of my projects, but what i remember is we have kept the ascii value for that character directly in the properties files and tried to encode it, this way i resolved my problem.
    Try this way and let me know the result.
    Regards,
    Saleem Mohammad.

  • Message missing from alert box & Can you disable everything until user selects an answer?

    Question 1 - My alert box window is working, and the title and buttons function as they should, but does anyone know why my message is not showing up?
    Question 2 - How do you program the alert box window so that no other buttons on your application work until the user selects one of your alert window buttons? I can do this manually by setting everything to enabled = false, but I know this happens automatically every other time I've used the alert window component, but it's not working for me now.
    Question 3 - How can I prevent multiple alert windows from popping up? My alert comes up when a user clicks a button called 'Delete'. Would be solved if I had the answer to question 2.
    var myMess:String = '';
    var myTitle:String = '';
    function confirmDelete(){
        selectedAlt = list_dg.selectedItem.ALT_CODE;
        myMess = "Are you sure you want to delete this ALT code: "+selectedAlt+"?";
        myTitle = "Confirm Delete ALT Code Function                                                    ";
        var alertBox:Object = Alert.show(myMess,myTitle,Alert.YES|Alert.NO,this,deleteConfirmHandler);
        alertBox.setSize(450, 125);
    // HANDLER FOR CONFIRM DELETE ALT ALERT WINDOW
    deleteConfirmHandler = function(evt_obj:Object):Void {   
        var myAnswer = evt_obj.detail;
        // returns 1 if yes, 2 if no.
        if (myAnswer == 1){
                deleteAlt();
        else {   
            altDetail.moveAssign_btn.enabled       = false;
            altDetail.moveAvail_btn.enabled        = false;
            altDetail.avail_list.selectedIndex     = null;
            altDetail.assigned_list.selectedIndex  = null;

    I think you were on the right track, it did have something to do with the parent fla file. Once I complied it's parent file (and imported the window and alert classes into the parent), my message appeared in the alert box.
    It doesn't make any sense, because the component is not in the parent file, it's in the sub-parent fla file, but I guess you just have to compile all the files in the hierarchy for it to work... It also doesn't make sense why everything else worked before (the title, the yes and no buttons) except for the message.
    Thanks for the suggestion (to look at the depths, etc), however, I'm still unable to understand why the alert is not modal as it should be. If anyone has any suggestions on how to fix the buttons to make them modal, please let me know. Thanks.

Maybe you are looking for