Pop up events

Hi,
I am able to open pop up, but i need to capture the event when user clicks on "OK" or "Cancel" button.
How can do that. Below is my piece of code.
data lo_window_manager type ref to if_wd_window_manager.
  data lo_api_component  type ref to if_wd_component.
  data lo_window         type ref to if_wd_window.
  lo_api_component  = wd_comp_controller->wd_get_api( ).
  lo_window_manager = lo_api_component->get_window_manager( ).
  lo_window         = lo_window_manager->create_window(
                     window_name            = 'ZDYNAMIC'
                   title                  = 'Dynamic Data'
                   close_in_any_case      = abap_true
                     message_display_mode   = if_wd_window=>co_msg_display_mode_selected
                   close_button           = abap_true
                     button_kind            = if_wd_window=>CO_BUTTONS_OKCANCEL
                     message_type           = if_wd_window=>co_msg_type_none
                     default_button         = if_wd_window=>co_button_ok
  lo_window->open( ).

hi,
Use this after your code and create two action OK & CANCEL
and in ONACTIONOK write code what u want to do on clicking on Ok button and same for Cancel.
DATA lo_action_view    TYPE REF TO if_wd_view_controller.
lo_action_view = wd_this->wd_get_api( ).
lo_window ->subscribe_to_button_event(
                      button       = if_wd_window=>co_button_ok
                      action_name  =  'OK'
                      action_view  =  lo_action_view
                      is_default_button =  abap_true ).
  lo_window->subscribe_to_button_event(
                      button       = if_wd_window=>co_button_cancel
                      action_name  =  'CANCEL'
                      action_view  =  lo_action_view
                      is_default_button =  abap_false ).
  lo_window->open( ).
It will work fine
Regards,
Varun

Similar Messages

  • Triggering pop-up event through drag & drop?

    Hi everyone, I'm a newly registered member of this forum.
    I've roughly browsed though this forum to seek a solution for my problem, but I can't seem to find a suitable solution (perhaps i should continue looking).
    Scenario:
    Anyway, I'm facing some technical challenges in flex as I'm relatively new to it.
    I'm trying to create a web application, where users use drag & drop to input information.
    I visualize this process:
    User selects icon from a list
    User drags the icon onto target area
    User releases icon over target area
    Pop-up appears with a form for users to input information.
    Users input information and submits
    Information is stored in the database.
    Present knowledge:
    Because I'm new to Flex, I tried to break this down and learn by components:
    I'm able to:
    Create a drag & drop effect
    Create connection to database using HttpService
    Main Problem:
    I'm able to use the drag and drop functionality but I cannot trigger a pop-up event when the icon is dropped onto the target area.
    Sorry if the problem seems a little insignificant due to my lack in knowledge.
    I'm just a student trying to learn. Hope that someone can help me out here, or provide me with relevant links to learning resources.
    Thanks in advance,
    Jord

    Hi,
    thanks so much for replying, but I would really appreciate a little bit more help.
    I vaguely understand the concepts of DragEvent.DRAG_DROP, but I'm not really familiar with the syntax of how to cause allow a pop-up to appear.
    This is how my script look like:
    <mx:Script>
            <![CDATA[
                import mx.events.DragEvent;
                import mx.containers.Box;
                import mx.managers.DragManager;
                import mx.core.DragSource;
                import mx.collections.ArrayCollection;
                import mx.rpc.events.ResultEvent;
                [Embed("IconAssets/1.gif")]
                [Bindable]
                public var personalAsset:Class;
                [Embed("IconAssets/2.gif")]
                [Bindable]
                public var investment:Class;
                [Bindable]
                private var iconValue:uint;          
                private function iconDrag (event:MouseEvent, value:uint):void
                        var dragInitiator:Image = event.currentTarget as Image;
                        var dragSource:DragSource = new DragSource();
                        dragSource.addData(value, 'value');
                        var dragProxy:Image = new Image();
                        dragProxy.source = event.currentTarget.source;
                        DragManager.doDrag(dragInitiator, dragSource, event, dragProxy);
                private function dragOver(event:DragEvent):void
                        var dropTarget:Box=event.currentTarget as Box;
                        if (event.dragSource.hasFormat('value'))
                                dropTarget.setStyle("borderThickness", 5);
                                DragManager.acceptDragDrop(dropTarget);
                private function dragAway(event:DragEvent):void
                        var dropTarget:Box=event.currentTarget as Box;
                        revertTarget();             
                private function dragAccept(event:DragEvent):void
                        var value:uint = event.dragSource.dataForFormat('value') as uint;
                        The trigger for the Pop-up should be placed here.
                        revertTarget();
                private function revertTarget():void
                    fStatement.setStyle("borderThickness", 1);
            ]]>
        </mx:Script>
    I'm not sure whether I'm correct to state (in bold, italic, & underline) above that the event trigger for the pop-up should be within that particular function.
    The difficulty I'm facing now is that the (structure of the) popup should be written in MXML and yet I have to place them in the ActionScript.
    (I sense that I have a fundamental misconception of how this works,so please correct me to the best of your knowledge.)
    I would greatly appreciate it if anyone is able to provide me with an example/sample of how this should be done.
    With Thanks,
    Jord

  • PCUI Pop up Confirmation during save event

    Hi,
    I would like to implement a confirmation pop up at tthe time of save. the user may
    choose to proceed with the save or cancel save.
    I have implemented in the following fashion but apparently it does not refresh the data on the PCUI page.
    1. CHECK_BEFORE_SAVE - Raise Information Message. Set Flag not to save.
    2. SAVE - Check if flag is set not to save, return error code. and do not continue with save.
    3. GET_MESSAGES - Add the messages to rt_applog (Message is configured for navigation)
    4. PROCESS_EVENT - Process for the pop up events 'Yes' and 'No'.
    'Yes' event will call the save method after initializing do not save flag. 'No' with exit.
    Please recommend correct way to implement a pop-up confirmation during save event.
    Thanks
    Shyam

    Hi,
           This pop up is related to the WorkProtect mode,
    It will be configured in the portal,
    There will be 3 options available
    if Workprotect mode is 0--- then navigate automatically
    1-- pop up and then navigate
    2- navigate with out saving.
    i'm not sure about the values.
    WorkProtect mode can be seen in the personalize link and this link is available if eu_role is assigned to the corresponding user.
    Please contact portal admin team regarding this.
    Anilkumar

  • PCUI - Pop up

    Hi,
    I would like to implement a confirmation pop up at tthe time of save. the user may
    choose to proceed with the save or cancel save.
    I have implemented in the following fashion but apparently it does not refresh the data on the PCUI page.
    1. CHECK_BEFORE_SAVE -  Raise Information Message. Set Flag not to save.
    2. SAVE - Check if flag is set not to save, return error code. and do not continue with save.
    3. GET_MESSAGES - Add the messages to rt_applog (Message is configured for navigation)
    4. PROCESS_EVENT - Process for the pop up events 'Yes' and 'No'.
              'Yes' event will call the save method after initializing do not save flag. 'No' with exit.
    Please recommend correct way to implement a pop-up confirmation during save event.
    Thanks
    Shyam

    Hi,
           This pop up is related to the WorkProtect mode,
    It will be configured in the portal,
    There will be 3 options available
    if Workprotect mode is 0--- then navigate automatically
    1-- pop up and then navigate
    2- navigate with out saving.
    i'm not sure about the values.
    WorkProtect mode can be seen in the personalize link and this link is available if eu_role is assigned to the corresponding user.
    Please contact portal admin team regarding this.
    Anilkumar

  • Event 29 and 24 that cannot receive the time source in windows server 2003

    I have one server windows server 2003 R2 pop up the event log as below
    Event 29
    The time provider NtpClient is configured to acquire time from one or more time sources, however none of the sources are currently
    accessible.  No attempt to contact a source will be made for 15 minutes. NtpClient has no source of accurate time.
    Event 24
    Time Provider NtpClient: No valid response has been received from domain controller server01.xxxxx.com after 8 attempts to contact it. This domain controller will be discarded as a time source and
    NtpClient will attempt to discover a  new domain controller from which to synchronize.
    My domain controller server01 do not have any pop up event log for the time service.
    I have found some information in Mircosoft TechNet would suggest such as restart  the time service with command prompt. I have tried for it. But the event id keep on to pop up for each hour.
    Should I configure for the time service can read for the hardware?
    Moreover, if I still read the time from DC, any configuration can be done for my server and domain controller? Thanks! 

    Hi,
    Thanks for your question.
    Would you please tell us that if the DC holds a role of PDC emulator? If yes, you can run “DCdiag” on the DC to check if it is advertising itself as a Time server. In addition,
    please make sure that no firewall is blocking UDP port 123 and you can also ping the DC on the client computer to verify that the client computer is capable of contacting the desired source.
    In addition, please make sure that the value of the
    AnnounceFlags in the registry below is 10:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config
    Please also make sure the value of
    Type
    in the registry below is set to NT5DS:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters
    More information:
    Windows Time Service Tools and Settings
    http://technet.microsoft.com/en-us/library/cc773263(v=ws.10).aspx#w2k3tr_times_tools_suxb
    Best regards,
    Susie

  • DFSR replication stopped between sites after all servers updated (Event 1202)

    Hello,
    I'm afraid, i will greatly appreciate any help on this one.
    I'm working on it since 2 days without success (I read many thread without help).
    So the fact:
    I have 2 AD (2008 R2) on site 1 and 2 AD (2008 R2) on site 2.
    I have also 2 files servers (2008) on site 1 and 2 files servers (2008 R2) on site 2.
    The files servers run DFS system.
    DFS Namespace is host on all AD.
    DFS Replication and share are on all files servers.
    After update all my servers. I got a big problem.
    Communication between files servers and AD of site 2 isn't working properly now.
    By this fact, DFSR is not working anymore between site 1 (all seem fine on this site) and site 2.
    DFSR on site 2, pop this events all time:
    Event 1202 - Source DFSR
    The DFS Replication service failed to contact domain controller  to access configuration information. Replication is stopped. The service will try again during the next configuration polling cycle, which will occur in 60 minutes. This event can be caused
    by TCP/IP connectivity, firewall, Active Directory Domain Services, or DNS issues.
    Additional Information:
    Error: 160 (One or more arguments are not correct.)
    Event 1055 - Source GroupPolicy
    The processing of Group Policy failed. Windows could not resolve the computer name. This could be caused by one of more of the following:
    a) Name Resolution failure on the current domain controller.
    b) Active Directory Replication Latency (an account created on another domain controller has not replicated to the current domain controller).
    >dfsrdiag dumpadcfg
    Operation Failed
    >dfsrdiag pollad
    Operation Failed
    On ADs site 2, dcdiag /e don't reveal any issue.
    I tried to install hotfix ref on this thread (without help) -> https://social.technet.microsoft.com/Forums/en-US/7d486eb5-6b03-471c-a4dc-65826e712fc3/dfsr-replication-event-id-1202-the-dfs-replication-service-failed-to-contact-domain-controller?forum=winserverfiles
    I don't have issue with DNS (nslookup work fine).
    Firewall are disable on all servers.
    My problem looks a bit like here (but he don't speak about 2008 R2 - old article) -> blogs.technet.com/b/askds/archive/2011/04/08/restrictions-for-unauthenticated-rpc-clients-the-group-policy-that-punches-your-domain-in-the-face.asp
    Any help will be greatly appreciate.
    Fabien

    Hi Fabien,
    Do you use the ping command to check basic network connectivity? Please refer to the article below to clear bad information in Active Directory-integrated DNS:
    How to clear bad information in Active Directory-integrated DNS
    http://support.microsoft.com/kb/305967
    You could also refer to the threads below to troubleshoot the issue:
    DFSR failed to contact domain controller
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/eae32fb9-3234-402a-be8b-2ab9555fd25d/dfsr-failed-to-contact-domain-controller?forum=winserverfiles
    GPO not replicating and GPO's during today not always applying
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/ff885ae8-497f-48c1-b30b-efea95016334/gpo-not-replicating-and-gpos-during-today-not-always-applying?forum=winserverGP
    Best Regards,
    Mandy 
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Popup from ALV for displaying full text = problems!!!

    Dear all,
       I created an ALV to display data. In this ALV, I have a text column, which just show FIRST 30 characters of the original text.
      Now I want to double click on that field, and it will pop up a small window to show full text (the original text, unknown length).
    I made lots of references and I decided to use FM POPUP_WITH_TABLE because of some reasons:
    a)  the original text is retrieved from another FM READ_TEXT. After the call of READ_TEXT, the text will be stored into an internal table. Then, it can be passed to POPUP_WITH_TABLE without more modification.
    b) POPUP_WITH_TABLE can show the text more meaningfully. I mean, if the length of the text is greater than the length of the popup window, it <b>automatically break the line and displays the rest in the next line</b>. ( FM POPUP_TO_INFORM does NOT do that.)
    However, I've faced some <b>PROBLEMS</b> with FM POPUP_WITH_TABLE
    1) The popup window has 2 button OK and Cancel. <b>Is there any way just to display Cancel button?</b>
    2) If I click on Cancel or OK without choose any line on the popup window => It will raise an exception, called BREAK_OFF. In this case
    If the clicked button is CANCEL => it will close the popup
    If  the clicked button is OK => nothing happens. And I must click on CANCEL to close the popup.
    <b>I want to close the popup windown without raising any exceptions. How can I ?</b>
    3) When I enter many complex selection criteria on Selection Screen to limit the result, displaying ALV is good. But when I click on the text field to popup => the report cannot be manipulated. I have to kill the session in SM04.
    <b>What's wrong? </b>(because for single selection criteria, it works well.)
    Every body has any suggestions?
    Thank you in advance

    I solved it. I just use another list for pop-up event.
    Although it worked well now, I thought it was not a good solution.
    Thank you all of you.
    Best regards.

  • How to pass a selected row in a table to an popup iview?

    Hi,
    I want to select a row in an output table and the data from this row should be noticed in an popup iview. How can I handle This?
    Thanks for answers!

    You can do it via regular pop-up (01)or by using Nested iView as pop (02).
    01.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/69/ffdb4269b2f340e10000000a1550b0/content.htm
    02. POP up  event
    Regards,
    Gilson

  • Hyper-V cluster: Unable to fail VM over to secondary host

    I am working on a Server 2012 Hyper-V Cluster. I am unable to fail my VMs from one node to the other using either LIVE or Quick migration.
    A force shutdown of VMHost01 will force a migration to VMHost02. And once we are on VMHost02 we can migrate back to VMHost01, but once that is done we can't move the VMs back to VMHost02 without a force shutdown.
    The following error pops up:
    Event ID: 21502 The Virtual Machine Management Service failed to establish a connection for a Virtual machine migration with host.... The connection attempt failed because the connected party did not properly respond after a period of time, or the established
    connection failed because connected host has failed to respond (0X8007274C)
    Here's what I noticed:
    VMMS.exe is running on VMHost02 however it is not listening on Port 6600. Confirmed this after a reboot by running netstat -a. We have tried setting this service to a delayed start.
    I have checked Firewall rules and Anti-Virus exclusions, and they are correct. I have not run the cluster validation test yet, because I'll need to schedule a period of downtime to do so.
    We can start/stop the VMMS.exe service just fine and without errors, but I am puzzled as to why it will not listen on Port 6600 anywhere. Anyone have any suggestions on how to troubleshoot this particular issue? 
    Thanks,
    Tho H. Le

    Just ran into the same issue in a 16-node cluster being managed by VMM. When trying to live migrate VMs using the VMM console the migration would fail with the following: Error 10698. Failover Cluster manager would report the following error code: Error
    (0x8007274C).
    + Validated Live Migration and Cluster networks. Everything checked out.
    + Looking in Hyper-V manager and migrations are enabled and correct networks displayed.
    + Found this particular Blog that mentions that the Virtual Machine Management service is not listening to port 6600
    http://blogs.technet.com/b/roplatforms/archive/2012/10/16/shared-nothing-migration-fails-0x8007274c.aspx
    Ran the following from an elivated command line:
    Netstat -ano | findstr 6600
    Node 2 did not return anything
    Node 1 returned correct output:
    TCP
    10.xxx.251.xxx:6600
    0.0.0.0:0
    LISTENING
    4540
    TCP
    10.xxx.252.xxx:6600
    0.0.0.0:0
    LISTENING
    4560
    Set Hyper-V Virtual Machine Service to delayed start.
    Restarted the service; no change.
    Checked the Event Logs for Hyper-V VMMS and noted the following events - VMMS Listener started
    for Live Migration networks, and then shortly after listener stopped.
    Removed the system from the cluster and restarted - No change
    Checked this host by running gpedit.msc - could not open console: Permission Error
    Tried to run a GPO refresh (gpupdate /force), but error returned that LocalGPO could not apply registry settings. Group Policy
    processing would not continue until this was resolved.
    Checked the local group policy folder on node 2 and it was corrupt:
    C:\Windows\System32\GroupPolicy\Machine\reg.pol showed 0K for the size.
    Copied local policy folders from Node 1 to 2, and then was able to refresh the GPOs.
    Restarting the VMMS service did not change the status of the ports.
    Restarted Server, added Live Migration networks back into Hyper-V manager and now netstat output reports that VMMS service
    is listening on 6600.

  • Is anyone else having problems with zoom in ios 8?

    I just installed ios 8 on my iPhone 5, and honestly, I am not thrilled with the
    results. I am visually impaired and rely heavily on the zoom feature. The
    reaction time to the three-finger tap in ios 8 now seems sluggish, swiping
    around to move the view feels like pulling my fingers through mud, and the
    image doesn’t move as smoothly as before. Previously, I could swipe with three fingers
    to move my view, and after I lifted my fingers, it would glide smoothly, coming
    to a gentle stop after a moment, in a similar way as swiping to scroll works in
    contact lists and long messages. This meant I could read something while it
    moved, without my fingers in the way.
    Now the image moves much more quickly and then comes to a sudden halt
    after a second, as if it hit a wall. I have to keep putting my fingers down,
    almost clawing at my screen to move it around. It is extremely frustrating.
    Honestly, it now feels like the zoom feature in recent Android phones. It’s a
    very subtle difference, and it/s a little better when “ follow focus” is off.

    I have problems with many of the same issues you mention with zoom on iOS8.  Its not entirely clear if this is intended functionality or a number of bugs.  The setting for full screen view versus window/regional view seems to not apply globally, which is insanely frustrating.  Window view pops up without warning, particularly in a keyboard pop-up event.
    I don't particularly liek the popup menu either, but now I HAVE to use it to constantly change from the sudden change to window focus to full screen zoom.
    Some of the new filter features are nice additions, but don't seem to work well. or be performance optimized.  Low-light, for example, stutters on zooming.
    I would also assert that zooming in and out seems more abrubpt and less accurate.
    iOS8 is definitely a decrease in usability and performance from its predecessors.  Apple, please work out the bugs and get this right!

  • Claws mail calendar popup

    This script uses libnotify to pop up events from claws-mail "vCalendar" plugin:
    #!/bin/bash
    # diary
    # shows any claws-mail calendar events for today & tomorrow (& historical)
    # if called with one or more parameters, also shows other future events
    TODAY=`date +"%Y%m%d"`
    TOMORROW=`date +"%Y%m%d" --date=tomorrow`
    MSG=""
    OVERDUES="\r"
    TODAYS="\t\t"
    TOMORROWS="\t"
    OTHERS=""
    grep -e SUMMARY -e DTSTART ~/.claws-mail/vcalendar/internal.ics -A1 | grep "\:" |grep -v 1970 | sed -n -e ":a" -e "$ s/Z\n/ /gp;N;b a"| sort >/tmp/zz
    if [[ `pidof notification-daemon` == "" ]]
    then
    /usr/lib/notification-daemon-1.0/notification-daemon > /dev/null &
    sleep 10
    fi
    while read LINE
    do
    REVERSEDATE=`echo $LINE | cut -f2 -d":" | cut -b1-8`
    EVENT=`echo $LINE | cut -d":" -f3`
    if [[ $REVERSEDATE < $TODAY ]]
    then
    PRETTYDATE=`date +"%a %d %b" --date=$REVERSEDATE`
    OVERDUES=$OVERDUES$PRETTYDATE"\t"$EVENT"\r"
    elif [[ $REVERSEDATE == $TODAY ]]
    then
    TODAYS=$TODAYS$EVENT"\r\t\t\t"
    elif [[ $REVERSEDATE == $TOMORROW ]]
    then
    TOMORROWS=$TOMORROWS$EVENT"\r\t\t\t"
    elif [[ ${#1} > 0 ]]
    then
    PRETTYDATE=`date +"%a %d %b" --date=$REVERSEDATE`
    OTHERS=$OTHERS$PRETTYDATE"\t"$EVENT"\r"
    fi
    done < /tmp/zz
    if (( ${#OVERDUES} > 4 ))
    then
    MSG="HISTORY"$OVERDUES
    fi
    if (( ${#TODAYS} > 4 ))
    then
    MSG=$MSG"\rToday"$TODAYS
    fi
    if (( ${#TOMORROWS} > 4 ))
    then
    MSG=$MSG"\rTomorrow"$TOMORROWS
    fi
    if (( ${#OTHERS} > 4 ))
    then
    MSG=$MSG"\r"$OTHERS
    fi
    if (( ${#MSG} < 1 ))
    then
    MSG="all quiet"
    fi
    notify-send --expire-time=0 "What's happening ..." "$MSG"
    When I log in I like a notification of anything happening today or tomorrow (plus any historical events I've missed).
    $ cat .config/autostart/diary.desktop
    [Desktop Entry]
    Exec=/home/paul/diary
    Name=diary
    Type=Application
    Version=1.0
    When I click on the clock on lxpanel, I get all events from  vCalendar.
    So, digital clock settings, action when clicked:
    /home/paul/diary 1

    Hi
    I am guessing you are using a OS running with a non English language setting.
    Then I know what is the problem. Set your system language to English. Throw out Server.app. After some seconds the server will realize it is not a server anymor. Calm... all your mail folders and web sites are secure.
    Reinstall your system from recovery partition restart+alt choose recovery HD.
    When done... download and lauch Server.app again (Don't change your systems languages settings, it must be set to English, German, French or Japanese otherwise everything is a f-n ****.
    No... things should be better. Then, if you end up like me, the system will have made somwhat a mess of the settings files for the mail service.
    The main.cf file controling your mail settings exists in two places, apparently ?!?! both are used but open them in a editor and change all hash: and paths to point to
    /Library/Server/Mail/Config/postfix/....
    instead of
    /etc/postfix/...
    It should get you on the way. My Wiki still can't read its setting file but I haven't given it any attention yet.

  • Syncing stopped after updating iTunes to 7.7

    I'm using iPOD Touch 16G 1.1.4 version. I updated iTunes to 7.7.0.43 yesterday.
    Syncing was fine former version of iTunes, but after updated, when syncing the "contacts",
    a message pops up.
    event name : APPCRASH
    application name : AppleSyncUIHandler.exe
    application version: 7.8.10.0
    application time stamp : 48612b65
    error module name : MSVCR80.dll
    error module version : 8.0.50727.762
    error module time stamp : 45712238
    code : c0000005
    offset : 000101cd
    OS version : 6.0.6000.2.0.0.768.3
    local ID: 1042
    additional information 1: d75c
    additional information 2: a440d5025d98c8afd950784b5c53ce61
    additional information 3: f61e
    additional information 4: 7c27325eda407054e1398fadfa2a86cd
    and syncing just remains stopped.
    Anyone has the same problem? Wait for your suggestions. Have a nice day, Thanx!
    Message was edited by: MaCiV

    So what I have on my system are the ringtones that I have purchased (6) of them. However if I look and the music I have purchased in the past 6 months none of those song any longer show that there have ringtones associated with them. Before 7.5 update it show well over 100 ringtones available in my purchased music history.

  • Questions about SMC3.0

    Hi everyone..
    Ok.. I have played around a little with SMC... but I have a few questions...
    1 - When an alarm appears (hardware failure, CPU utilization too high, etc), is there a way to send an email or a page or it just puts a litte red check on the server name?
    2 - With the process monitoring tool, can we send a mail when a process die or it just shows nothing...
    3 - Also, with the filesystem size monitoring, is there a way to pop an event when the FS is full or used at 90% for example..
    Thanks Everyone!
    Martin Chartrand.

    1 - When an alarm appears (hardware failure, CPU
    utilization too high, etc), is there a way to send an
    email or a page or it just puts a litte red check on
    the server name?If you drill down to where the alarm has occured, and right-click on the colored value, you have an option to open an "Attribute Editor". In this new window is an "Alarms" tab that you can uses to run scripts (i.e. the built-in email.sh script) to send notifications. If you want to do this for more than just a few alarms (i.e. you have many Agents) you can perform notification from your SunMC Server with a commercial package such as PrimeAlert EventAction:
    http://www.halcyoninc.com/products/FrameworkPlugIns/EventAction/home.html
    You can download that software for free with a 30-day eval license... I think you'll find it does exactly what you are looking for.
    2 - With the process monitoring tool, can we send a
    mail when a process die or it just shows nothing...See above. In a Process Monitoring module you can set an alarm (using the Attribute Editor) so a script is run when there are 0 (zero) processes running. And that script can send the email. In larger production deployments this is often done using EventAction because all notification and filtering can be centralized on a single SunMC Server.
    3 - Also, with the filesystem size monitoring, is
    there a way to pop an event when the FS is full or
    used at 90% for example..Sun ships some defaults for filesystem usage (i.e. 95% and 98% full) alarm limits, but they do not send any email or make any popups. You would receive email like in #1 and #2 above. Use Attribute Editor on the values you are interested in to trigger the alarms, and use a local script or EventAction to notify you about it.
    Regards,
    Aronek
    Standard disclaimer: I am an employee of Halcyon (www.HalcyonInc.com)

  • Tutorial on AWT/Swing control flow

    Greetings all,
    Just wondering if any of you folks know of a good tutorial on AWT/Swing control flow? I'm doing some pretty complex stuff with a table whose editors call other windows and insert values into the table based on callback objects...weird stuff happening with loss of focus when the other windows come out, etc etc etc.
    I have it working via a series of what I consider kludges, but I would really like to implement it cleanly, and it's looking like that's going to require understanding <ugh> <grin>
    So it looks like it's time that I bit the bullet and got to grips with control flow in AWT/Swing. Is there a tutorial out there that could help me with this?
    Many TIA

    skiaddict1 wrote:
    Let's take your word for it, but if you have the slightest doubt please consider the subject: EDT violation is a classic here.OK sure, but I really don't think I'm violating it. I avoid multi-threading like the plague, and only introduced it for my report writer because I wanted to have a little window advising the user that the report was in the process of being written.Raise your left hand and swear this report writer is not running when you experience the problem you describe! >o(
    OK, this is just kidding, as per the rest of your description, it sounds reasonable now to assume that your problem is not related to EDT violation.
    I'm doing some pretty complex stuff with a table whose editors call other windows and insert values into the table based on callback objects...This summary is a bit worrying, and I thought you would mention problems in the display of the table being edited. But you seem to refer to problems in other windows, or did I misunderstand?
    Or do you mean, loss of focus in the editor still being edited? Can you please clarify what you do and what your problems are?
    In particular, what does the other windows come out mean?OK, I was trying to be sparse with details because I didn't think they were relevant.Actually the worrying seems all the more justified, now that you have described it more extensively: I was afraid that you would raise other windows while editing, and that's the case. I know little of focus though...
    I have a table in window A, one of whose columns has a custom editor which, when a cell in the column is double-clicked, registers itself with window B as a choice-listener (see later) then asks window B to come to the front. Window B, when the user performs a choice amongst the UI elements in there, fires a choice-event to its listener, i.e. the custom editor. At which point the editor saves away the chosen value (for use by getCellEditorValue()), sets the text in the cell appropriately, turns edit mode off via fireEditStopped(), and brings window A back to the front.
    (...) once the custom editor asks window B to come to the front, the table in window A loses focus and when it is brought back to the front, the table's JScrollPane seems to have the focus (visually, it has the focus rectangle around it). Pressing the Tab key has no effect on focus; you have to use the mouse to focus something.I assume you have read the tutorial on using tables in Swing.
    It contains an example where a custom editor is bringing up a dialog: http://download.oracle.com/javase/tutorial/uiswing/components/table.html#editor
    AFAIK, the example does not suffer from focus problems.
    What I am finding, and I reiterate this is new since I rewrote the windowing subsystem for the app (the custom editor was not changed in the rewrite), is that (...)Just what do you call "rewriting the windowing system" (just to rule out the possibility of something Ramboesque)?
    I have no idea why this loss of focus is occurring, and I am at a loss to begin to figure it out. As I wrote above, I have a series of kludges which gets around the symptoms, but I would really rather figure it out and fix it.OK I admit I cannot tell what happens exactly, but:
    1) instead of bringing window B to front, couldn't the editor bring up a dialog B (e.g. using JOptionPane.showXxxDialog() to bring up just the choice panel? The advantage is that it is more "synchronous", you can control when the window A's table model is updated.
    2) what worries me too is that you update the model of the table being edited while you're editing one cell of it? Would it be possible, and make sense in your case, to update this model later (that is, post the model update as an invokeLater(...) call)? I don't see how seeing the table updating underneath helps the user editing its cell, but you may have your reasons.
    What do you call flow control , or control flow in AWT/Swing?Basically, what I am after is something that will help me begin to understand/diagnose problems such as the above when they happen in my code. I am deeply averse to multi-threading (...) Things in my code were working, and that was enough for me.
    But the above behaviour, and another weird behaviour I was having last week, which again I have solved with what I consider a kludge, and again which only began with my new windowing subsystem, have caused me to realise that it's time I really got to grips with this issue.Yes, when they say beware of threads when using Swing , nobody tells to not use threads! Just to be aware of how special Swing is with regards to threads (at least, compared to AWT, that didn't make such warning).
    I would like, for example, to really deep-down understand exactly when listeners for AWT-Swing events get called. I don't really care so much when the events get put on the queue, but I do care when exactly my event handlers will be called. This will help me diagnose problems, I'm sure.Well they get called in the EDT, by some framework code that, in an infinite loop, does something along the lines of:
    - pop next event from the event queue
    - determine which is the target widget
    - let the widget transform the event and send it to all registered listeners
    Now with dialogs, things gets dimmer, because while a dialog is brought up (via a<tt>setVisible(true)</TT> call on the EDT, the EDT is indeed suspended, and a new event thread manages the events for the dialog).
    I'm sorry I have no reference for that behavior, and my description is certainly blurry (and possibly wrong), but I don't think your problem is so much related to threading as I initially thought.
    N.B.: Darryl's second link does features sequence diagrams that try to demonstrate what happen (in a specific example with asynchronous access, but you can derive the simpler, regular, working, from it).OK, yes I saw that diagram, I was offput by the asynchronicity but I will have another look tomorrow also. Thanks againDon't put too much hopes in there, indeed it's definitely not the kind of info I understand you're looking after.
    Much luck all the same, and feel free to come back with your findings, or with more questions, about the initial subject (reference on event flow) and the specific problem (your focus issues with the editor).
    I also cannot end this message without suggesting that you try to reproduce the problem with an SSCCE (http://sscce.org), that you could post here for us to try out. See this recent discussion about the multiple interests of this approach: {message:id=9587964}
    Best regards,
    J.

  • Is anyone else having problems with Sound Check playing tracks at the wrong volume in Album view?

    I have noticed in the last few weeks that when I play an album on iTunes, some of the tracks are played at a lower volume.  I am using sound check, and when I play the tracks individually from the "Songs" view they all play at the correct volume.  However, when i choose album view, some of the same tracks are played at a lower volume.  I have rang the support line and they couldn't tell me why this is happening.  Has anybody else had this happen to them, and does anyone know a way round this?

    I have problems with many of the same issues you mention with zoom on iOS8.  Its not entirely clear if this is intended functionality or a number of bugs.  The setting for full screen view versus window/regional view seems to not apply globally, which is insanely frustrating.  Window view pops up without warning, particularly in a keyboard pop-up event.
    I don't particularly liek the popup menu either, but now I HAVE to use it to constantly change from the sudden change to window focus to full screen zoom.
    Some of the new filter features are nice additions, but don't seem to work well. or be performance optimized.  Low-light, for example, stutters on zooming.
    I would also assert that zooming in and out seems more abrubpt and less accurate.
    iOS8 is definitely a decrease in usability and performance from its predecessors.  Apple, please work out the bugs and get this right!

Maybe you are looking for

  • How do I access NI's Komplete instruments like FM8, etc in Garageband?

    Hello. I have a 2007 15-inch MacBook Pro running Mac OS X 10.6.3, a LaCie Rugged external hard drive connected via FireWire on which I keep many Native Instruments VSTs such as FM8, B4 and Abysyth, and an M-Audio Axiom Pro 61-key keyboard controller.

  • CUCM 10.5 High Availability Guide

    Hello Experts, I'm trying to enable redundancy and high availability on CUCM. I'm looking for documentation guides but can't find any. All I found is a guide for IM&P Presence Redundancy groups and HA. Is there such a document, if so, can you share t

  • Publish Error and iDisk sync

    I saw a previous post re an unknown error when trying to publish. I am getting the same error, even when trying to publish to a folder. In the previous post, someone mentioned an iDisk sync solved the publishing problem. How is this done?

  • Essbase 11.1.1.3 Perormance Issue on windows 2003 64bit

    When I run a calculation script on the essbase 11.1.1.3 which installed on windows 2003 64bit, it takes me 100 seconds to finish it. But when I run the same calculation script with the same data, same database OTL and same database configuration on e

  • File table is full

    I just had an unpleasant crash on my 10.8.3 system, with the logs telling me "file table is full" (many, many times).  Verify and Repair volume didn't find any errors, and a df now shows that I've still got loads of available inodes, $ df -ih / Files