Handling an OIF toolbar element event

Hi All,
Please let me know your thoughts on the following (somewhat related) queries -
1. In an OIF where we have multiple main views, we have added an app specific button to the toolbar which raises a custom event.
Now, we need some logic implemented in one specific UIBB to be always executed when this toolbar button is clicked, no matter which main view is currently active (i.e. being viewed).
How can this be achieved?
2. In an OIF, if I have a main view active (being viewed), and a toolbar element is clicked, which UIBB's PROCESS_EVENT method is invoked? Is it always the active subview that gets to handle the event, or is there a way to specify which UIBB's PROCESS_EVENT should be triggered?
I am very new to FPM, so kindly excuse me if my questions are naive.
Thanks in advance,
Anubrato

Hi,
1.For your 1st query, it would be easy if this part of imlpemented logic in the specific UIBB is in your class method. Call the same method on the button click and also when the UIBB is active.
2.And for the 2nd, yes, it is true that the PROCESS_EVENT is triggered as per the IT_INTERFACE_VIEWS parameter. This cannot be changed either in WDC(as it is an importing parameter) and also in CL_FPM(as it is a private parameter).
Regards,
Indu

Similar Messages

  • Painting swing elements when you�re treating and swing element events

    Hi, I need to repaint several swing elements while executing and action associated to another swing element event. I�ve seen in java doc that this is not posible because event-handling code and painting code executes on the event-dispatching thread. Is posible to solve this problem, how could i do both things at a time?
    It seems to me a strange thing the fact that is not posible to do this.
    Thanks in advance.

    Create a new Thread to execute your 'action' code.
    See this section from the Swing tutorial for more information on using threads:
    http://java.sun.com/docs/books/tutorial/uiswing/mini/threads.html

  • Everytime i open Mozilla Firefox appears several messages saying that there were errors on adding toolbar element or menu element.How can i get rid of this?

    I changed my operative system in my computer to windows 7 and add several plugins to my mozilla firefox, and after that i couldn´t find the plus signal to open a new page in a new tab.So, everytime i opened a new page it oppened a new firefox window, and this was very boring.So, i tryed to open mozila in safe mode and tryed to add some extras and i think it was because of this that i started to have several boxes from java script application opening and telling about several errors everytime i open a new window in mozilla.The errors are the following:
    "error on adding toolbar element:NS_error Unexected, component returned failure code:0x8000fff (NS_Error_Unexpected)...id:places-New Place
    or:id:Plus-Circles
    or:id:Plus-Profile
    or:id:Wallet
    or:id:Web fonts
    error on adding menu element:NS_Error_Unexpected, component returned failure code:0x8000fff(NS_Error_unexpected) id:Places-New Place
    id:Plus-Circles
    id:Plus-Profile
    id:Wallet
    id:Web fonts
    id:"
    The problem now is that despite the errors appears all the time i open firefox, the good thing is that the plus signal now appears and i can open a new page in a new tab but that page opens at the same time in a new window!!! I mean the page appears in a new tab and in a new window and the errors are appearing all the time i open mozilla!What can i do to get rid of this???

    Hello,
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • When I try to start Firefox I get an Error Message: (Javascript /application) Error on adding toolbar element. TypeError, aButtonLabel is undefined. id. Google Shortcut settings

    When I try to start Firefox I get an Error Message: (Javascript /application) Error on adding toolbar element. TypeError, aButtonLabel is undefined. id. Google Shortcut settings. Firefox will not start. I have been through the troubleshooting steps. Nothing helps
    == I tried to enter Firefox. No apparant reason ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; AskTbGLSV5/5.8.0.12304)

    Hi,
    had this problem but now sorted.
    Go to settings for google shortcuts, follow link to homepage and upload latest version, it has not yet been approved by Firefox, but works and solves the bug.
    Hope this helps.
    A

  • I am using Aperture 3 and recently installed an update from Apple. After restarting the computer and opening Aperture all of the "colour" is gone from the toolbar and events icons. How can I rest the colours?

    How can i reset the colors of Aperture toolbars and event icons? They have all gone grey.

    Have you just upgraded to Aperture 3.3 or later? The grey design is a feature, ot a bug
    See the Release Notes: http://support.apple.com/kb/TS2518 (Aperture 3.3)
    Newly designed monochrome source list and toolbar icons.
    The only way to change it, would be to manually replace the icons by colored ones in the Aperture application itself. You would have to patch the application bundle and to exchange some of the tiff files in the "Resources" folder.
    And each time there is an update you would have to start over.
    There are quite a few discussions on this, see:
    Re: After updating to Aperture 3.3 all my icons appears in Black and white. This includes the inspect button, photo stream button, the Facebook / flicker share button. Could you please help here ?
    or:
    Latest Aperture update - all icons on toolbar now grey
    Re: arghhh!
    Re: Why O Why did Apple removed the sidebar colors?
    Regards
    Léonie
    P.S. Some hand colored icons to replace the grey ones are here:
    Re: After updating to Aperture 3.3 all my icons appears in Black and white. This includes the inspect button, photo stream button, the Facebook / flicker share button. Could you please help here ?

  • Com.mslv.oms.handler.InternalErrorException: Cannot create automation event

    Hi Friends,
    I try place on order but i am getting below error.pls help me on this.
    java.rmi.RemoteException: SOAPFaultException - FaultCode [{http://schemas.xmlsoap.org/soap/envelope/}Server] FaultString [Failed to invoke end component oracle.communications.ordermanagement.ws.OrderManagementWSPortImpl (POJO), operation=CreateOrderBySpecification
    -> Failed to invoke method
    -> com.mslv.oms.handler.InternalErrorException: Cannot create automation events : Error in ejbCreate:: javax.ejb.CreateException: While trying to lookup 'mslv.oms.oms1.internal.jms.ConnectionFactory' didn't find subcontext 'jms'. Resolved 'mslv.oms.oms1.internal'
    I am using 7.0 OSM Version.
    Edited by: 996142 on Mar 26, 2013 5:58 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi JP,
    I have installed OSm 7.0.3 on top of weblogic 10.3.5 and i not able to create order is OSM after deploying cartridges
    on the server.The error i am getting is : (Wrapped) com.mslv.oms.handler.order.cache.c
    I see in your previous posts that we have to downgrade to version 10.3.3 for weblogic.
    Is there any other alternative for this. Please let me know the solution ASAP.

  • Toolbar elements aren't visible

    I'm using CC in a Windows 7 Professional Intel i7 3.20GHz 12GB RAM GeForce GTS 450 PC.
    Several toolbar elements aren't showing as you expect them to do... I tried several times restarting both windows and photoshop, but the problem is still there... It came to a point that I can't continue my work because I don't know where the options I need are...
    has anyone had the same problem and/or know a way to fix it?

    My client has found the solution for this problem.
    Apparently, the CR will redirect the images and js to the windows folder.
    I included "CrystalReportWebFormViewer3" folder to be copied to C:\Windows\Microsoft.NET\Framework\v2.0.50727\ASP.NETClientFiles\ in the installer and it makes the images displayed works fine now.
    Thanks for the help.
    Cheers,
    Marry

  • Event handling in Network UI element in Webdynpro

    Hi ,
       I am developing a hierarchial graph using Network UI element.I want to incorporate event handling so that the graph will respond to user actions like on double clicking a node an URL will be opened.I can notproceed with the event handling.
                         Can anyone tell me the procedure to do this from webdynpro java.
    Regards
    Nayeem

    Hi Nayeem,
    The Network UI element has lots of events defined for it which can be handled to get the desired functionality.
    Go to the View in which you have added the Network Element, select the Element and go to the
    properties tab.
    Under events , you can see a list of events defined for this UI element.
    Select the event you wish to handle and press the Create button which gets visible once
    an event say onNodeSelected is selected
    You can then give a name to the action say UserClicked and save it .
    In the properties tab of the UI element , the action will be registed against the event .
    Now select the event again and press the go button.
    It will redirect you to the java editor of the view where in you can place your event handling logic.
    Alternatively, if you have created the UI element dynamically then you can add the event to the UI element by using the following code
    IWDNetwork network = (IWDNetwork)view.createElement(IWDNetwork.class);
    network.setOnNodeSelected(/*Your Action handler already defined in the View*/);
    Regards,
    Ashish

  • Custom element event handling

    Hi all
    I could not capture event in my custom element. Can anyone explain in detail, a way to capture events of a element defined in the custom element and redirect it.
    Thanks in advance
    Rakesh ;>)

    Hi Rakesh,
       If you are using HTMLB in your layout go through the weblog,
      /people/brian.mckellar/blog/2004/07/28/bsp-programming-handling-htmlb-events
    Regards,
    Azaz Ali.

  • Handling the Standard Toolbar Button click of an ALV

    Hi Experts,
    I have created an ALV grid output using CL_GUI_ALV_GRID with standard buttons(default) on the toolbar. When I click on any of these standard buttons, say '+' button to insert records, my custom program is not hit.
    I know there is a protected event 'TOOLBAR_BUTTON_CLICK' which I tried to handle in my program but it did not work. However, I am able to handle the public event 'DOUBLE_CLICK' of the same class 'CL_GUI_ALV_GRID'.
    So..can anyone tell how to handle this protected event OR how to handle the STANDARD buttons on ALV toolbar so that they hit my custome code.
    Thanks very much.
    Regards,
    Rudresh

    Hello Rudresh
    The point is to "re-define" the standard ok-codes of toolbar buttons:
    " Make toolbar interactive
    CALL METHO go_grid->set_toolbar_interactive( ).  " raises event TOOLBAR
    " Event handler method
    METHOD handle_toolbar.
    * define local data
      DATA: ls_button    TYPE stb_button.
    " Redefine function code
      LOOP AT e_object->mt_toolbar INTO ls_button
                      WHERE ( function = cl_gui_alv_grid=>MC_FC_LOC_INSERT_ROW ).
        ls_button-function = 'MY_FCODE'.  " triggers USER_COMMAND
        MODIFY e_object->mt_toolbar FROM ls_button INDEX syst-tabix.
      ENDLOOP.
    ENDMETHOD.
    Regards
      Uwe

  • MVC �Best Practice� (handling multiple views per action/event)

    Looking for the best approach for handling multiple views for one action/event class? Background: I have a small application using a basic MVC model, one controller servlet, multiple event classes, and multiple JSP views. For performance reasons, the controller Servlet is loaded once, and each event class is an instance within it. Each event has an �eventProcess()� and an �eventForward()� method called by the controller, standard stuff.
    However, because event classes should not use instance variables, how should I communicate which view to forward to should based upon eventProcess() logic (e.g. if error, error.jsp, if success, success.sjp)? Currently, there is only one view mapped per event, and I'm having to put error handling logic in the JSP, which goes against the JSP being for just view only.
    My though was 1) A session object/variable that the eventProcess() sets, and the eventForward() reads, or 2) Have eventProcess() return a mapping key and have the conroller lookup a view page based upon that key, as opposed to 1-1 event/view mapping.
    Would like your thoughts!
    Thanks
    bRi

    Your solution seems ok to me, but maybe the Struts framework from Apache
    that implements MVC for JSP is a better solution for you:
    http://jakarta.apache.org/struts/index.html
    You should take a look at it. It has in addition some useful taglibs that makes life much easier.
    We have successfully used it in a project with about 50 pages.

  • Dynamic Button creation and alignment on standard OIF toolbar

    Hello Experts,
    I'm using IF_FPM_CNR_OIF->define_button method to create buttons which i require on the application toolbar of OIF dynamically. I can observer that all the buttons which got created are aligned next to other where the grouping is left aligned.
    Now my requirement is, i need to group few of the buttons as left aligned and few buttons right aligned (which means that few buttons are starting from the right end of the toolbar and few to be from the left side). Can any one advice on how to achieve this?
    Thanks alot in advance,
    Regards,
    Ravi.

    Hi Julia,
    Thanks alot for the reply.Currently the toolbar is configured in the configuration and i'm generating the buttons from the method. Is there any way possible in case i want to over write the toolbar from the configuration and create a static toolbar with necessary grouping? Please let me know in case there is any work around i can try.
    Thanks again.
    Regards,
    Ravi.

  • Handle runtime menu in subvi event

    I am passing the runtime menu reference to a subvi event structure for processing the top-level runtime menu in the event case. I already have a registered case to handle any change in the top level vi control values. Since, I'm passing a runtime menu reference to the subvi, I initially thought I can handle the runtime menu in the subvi event. When I add an event, runtime menu is not a choice when setting the event up. The event setup does show "shortcut menu" as a selection but this must be for a context menu or the like.
    Thx ahead of time,
    richjoh

    Hi Richjoh,
    what you should do is pass the VI-refnum into the sub-vi, and register there for menu events! A menu reference, does not cover a FP-object so LV has no events for it.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • INFO ON Pre-Process Event Handler ,recon rules, pre insert event handler

    Hi Experts
    Can any one explain me theses terms what is their purpose ...

    recon rules -- rule is nothing but a condition or filter which is applied while reconciling user into OIM.Based on these rule either user record is created or updated in OIM which is again specified in Resource object->Action Rule
    event handler--- A peace of code which get executed if certain event(Insert,Update/Modify and Delete) or action occurs in OIM. Very much similar to Database Triggers.
    Now each and every Event has two stage. either Pre or Post.
    Ex:
    Pre-Insert-> It will be executed before something inserted in Database. for example before user creation
    Post-Insert->It will be executed after something inserted in database. For example after user creation.

  • To handle manually windows shutting down event

    Hi everyone,
    I am developing a GUI application using swings.
    In this, I am writing a window closing event which displays a JOptionPane.ShowConfirmDialog showing a message like "Do you want to save the changes?" same as in notepad or Microsoft Word.
    For abrupt shutdown due to power failure,i am using shutdown hook to delete a file and saving some unsaved changes
    My problem is while shutting down windows manually by going to start menu--->Shutdown,i want to catch(handle) that shutdown event and prompt a message using
    JOptionPane.showConfirmDialog(this, "Do you want to save changes", JOptionPane.YES_NO_CANCEL_OPTION);but i am unable to catch that event using shutdownhook
    Please help me in this..
    thank you

    i am done with the window closing event when we are closing the application and also working fine when we closed from the Task manager,
    but i want to prompt a message for that java application while shutting down the system by going to Start menu and then Shut down/restart
    the following code is working fine when i run in the Command window..but i am not able to use that code in my application. This program is prompting a message while shutting down
    import sun.misc.Signal;
    import sun.misc.SignalHandler;
    public class SignalHandlerExample implements SignalHandler {
        private SignalHandler oldHandler;
        public static SignalHandler install(String signalName) {
            Signal diagSignal = new Signal(signalName);
            SignalHandlerExample instance = new SignalHandlerExample();
            instance.oldHandler = Signal.handle(diagSignal, instance);
            return instance;
        public void handle(Signal signal) {
            System.out.println("Signal handler called for signal "
                  + signal);
            try {
                signalAction(signal);
                // Chain back to previous handler, if one exists
                if (oldHandler != SIG_DFL && oldHandler != SIG_IGN) {
                    oldHandler.handle(signal);
            } catch (Exception e) {
                System.out.println("handle|Signal handler
                     failed, reason " + e.getMessage());
                e.printStackTrace();
        public void signalAction(Signal signal) {
    JOptionPane.showMessageDialog(null, "hi");
            System.out.println("Handling " + signal.getName());
            System.out.println("Just sleep for 5 seconds.");
    JOptionPane.showMessageDialog(null, "hello");
            try {
                Thread.sleep(5000);
            } catch (InterruptedException e) {
                System.out.println("Interrupted: "
                  + e.getMessage());
        public static void main(String[] args) {
            SignalHandlerExample.install("TERM");
            SignalHandlerExample.install("INT");
            SignalHandlerExample.install("ABRT");
            System.out.println("Signal handling example.");
            try {
                Thread.sleep(50000);
            } catch (InterruptedException e) {
                System.out.println("Interrupted: " + e.getMessage());
    }thank you.

Maybe you are looking for

  • Line marker on top of X-axis

    Afternoon, I'm drawing a line marker onto a chart to show upper and lower boundaries. Occasionally my lower boundary is zero, which happens to be where the X-axis is graphed. When this happens I'm unable to see the line marker anymore (the x-axis see

  • Encore:  vobulator BlockPlanner error 217

    Hello, I've been building a project in Encore for days and finally went to build a DVD today, and after all the transcoding, when it went to write on the disc, it failed with the following message: internal software error: .\vobulator\BlockPlanner\Bl

  • Stickie's note file information window.  How do I turn them off?

    The Stickies 'note's file information windows' are a nuisance. How do I stop them from appearing? Thanks, Rafael

  • How to insert watermark in pages

    Hi, want to know how to insert watermark like "Confidential" into pages. Thank you.

  • After uploading to FTP, my site does not view properly

    after i have uploaded to FTP i checked my website www.johnandsarahswedding.com and it doesn't view properly. only text and no images etc and no alignment, like the styles weren't exported etc.