Capturing the events and performing a predefined action

I want a mechanism to capture the events:
eg: If a new document is opened , I want a text frame to be created on that document as soon as it gets opened.
what interfaces, classes can help me here? andy sample code avilable which shows how to capture events?

Operating System
System Model
Windows 7 Ultimate (build 7100)
Gigabyte Technology Co., Ltd. M61PME-S2P
Enclosure Type: Desktop
Processor
Main Circuit Board
2.80 gigahertz AMD Athlon X2 240
256 kilobyte primary memory cache
1024 kilobyte secondary memory cache
64-bit ready
Multi-core (2 total)
Not hyper-threaded
Board: Gigabyte Technology Co., Ltd. M61PME-S2P
Bus Clock: 200 megahertz
BIOS: Award Software International, Inc. F2 12/30/2008
Drives
Memory Modules
320.07 Gigabytes Usable Hard Drive Capacity
125.82 Gigabytes Hard Drive Free Space
TSSTcorp CDDVDW SE-S084C USB Device [Optical drive]
SAMSUNG HD321HJ SCSI Disk Device (320.07 GB) -- drive 0, s/n S13RJ90SB04688, SMART Status: Healthy
1984 Megabytes Usable Installed Memory
Slot 'A0' has 2048 MB
Slot 'A1' is Empty
Local Drive Volumes
c: (NTFS on drive 0) *
319.97 GB
125.76 GB free
d: (NTFS on drive 0)
105 MB
65 MB free
* Operating System is installed on c:
The media files are avi and are in my videos folder (videos-windows 7)

