Catch Event from a FileDownload!!!

Hey magical people
Somebody knows how can i catch an event from Element UI FileDownload?
Thanks for all!!!

A. Van de Camp,
You can create two iViews that communicate with each other on the same page, using client-side eventing, so that the output of the first iView serves as the input to the second. Eventing in the portal is based on the use of the Enterprise Portal Client Manager (EPCM), an object defined by the portal client framework to handle functions such as client eventing.
To define eventing between an iView created and existing in the portal(web dynpro iview), and an iView created in Visual Composer:
1.Check the properties of the existing portal iView and find out its EPCM event name.
2. In Storyboard, open the iView that is to be the second part of the eventing scenario and create the required port: as input or as output.
3. Double-click the newly-created port and in the Configure Element task panel, enter the portal event name in the Signal name field and the EPCM event in the EPCM event field.
Regards,
Sami

Similar Messages

  • How to catch events from SAP

    Hi everybody:
    I'm trying to set an event in SAP and catch it from a .NET progam using the .NET Connector.
    I have sow the function BP_EVENT_RISE but it seems it doesn't help enough.
    We want to verify if the users have use an especific transaction inside SAP program. We have user exits created and we only need to indicate over the .NET program who is listening for some event.
    How can I solve this?
    We are not using Business Connector.
    I will appreciate any suggestion.

    The User Exit only reflects one step of exit performed by the user.
    The events that i need to perform have the objetive to inform that some task have been performed inside SAP, a complete task, not only knowing that the user have finished his day work.
    The idea it's to know that the user finished a new human resource registration, beyond it's well done, I need to know the number of the human resource.
    On this point, I need to continue the registration in an automatic way over the security system (active directory), send an event to the person who have to regiter him over the corporate system and configure his mail (if needed).
    I have look and evaluate the advise, but it dosen't solve my needs. I have to wait until my user finished his job (or ask him to exit) each time he register a new human resorce, that's not my idea.
    Any other sugestion?. Thanks.

  • Catching event from canvas class

    Hi,
    I want to catch an event from MyCanvas class/obect to MyMidlet class/object. I have implemented keypressed method in MyCanvas. can i use it pr do i have to do something else..
    Any ideas?
    Cheers
    Indy

    hi mlk!
    well, i want to catch Canvas.Fire event. sorry but i should have given you an idea of the code. well here it is:
    public class MyMIDlet extends MIDlet implements CommandListener {
    private Display display;
    private MyCanvas canvas;
    private Command exitCommand = new Command("Exit", Command.SCREEN, 1 );
    public MyMIDlet(){
    canvas = new MyCanvas(this);
    protected void startApp(){
    display.setCurrent(canvas);
    canvas.addComman(exitCommand);
    canvas.setCommandListener(this);
    public void commandAction( Command c, Displayable d ){      
         if( c == exitCommand ){
         exit();
    public class MyCanvas extends Canvas{
    protected void keyPressed(int keyCode) {
         if(keyCode < 0)
         int key = getGameAction(keyCode);
    if(key == Canvas.FIRE){
         System.out.println("FIRE");
    So, when Canvas.FIRE is 'pressed' i want MyMIDLET to know that it happend..
    thanks again
    indy

  • Catching Events from Com side using ActiveX bridge

    Hi,
    I have packaged a java swing application into an activex control using the ActiveX bridge. I now need to be able to fire events from my java code which the com/VB code needs to be able to trap. The event handler on the com side looks like this: function(BSTR param1, BSTR param2, BSTR param3), but the java event model only allows passing the EventObject in the param for the introspector to work. How do I fire an activex event that the com client is able to trap??

    Thanks, beders. Your solutions above works, although I found the only way to install the SDK was to the use following URL rather then the one beders suggested:
    http://www.microsoft.com/msdownload/platformsdk/sdkupdate/XPSP2FULLInstall.htm
    This SDK is the full one and not just the Core SDK so may take a little longer to download.
    You also need to ensure that the location to cmd.exe (ie. C:\WINDOWS\system32) is on the path variable otherwise SetEnv.bat fails when it calls cmd.
    J

  • Problem catching events from my ComboBoxItemRenderer

    Hi all,
    I have a problem catching a custom event dispatched by my
    custom ComboBoxItemRenderer. In the renderer I dispatch an event as
    follows:
    dispatchEvent(new Event("smallTest",true,true));
    As this is a bubbling event i expected to be able to catch it
    in one of the parent containers. However, the opposite is true.
    Then, lowering my goals i tried to catch the MouseEvent.CLICK event
    raised by the button in the ComboBoxItemRenderer. I failed in the
    same way...
    Somebody has a clue? Thanks in advance!
    (the following is an isolated description of my small problem
    The Mainapp
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="init()" layout="absolute" xmlns:local="*">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    import mx.collections.ArrayCollection;
    [Bindable]
    public var aDataProvider:ArrayCollection = new
    ArrayCollection(
    [ {label:"one", data:1},
    {label:"two", data:2},
    {label:"three", data:3} ]);
    private function init() : void {
    addEventListener("smallTest", doAlert);
    private function doAlert(event : Event) : void {
    Alert.show("yo");
    ]]>
    </mx:Script>
    <mx:ComboBox id="cb" itemRenderer="ComboBoxItemRenderer"
    dataProvider="{aDataProvider}" width="200"/>
    </mx:Application>
    The Renderer
    <?xml version="1.0" encoding="utf-8"?>
    <mx:HBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="100%">
    <mx:Script>
    <![CDATA[
    import mx.core.Application;
    private function doClick() : void {
    dispatchEvent(new Event("smallTest",true,true));
    ]]>
    </mx:Script>
    <mx:Label color="red" text="{data.label}"/>
    <mx:Spacer width="100%"/>
    <mx:Button label="*" width="40" click="doClick()"/>
    </mx:HBox>

    Listening from the combobox (cb) didn't work. Found out that
    the hierarchical parent list from the view of the itemrenderer was
    as follows:
    List18.ListBaseContentHolder21
    List18
    [object _ComboboxTest_mx_managers_SystemManager]
    [object Stage]
    For now, i managed to fix the problem by listening from the
    systemManager but this is more like a hack.

  • Catch event from Web Dynpro for Java

    Dear guru's,
    we have a working Web Dynpro for Java. It delivers a company code that needs to be routed to a visual composer model. In the Web Dynpro we use the WDPortalEventing.fire command to trigger an event named 'ShowCompanyCode' in namespace com.sap.vc:epcm. In the visual composer, I used a 'signal in' for the same namespace and event name. However, the supplied value for the company code is not received. Both iviews (from VC and Web Dynpro) are on one page.
    I have enabled the flash debug console and did some testing with a VC model that consists of two iviews on one page. Here it does work. I have found some differences in the debug output that points in a direction.
    In the case of the VC iviews, I get the following string in the debug console: signalinAHAPP -<Params version="2" ><Row STR1="1000" /></Params>. This results in a correct transfer of company code value '1000'.
    When getting the info from the Web Dynpro iview, I get the following string:  signalinAHAO8 -1000. It seems that the web dynpro does not supply the values in a correct way. However, the same mechanism is used to supply the data to another web dynpro iview and that works fine.
    Do we have to use special coding to be able to fire the event to a VC iview? Any help will be appreciated and points will be awarded!
    Thanks,
    Arno

    A. Van de Camp,
    You can create two iViews that communicate with each other on the same page, using client-side eventing, so that the output of the first iView serves as the input to the second. Eventing in the portal is based on the use of the Enterprise Portal Client Manager (EPCM), an object defined by the portal client framework to handle functions such as client eventing.
    To define eventing between an iView created and existing in the portal(web dynpro iview), and an iView created in Visual Composer:
    1.Check the properties of the existing portal iView and find out its EPCM event name.
    2. In Storyboard, open the iView that is to be the second part of the eventing scenario and create the required port: as input or as output.
    3. Double-click the newly-created port and in the Configure Element task panel, enter the portal event name in the Signal name field and the EPCM event in the EPCM event field.
    Regards,
    Sami

  • ALV Catch Event's

    Hi,
        l am using 'REUSE_ALV_GRID_DISPLAY'.
    I am able to catch event, from ALV list, example DBLCLICK.
    I would like to catch command from key pad also, example ENTER.
    How can l do?

    Hi,
    you need to SET The pf status using the PFstatus option,
    here you have to set the OKCODE for the Green tick button
    that is related to enter.
    say ENTR for the Green Tick button and catch it in User Command form.
    you need to have two forms
    one for pf status, one for user_command.
    Regards
    vijay

  • How to catch the mouse event from the JTable cell of  the DefaultCellEditor

    Hi, my problem is:
    I have a JTable with the cells of DefaultCellEditor(JComboBox) and added the mouse listener to JTable. I can catch the mouse event from any editor cell when this cell didn't be focused. However, when I click the editor to select one JComboBox element, all the mouse events were intercepted by the editor.
    So, how can I catch the mouse event in this case? In other word, even if I do the operation over the editor, I also need to catch the cursor position.
    Any idea will be highly appreciated!
    Thanks in advance!

    Hi, bbritta,
    Thanks very much for your help. Really, your code could run well, but my case is to catch the JComboBox event. So, when I change the JTextField as JComboBox, it still fail to catch the event. The following is my code. Could you give me any other suggestion?
    Also, any one has a good idea for my problem? I look forward to the right solution to this problem.
    Thanks.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Test3
    extends JFrame {
    // JTextField jtf = new JTextField();
    Object[] as = {"aa","bb","cc","dd"};
    JComboBox box = new JComboBox(as);
    public Test3() {
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    Container content = getContentPane();
    String[] head = {
    "One", "Two", "Three"};
    String[][] data = {
    "R1-C1", "R1-C2", "R1-C3"}
    "R2-C1", "R2-C2", "R2-C3"}
    JTable jt = new JTable(data, head);
    box.addMouseListener(new MouseAdapter() {
    // jtf.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent e)
    System.out.println("-------------------JComboBox mouseclick....");
    jt.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent e)
    System.out.println("-------------------JTable mouseclick....");
    // jt.setDefaultEditor(Object.class, new DefaultCellEditor(jtf));
    jt.setDefaultEditor(Object.class, new DefaultCellEditor(box));
    content.add(new JScrollPane(jt), BorderLayout.CENTER);
    setSize(300, 300);
    public static void main(String[] args) {
    new Test3().setVisible(true);
    }

  • Catching window closing events from JFrame

    I'm having problems catching windowClosing() events from a JFrame (just doesn't get to my event listener it would seem!).
    I register and setup a window listener in the constructor of my JFrame class. Prior to this I set the default close operation as DO_NOTHING_ON_CLOSE (as you're suppose to if tyou want to handle window closing events).
    When user clicks on x (window terminate) button (in WIN systems), nothing is dispatched to my event listener. Any ideas?
    Extract from constructor:
    setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
    addWindowListener(new MainWindowListener(this));
    MainWindowListener looks as follows (EDImemConvert extends JFrame):
    class MainWindowListener extends WindowAdapter
    private EDImemConvert f;
    public MainWindowListener(EDImemConvert f)
    this.f = f;
    public void windowClosing(WindowEvent e)
    System.out.println("gets here...");
    f.ReturnResources();
    f.dispose();
    System.exit(0);
    }

    This works for meimport java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Test extends JFrame {
      public Test() {
        addWindowListener(new WindowAdapter() {
          public void windowClosing(WindowEvent we) { System.exit(0); }
        setSize(300,300);
        setVisible(true);
      public static void main(String args[]) { new Test(); }
    }Normally, I just use this line
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    instead of adding a listener. It will clean up everything nicely.

  • Error while deleting events from the integration event queue

    I am trying to delete all the events from the integration event queue after reading it, like this (this is in Java):
            IntegrationEventWS_DeleteEvents_Input input = new IntegrationEventWS_DeleteEvents_Input();
            input.setDateTime("");
            input.setLastEventId("");
            try {
                 ((Default_Binding_IntegrationEventWS)onDemandStub).deleteEvents(input);
            } catch (Exception e) {
                 log.error("Deleting events from integration queue failed: ", e);
            }Alas, I get the following error message:
    Invalid method parameter(s): 'File Id'(SBL-ODS-50007)What does this mean? What is this mysterious "File Id" it supposedly gets? I don't see it anywhere in the SOAP message I'm sending and it isn't mentioned anywhere in the docs.
    Thanks in advance for any input.

    Dont keep this attributes null
    input.setDateTime(""); //Put a Default Time way in
    the past. Ex:"1/1/2000"
    input.setLastEventId(""); //pass the eventIdThe documentation states that those two are optional (although they are not nillable, for some reason). I tried to set the date to today, but I got the same result. Since setting a date is supposed to delete all events older than that date, I don't think setting it in the past will delete anything.

  • Coalescing events from multiple components in a JPanel

    Hi,
    I've got a JPanel based form with several components (mostly JTextField) and I'd like to be able to have component events bubble up to the parent JPanel. By comparison to MFC, if I have a dialog box with several controls all of the control events will continue to percolate upwards until they are handled. Is there any such possibility with Swing?
    Ideally I would like it if all component events were routed to a single listener in the parent JPanel, all I really need to do (initially) is set a boolean to note that a change may have been made. Do I have to explicitly set a handler for each component or is there way to automagically have the parent to catch the events from its child components?
    Thanks!
    jam

    Thanks jvaudry, this is kinda what I suspected. It seems somewhat cumbersome to have to set up a listener for each of the many JTextField's in my form but definitely wrapping all of that up in a class is a good way to go. I'm pretty new to Swing and usually when something seems harder than it should it's a sure sign that I just don't know how to do it right :)
    I may try an altogether different approach just for curiousity's sake. I'm thinking of adding a method to the parent JPanel that will iterate all of its text fields and create a checksum of their combined contents. The idea is that I will compute the checksum once after populating the form and then later to see if any of the fields have changed. A simple notion that may not turn out to be so simple once I get to coding, but it's worth a try.
    Thanks!
    jam

  • How to catch event before retrieving data in table?

    Hello
    I use Oracle JDeveloper 11.1.1.2.0
    I need to set parameters session (Package Vars) before any refresh my page (I retrieve data from views that use this vars).
    For this reason I have created method setUserSessionParameters(int[] parameters) in AppModuleImpl.java and I am able to call it from my backing bean.
    It's working fine, but I need to call it before any retrieving data in my tables.
    May be, there is a usual way to catch event before retrieving data is started?
    I'd call my method in that place. I think it would be perfectly well decision.

    Hi,
    you can define a PhaseListener method on the f:view component (it has pre and post properties for this). In the after RestoreView phase, you can access the binding container and call teh AM method to set the values. This way, before the page renders, the value is set
    Frank

  • Eventing from a PDK appln to a Webdynpro appln ! :(

    Hi,
    I would like to trigger an event in webdynpro and catch subscribe for it from a PDK application..
    (And passing data b/w WD appln and a PDK appln ...)
    How can i acheive the same..
    WDPortalEventing will work only across WD applns !
    Is their any API that suits my requirement !
    Any help is appreciated !
    Regards
    Bharathwaj

    Hi Bharath,
    You can trigger in WD and catch it in the PDK application.
    The following code is for firing an event from webdynpro.
    WDPortalEventing.fire ("urn:com.sap.tc.webdynpro.test.portal", 
                           "TestEvent", 
                           "AParameter");
    http://help.sap.com/saphelp_nw04/helpdata/en/5c/1d584289e59041e10000000a1550b0/frameset.htm
    It can be captured in portal using EPCF
    EPCM.subscribeEvent( "urn:com.sap.tc.webdynpro.test.portal",
             "TestEvent",Function_name);
    http://help.sap.com/saphelp_nw04/helpdata/en/f6/aebf40b87e0366e10000000a1550b0/frameset.htm
    Regards
    gEorgE

  • Listening to Events from inside loaded swf

    In Flash Builder 4 I have a swfLoader with which I load swf files. The swf files that get loaded get created in Flash Pro, and I would like to be able to listen for events from the level that they get loaded from. What would I have to specify in the Flash file for the path? Can't seem to be able to specify the right path.
    Thanks a lot for any help!

    I wouldnt say this is elegant but we have been having issues gaining direct access to the SWF's loaded in via OSMF. However I have done setups where I dispatch an event from a SWF and have it bubble up and catch it on the MediaContainer level. Not elegant but works- otherwise may need to make a custom MediaElement and bypass the SWFElement to gain tighter control - seems like there should be a better way, but I havnt found it.

  • Dispatching an event from a MovieClip???

    Hello, can somebody tell me if there is a way to dispatch an
    event from a Movieclip?, I tried to dispatch an event from a class
    and all ran ok. But now, if I have a Movieclip on my scenario and I
    want that when it arrive to "x" frame it dispatch an event that
    could be catched by a listener on the _root, what I have to do?
    (without doing use of classes), thanks a lot.

    Try the following. On the first frame of the movieclip place
    the following code.
    // Event Routines //
    var dispatchEvent:Function;
    var addEventListener:Function;
    var removeEventListener:Function;
    mx.events.EventDispatcher.initialize(this);
    Then on the "x" frame of the movieclip, place the following
    code:
    var evt:Object = new Object();
    evt.type = "framereached"; // this can be whatever you wish
    to listen for
    evt.target = this;
    dispatchEvent(evt);
    This is how you would do this in a class and it should work
    just as well if coded directly onto a frame. However, to make this
    more versatile I would place it in a class with a public function,
    for example, name throwEvent(). This public method would then
    execute the above code and could be called from any frame. You
    could even add another item to the evt object that would contain
    the frame the executed the event.
    Tim

Maybe you are looking for