Similar Messages

  • How to capture the event in driver JSplitPane

    Hi all, i have some problem with the JSplitPane.
    What i want to do is that:
    i need to capture the event throw when the user press the button in the driver of the JSplitPane, this is because i want to know wich side of the splitpane is complet visible.
    Thanks for your time!
    Luca

    I thought I would do up an example just for fun. As you drag the splitter bar the size of the two components and the splitter component is reported to the console along with the divider location. Interestinly, on my system (Windows XP, Java 1.41_02) when you move the bar downwards the divider location is consistantly two pixels past the height of the top component but when you drag the bar upwards the divider location and the height of the top component are the same.
    Does anyone have any ideas why that would be?
    Here is the test app:package splitPaneMonitor;
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.beans.PropertyChangeEvent;
    import java.beans.PropertyChangeListener;
    import javax.swing.JFrame;
    import javax.swing.JSplitPane;
    import javax.swing.JTextArea;
    public class SplitPaneFrame extends JFrame implements PropertyChangeListener  {
         public SplitPaneFrame()  {
              super ("Split pane test");
              //  Create the components to show in the split pane
              myTopComponent = new JTextArea ("This is the top component", 10, 40);
              myBottomComponent = new JTextArea ("This is the bottom component", 15, 40);
              //  Create the split pane
              mySplitter = new JSplitPane (JSplitPane.VERTICAL_SPLIT , true, myTopComponent, myBottomComponent);
              mySplitter.addPropertyChangeListener(JSplitPane.DIVIDER_LOCATION_PROPERTY, this);
              getContentPane ().setLayout(new BorderLayout ());
              getContentPane ().add (mySplitter, BorderLayout.CENTER);
         public void propertyChange (PropertyChangeEvent evt) {
              if (evt.getPropertyName () == JSplitPane.DIVIDER_LOCATION_PROPERTY)  {
                   System.out.println ("Split pane divider moved");
                   Dimension size = myTopComponent.getSize ();
                   System.out.println ("    The top component's size is: " + size.height +" h, "+ size.width + " w");
                   myBottomComponent.getSize (size);
                   System.out.println ("    The bottom component's size is: " + size.height +" h, "+ size.width + " w");
                   mySplitter.getSize (size);
                   System.out.println ("    The splitter's size is: " + size.height +" h, "+ size.width + " w");
                   System.out.println ("    The splitter divider location is: " + mySplitter.getDividerLocation ());
         private JTextArea myTopComponent;
         private JTextArea myBottomComponent;
         private JSplitPane mySplitter;
         public static void main(String[] args) {
              SplitPaneFrame appFrame = new SplitPaneFrame ();
              appFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              appFrame.pack();
              appFrame.setVisible (true);          
    }

  • How to capture the event in ALV grid display?

    Hi experts,
      How to capture the event in an ALV grid display which is editable. I have to capture the TAB key or ENTER key.
    regards,
    Arul Jothi.

    Hi Arul,
    Take a look at sample program BCALV_EDIT_03. (Find string "register ENTER" in the program to see how to register)
    Basically you have to Register edit events using method call REGISTER_EDIT_EVENT and then write a handler method for event DATA_CHANGED..
    If you are using a REUSE..GRID fm then first get the grid reference using function module GET_GLOBALS_FROM_SLVC_FULLSCR and then repeat the above procedure..
    Hope this helps..
    Sri
    Message was edited by: Srikanth Pinnamaneni

  • Capture the x and y position of a rectangle

    Hi,
    I'm working on a letting a user draw a rectangle to define a position on the stage. Te rectangle draws out ok. My problem is that I need to convert this dimensions and position of the rectangle in dynamic text. Plus, I need to make a way for the user to save these values into a text file.
    Right now, I am able to capture the width and height, however, I can't seem to capture the x and y coordinates of the rectangle. I'd like to get the position of the top left corner if possible.
    Here is what I have so far-
    //Draws the final rectangle and logs the size and position
    var hasRect: Boolean = false;
    var rectHeight: Number;
    var rectWidth: Number;
    var rectXPos: Number;
    var rectYPos: Number;
    imprintHeightLabel.text = "Imprint Height: 0";
    imprintWidthLabel.text = "Imprint Width: 0";
    imprintXPosLabel.text = "Imprint X Position: 0";
    imprintYPosLabel.text = "Imprint Y Position: 0";
    function mUp(MouseEvent):void
    mouseHolding = false;
        if(hasRect == false)
        myDrawing.graphics.lineStyle(2, 0xFF0000, 1);
        myDrawing.graphics.beginFill(0xFF0000, 0.2);
        myDrawing.graphics.drawRect(clickedX, clickedY, mouseX-clickedX, mouseY-clickedY);
        myDrawing.graphics.endFill();
        hasRect = true;
        clearTemp();
        rectHeight = myDrawing.height;
        rectWidth = myDrawing.width;
        rectYPos = myDrawing.y;
        rectXPos = myDrawing.x;
        if(hasRect == true)
            imprintHeightLabel.text = "Imprint Height: " + rectHeight;
            imprintWidthLabel.text = "Imprint Width: " + rectWidth;
            imprintXPosLabel.text = "Imprint X Position: " + rectXPos;
            imprintYPosLabel.text = "Imprint Y Position: " + rectYPos;
        else
            imprintHeightLabel.text = "Imprint Height: 0";
            imprintWidthLabel.text = "Imprint Width: 0";
            imprintXPosLabel.text = "Imprint X Position: 0";
            imprintYPosLabel.text = "Imprint Y Position: 0";

    Here is what I did to get the top left corner. Now, I am trying to populate that value of the x position into a number stepper and then allow adjustments, but it's not working. I've managed to stave off the IO errors I was receiving, though.
    What I want to do is let the user draw a rectangle. Then find the x and y position of the top left cornder of the rectangle along with the rectangle's height and width. These 4 values are updating in dynamic text fields. All of this works now.
    However, I want to make it so the user can see the values update in numeric steppers and allow the user to use the numeric steppers to make tweaks. Eventually I want the user to select and place the rectangle too.
    Here is what I have so far. The numeric stepper sets to it's default value in the variable, but that's all I've got so far.
    import flash.display.Sprite;
    import fl.controls.NumericStepper;
    //Draws a transluscent rectangle
    var temporaryDrawing:Shape = new Shape();
    addChild(temporaryDrawing);
    temporaryDrawing.graphics.lineStyle(2, 0x666666, 1);
    var myDrawing:Shape = new Shape();
    addChild(myDrawing);
    myDrawing.graphics.lineStyle(2, 0xFF0000, 1);
    var mouseHolding:Boolean = false;
    var clickedX:Number;
    var clickedY:Number;
    stage.addEventListener(MouseEvent.MOUSE_DOWN, mDown);
    stage.addEventListener(MouseEvent.MOUSE_UP, mUp);
    var clickDownY:Number = new Number;
    var clickDownX:Number = new Number;
    function mDown(e:MouseEvent):void
    var tempDownX:Number = new Number;
    var tempDownY:Number = new Number;
         tempDownX = e.stageX;
         tempDownY = e.stageY;
         clickDownY = tempDownY;
         clickDownX = tempDownX;
        myDrawing.graphics.clear();
        hasRect = false;
        mouseHolding = true;
        clickedX = mouseX;
        clickedY = mouseY;
    //Draws the final rectangle and logs the size and position
    var hasRect: Boolean = false;
    var rectHeight: Number;
    var rectWidth: Number;
    var rectXPos: Number;
    var rectYPos: Number;
    imprintHeightLabel.text = "Imprint Height: 0";
    imprintWidthLabel.text = "Imprint Width: 0";
    imprintXPosLabel.text = "Imprint X Position: 0";
    imprintYPosLabel.text = "Imprint Y Position: 0";
    var clickUpX: Number = new Number;
    var clickUpY: Number = new Number;
    var absYPos: Number = new Number;
    var absXPos: Number = new Number;
    function mUp(e:MouseEvent):void
         var tempUpX:Number  = new Number;
            var tempUpY:Number = new Number;
         tempUpX = e.stageX;
         tempUpY = e.stageY;
         clickUpY = tempUpY;
         clickUpX = tempUpX;
        mouseHolding = false;
        //compares the mouse_down and mouse_up to see which one creates the top left corner position
        if(hasRect == false)
            myDrawing.graphics.lineStyle(2, 0xFF0000, 1);
            myDrawing.graphics.beginFill(0xFF0000, 0.2);
            myDrawing.graphics.drawRect(clickedX, clickedY, mouseX-clickedX, mouseY-clickedY);
            myDrawing.graphics.endFill();
            hasRect = true;
            clearTemp();
                //Comparison Determines if the "ClickUp or ClickDown is at the top left corner
                if(clickDownY < clickUpY)
                    absYPos = clickDownY;
                else if (clickDownY > clickUpY)
                    absYPos = clickUpY;
                if(clickDownX < clickUpX)
                    absXPos = clickDownX;
                else if (clickDownX > clickUpX)
                    absXPos = clickUpX;
                rectHeight = myDrawing.height;
                rectWidth = myDrawing.width;
                rectYPos = absYPos;
                rectXPos = absYPos;
                if(hasRect == true)
                    imprintHeightLabel.text = "Imprint Height: " + rectHeight;
                    imprintWidthLabel.text = "Imprint Width: " + rectWidth;
                    imprintXPosLabel.text = "Imprint X Position: " + absXPos;
                    imprintYPosLabel.text = "Imprint Y Position: " + absYPos;
                else
                    imprintHeightLabel.text = "Imprint Height: 0";
                    imprintWidthLabel.text = "Imprint Width: 0";
                    imprintXPosLabel.text = "Imprint X Position: 0";
                    imprintYPosLabel.text = "Imprint Y Position: 0";
    stage.addEventListener(MouseEvent.MOUSE_MOVE, mMove);
    function mMove(MouseEvent):void
        if (mouseHolding)
            if(hasRect == false)
            clearTemp();
            temporaryDrawing.graphics.drawRect(clickedX, clickedY, mouseX-clickedX, mouseY-clickedY);
    function clearTemp():void
        temporaryDrawing.graphics.clear();
        temporaryDrawing.graphics.lineStyle(2, 0x666666, 1);
    xPosAdj.addEventListener(Event.CHANGE, adjustXPosition);
    var stepperValue: Number = new Number;
    function adjustXPosition(Evt:Event):void
        stepperValue = xPosAdj.value;
        if (hasRect == true)
            stepperValue = rectXPos;
        else
            stepperValue = 0;

  • Capturing the event!!!urgent

    Hi all,
    i have a checkBox on a page.My requirement is to capture the event of the CheckBox being clicked,like writing some javascript Functions like onClick.
    kan anyone provide me some clarity like, is this possible.
    I am being to fetch the user checked value once i caputre the event.
    For time being i have created a Apply button to capture the user selection of checkBox.
    The code is here
    if(pageContext.getParameter("Apply")!=null)
    String checkboxn = pageContext.getParameter("NoFlag");
    if ("on".equals(checkboxn))
    updatedCheckValue="Y";
    But my client does not want any additional Buttons on the page.
    So i need to captire the vent through some javascript.

    You don't need a javascript to do this. As Tapash mentions, you can define a fireAction on the messageCheckBox Bean and handle this event in your controller code.
    Thanks, Srinath.

  • How can I capture the event of selecting a listbar page item?

    Is there any way that I can capture the event of clicking/selecting a listbar page item (not just selecting the listbar page) from the listbar activeX control in TestStand 3.0?
    I was able to populate the list bar page with items, now how do I know if a user selects any one of those items?
    Thanks for your time and assistance,
    Mark

    Use the CursorMoved event.

  • Class or method needed to capture the event triggered

    Hi All,
           Help needed in finding the event triggered in ALV container.
    As per my requirement , I am registering the event mc_evt_modify for getting the search help(MEKK) in a ALV container . However it is triggered when ever I am inserting a row in ALV container and also the method data_changed is also triggered with that. But I don't want the method data_changed to be triggered.
    Is there any method or class which captures the event triggered so that I can put a condition on mc_evt_modify event.
    Please help me to resolve this issue.
    Regards,
    Srinivas

    Hi,
    You can check event ONF4
    "1 . --------------------   first register it
      DATA: it_f4 TYPE lvc_t_f4,
            wa_f4 TYPE lvc_s_f4.
      wa_f4-fieldname = 'CONNID'.
      wa_f4-register = 'X'.
      wa_f4-CHNGEAFTER = 'X'.
      APPEND wa_f4 TO it_f4.
    CALL METHOD g_alv_grid_ref->register_f4_for_fields
        EXPORTING
          it_f4 = it_f4.
    "2. --------------------------- now handle it
    handle_on_f4 FOR EVENT onf4 OF cl_gui_alv_grid
                               IMPORTING e_fieldname e_fieldvalue er_event_data,
    METHOD handle_on_f4.
        DATA: repid LIKE sy-repid,
              dynnr LIKE sy-dynnr,
              field TYPE help_info-dynprofld.
        repid = sy-repid.
        dynnr = sy-dynnr.
        field = e_fieldname.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
          EXPORTING
            tabname           = 'SFLIGHT'
            fieldname         = 'CONNID'
            searchhelp        = "give search help here
            dynpprog          = repid
            dynpnr              = dynnr
            dynprofield       = field.  "return picked value to the one you are in
        "prevent furhter standard processing
        er_event_data->m_event_handled = 'X'.
      ENDMETHOD.                  
    Regards
    Marcin

  • How to stop the spinning ball/pizza that is stalling repairs to project on imovie 09? on macosx10.5.8 using iomega and superspeed ext h.d. as storage for the events and projects archive of a wedding video that has had audio sync problems on all share form

    How to stop the spinning ball/pizza that is stalling repairs to project on imovie 09? on macosx10.5.8 using iomega and superspeed ext h.d. as storage for the events and projects archive of a wedding video that has had audio sync problems on all share formats (iDVD, mp4, and last of all iTunes). The project label now carries signal with yellow triangled exclamation “i tunes out of date”.
    To solve the sync problem I’m following advice and detaching sound from all of the 100 or so short clips.  This operation has been stalled by the spinning ball. Shut down restart has not helped.
    The Project is mounted from Iomega and superspeed ext hd connected to imovie09 on macosx 10.5.8.
    What to do to resume repairs to the audio sync problem and so successfully share for youtube upload?

    How to stop the spinning ball/pizza that is stalling repairs to project on imovie 09? on macosx10.5.8 using iomega and superspeed ext h.d. as storage for the events and projects archive of a wedding video that has had audio sync problems on all share formats (iDVD, mp4, and last of all iTunes). The project label now carries signal with yellow triangled exclamation “i tunes out of date”.
    To solve the sync problem I’m following advice and detaching sound from all of the 100 or so short clips.  This operation has been stalled by the spinning ball. Shut down restart has not helped.
    The Project is mounted from Iomega and superspeed ext hd connected to imovie09 on macosx 10.5.8.
    What to do to resume repairs to the audio sync problem and so successfully share for youtube upload?

  • An event in one of my libraries no longer has the event icon next to it's name just the name only. I can't view the clips in the event or import new clips. I've tried deleting the event and nothing.

    an event in one of my libraries no longer has the event icon next to it's name in the browser just the name only. I can't view the clips in the event or import new clips. I've tried deleting the event and nothing. After control clicking the event it shows all the media that has been previously imported. But it does not allow anything to be done to the event including deleting. This showed up at the beginning of a normal import session. This is fortunately the back-up evant.

    Did you perhaps mess with the contents of the library in the Finder?
    You may try the solution suggested in this thread:
    https://discussions.apple.com/message/24915790#24915790

  • Important!! Improve the life and performance of the battery.

    Reduce the operating temperature and increase battery life
    The battery in your notebook PC is designed to provide the necessary amount of energy for the processor while maintaining HP high safety standards. As a result, the battery may not charge or may stop providing power to the notebook when the battery temperature exceeds the specified, design safety level.
    If the battery life appears shorter than normal, the battery stops charging before it is 99%-100% full and the battery appears warmer than usual, the battery has most likely reached its designed "no charge" safety state. The battery will no longer charge until the temperature condition is corrected.
    Try one of the following methods to correct the battery temperature:
    When charging the battery, do not use applications that require large amounts of system resources such as graphic or memory intensive applications, heavy and extended hard drive usage.
    Turn off your notebook and remove the battery to allow it to return to a safe operating temperature.
    Make sure the notebook PC is operating on a hard surface. Using the Notebook PC on a bed or sofa may block the vents causing the notebook PC to heat up and shut down.
    By taking these steps, the battery will return to its normal operating temperature range and continue to charge and discharge as designed.
    Calibrating the battery while PC not in use
    Recalibrating the battery requires a cycle of a complete charge and a complete discharge. To recalibrate the battery while using the PC is not is use complete the following steps.
    The recalibration may take 1-5 hours depending on the age of the battery and the configuration of the notebook PC you own. The PC should not be used while you perform the following steps. Completing all the following steps will also calibrate the battery so that the power meter readings are accurate.
    Shut down the notebook PC
    Connect the AC Adapter to the notebook PC and to an electrical socket.
    Charge the Notebook PC until the Battery Charge light is Green. This indicates the battery is completely charged.
    Press and release the Power Button to start the computer.
    Press the F8 key several times when the HP Logo displays.
    When the Windows Advanced Startup Menu displays, select the Startup in Safe Mode option.
    Remove the AC power adapter from the notebook PC.
    Allow the battery to discharge completely until the notebook PC turns off.
    The battery is now calibrated and the battery level reading on the power meter is now accurate.
    If you are not using the notebook regularly then please unplug the AC adapter and shut down the notebook. By following these practices will improve the life and performance of the battery. Here is a quick list of Do's and Don'ts for the care of your Li-On batteries:
    Do's
    When you receive a new Notebook or Tablet PC, leave the battery to fully charge overnight.
    Condition a new battery by using it until it is fully discharged, and then re-charge it fully. Doing this once a month will help to accurately calibrate your battery.
    Always ensure the battery is recharged as soon as possible after it becomes fully discharged. A battery will be permanently damaged if left for an extended length of time in a fully discharged state.
    Remember that a Lithium-Ion battery will slowly deteriorate; a new battery will always perform better than one that is 6-months old.
    Remember that the battery half-life is rated for a certain total number of charge/discharge cycles (see your User Manual or Quick Start Guide for the rating). For example, a battery that is rated for 3 hours and 500 charge/discharge cycles, will still be considered as within specification, even if it only lasts for 1 hour 45 minutes after 500 charge/discharge cycles.
    Heat is the worst enemy of a battery. Allow plenty of air to circulate around the Notebook/Tablet PC, so that the battery is kept as cool as possible when charging and also when in use. If provided, use the integrated 'legs' under the Notebook to raise the notebook and improve air circulation.
    Remove the battery if storing for several months (the battery should be at approximately 50% charge or higher).
    If you use a NoteBus or if charging your Notebooks or Tablet PCs in a confined space, allow for adequate ventilation in order to keep the batteries as cool as possible.
    Don'ts
    Do Not - Expose the battery to excessive heat or cold (i.e. outside the range of 10-35 degrees Centigrade ambient).
    Do Not - Store the battery in a fully charged state (store batteries with about 50% charge).
    Do Not - Allow a nearly flat battery to be unused for more than a month or so. The battery will slowly discharge until it becomes fully discharged and this will permanently damage the battery cells.
    Do Not - Charge your Notebook/Tablet PC inside a carry case - the battery may overheat.
    Do Not - Charge your Notebook/Tablet PC when stacked on top of each other - the battery may overheat.
    Remember: Your battery is slowly degrading all the time, even if it is not used. Keeping your battery as cool as possible will slow down this degradation considerably.
    For more information please visit the following links:
    How to Improve the Performance of the Battery
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01297640&cc=us&lc=en&dlc=en
    10 Tips to make your Laptop Battery last longer
    http://labnol.blogspot.com/2006/03/10-tips-to-make-your-laptop-battery.html
    Disclaimer: By clicking on the link above, you will be leaving HP.com to visit a web site that is not maintained by HP and where the HP privacy policy does not apply. This link is provided to you for convenience and does not serve as an endorsement by HP of any information or contacts that you may find on this non-HP site.
    ||-Although I am working on behalf of HP, I am speaking for myself and not for HP.-||
    //Click on Kudos if my reply was helpful and answered your question//
    ||-If my answer solved the problem please mark the topic as the accepted solution-||

    I hope the above article will help you guys..
    ||-Although I am working on behalf of HP, I am speaking for myself and not for HP.-||
    //Click on Kudos if my reply was helpful and answered your question//
    ||-If my answer solved the problem please mark the topic as the accepted solution-||

  • When I connect my iPod touch to my computer, I have a list of Events on my iTunes/iPod/Photos. I want to erase these Events. However, the photos are NOT on my MacBook Air. When I check one of the Events and then hit Apply, the photos appear on my iPod.

    When I connect my iPod touch to my computer, I have a list of Events on my iTunes-iPod-Photos. I want to erase these Events. However, the photos are NOT on my MacBook Air-iPhoto. When I check one of the Events and then hit Apply, the photos appear on my iPod. And one last thing: When I connect the iPod and open iPhoto, iPhoto tries to load New Photos (I think), but nothing happens. Any ideas?

    Resolved.

  • How to capture the date and time of  a background job

    Hi experts,
    How to capture the date and time of  a background job?
    How to find whether it is runned succesfully or not?
    If it is not successful how to put error message?
    ASAP
    Thanx in advance,
    Sudha

    To Display the STATUS of the JOB which is exectued in background
      CLEAR : wa_jobsteplist.
      REFRESH : i_jobsteplist.
      WRITE:/ 'DISPLAYING JOB STATUS'.
      CALL FUNCTION 'BP_JOB_READ'
        EXPORTING
          job_read_jobcount           = w_jobcount
          job_read_jobname            = w_jobname
          job_read_opcode             = '20'
        JOB_STEP_NUMBER             =
       IMPORTING
         job_read_jobhead            = wa_jobhead
       TABLES
         job_read_steplist           = i_jobsteplist
    CHANGING
       RET                         =
       EXCEPTIONS
         invalid_opcode              = 1
         job_doesnt_exist            = 2
         job_doesnt_have_steps       = 3
         OTHERS                      = 4
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    To Display the status text as per the status type
      CASE wa_jobhead-status.
        WHEN 'S'. WRITE: / 'Scheduled'.
        WHEN 'R'. WRITE: / 'Released'.
        WHEN 'F'. WRITE: / 'Completed'.
        WHEN 'A'. WRITE: / 'Cancelled'.
        WHEN OTHERS.
      ENDCASE.

  • How to use the eventing and databag with a WAS 6.20 ?

    How to use the eventing and databag with a WAS 6.20 ?
    Is what there is a good guide for these services?
    Thank's

    In the raise event you can pass the value
    like below.
    <SCRIPT>
    function raiseEvt(value1){
    if(window.document.domain == window.location.hostname){
    if ( document.domain.indexOf(".") > 0 ) document.domain = document.domain.substr(document.domain.indexOf(".")+1);
       EPCMPROXY.raiseEvent( "urn:com.sap:BWEvents","BWiViewevent", value1, null );
      // alert('tree domain'+document.domain);
    </SCRIPT>
    and in the
    subscribe event you can get the values like below.
    <script language="javascript">
    if(window.document.domain == window.location.hostname){
    document.domain = document.domain.substring(document.domain.indexOf('.')+1);
        EPCMPROXY.subscribeEvent("urn:com.sap:BWEvents","BWiViewevent", window, "myreceiveEvent");
    function myreceiveEvent( eventObj ) {
          document.forms[0].gp_hidden.value = eventObj.dataObject;
    </script>
    Also look at the following link for a complete documentation.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/Enterprise%20Portal%20Client.pdf
    Regards
    Raja

  • Capturing the event on clicking the af:train stop icon

    We are using an af:train as follows
    <fnd:applicationsPanel>
    <f:facet name="appsPanelTrain">
    <af:panelGroupLayout layout="horizontal" halign="center"
    id="panelGroupLayout2">
    <af:train value="#{controllerContext.currentViewPort.taskFlowContext.trainModel}"
    id="train1"/>
    </af:panelGroupLayout>
    </f:facet>
    </fnd:applicationsPanel>
    I see the train stops on top of my page as expected. I can skip the train stops by directly clicking on the stops on top of the page.
    Is there a way to capture the event of this click?

    This should help
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/97-deferred-trainstop-navigation-1528557.pdf

  • Can we capture the video and audio using cam and microphone in Edge Animate?

    Hi Everyone,
    I got a new requirement from the client to create a HTML5 based functionality through which one can capture the video and audio using his web-cam/camcorder and microphone. I have researched on internet and found that there is api available (not reliable) http://www.html5rocks.com/en/tutorials/getusermedia/intro/ . I am not a coder by profession and use Edge animate to create HTML 5 based animations and stuff like that. Another problem which i have found that the api only works well with Chrome and Opera and not with Mozilla, IE..
    Can anybody help me out in this, please...
    Thanks & Warm Regards
    Vikas

    Hi, Vikas-
    After a brief bit of research, you're definitely hitting upon the limitation of the browsers.  Not all of the browsers have implemented this part of the HTML5 standard, so you're going to either have to use Flash or be limited to these specific browsers.
    Thanks,
    -Elaine

Maybe you are looking for

  • Help, Ultiboard has slowed to a choppy crawl.

    Today when opening a previously created file, Ultiboard had reconfigured itself with new toolbars and various other options. Now Ultiboard has slowed to a choppy crawl, making it impossible to work with efficiently. The version is 10.0.267. Please He

  • How to remove header from B2C webshop from internet sales application?

    Hi All, I am working on B2C webshop. I need to design a user registration page which has only workarea section and no other section in the page. I have been able to remove the header contents, but the area in which header jsp was placed is looking em

  • Why do I need a class or interface?

    Why am I getting this error? "ReportQueryBuilder.java": Error #: 202 : 'class' or 'interface' expected at line 484, column 12 This line is causing the error...what am I missing? public Connection openCon(String sUid, String sPwd) throws ReportQueryBu

  • How tp run JSTL ?

    hello, i'm new to JSP technology can anybody plz help me out to solve i'm getting problem in i embedded few JSTL tags in my JSP page the tags are fmt & core c also used expression language to display my result in the web-INF directory i copied jar fi

  • JDeveloper 10.1.2 with JSP 2.0

    I am currently using JDeveloper 10.1.2 and am taking advantage of ADF. I have come to a point where I need to use JSP 2.0 for the added EL functionality and the JSTL 1.1 support. I know JDeveloper 10.1.2 does not support JSP 2.0 and version 10.1.3 do