Event handling in Gantt chart Webdynpro Java

Hi
I have a Gantt chart where I have names(name1,name2..) in category(Y) axis.
Now I want to fire an event when I click name1 or name2 .. on the Gantt chart
where I will take name1 as parameter.Any idea with code will highly be appreciated and rewarded.
Regards
Sunit

Hi,
  1. Create an action, say, "ChartClicked" with a parameter, say, "pointID" of type String. Set this as the action on the "onClick" event of the BusinessGraphics.
  2. In the wdDoModifyView method, write this code:
if (firstTime)
  IWDBusinessGraphics chart = (IWDBusinessGraphics) view.getElement("<ID of BusinessGraphics>");
  chart.mappingOfOnAction().addSourceMapping("id", "pointID");
  3. In the eventhandler method, "onActionChartClicked", you'll see a String parameter called pointID. Depeneding on where you click on the graphics, this will change.
Regards,
Satyajit.

Similar Messages

  • Event handling on a chart or a region

    Hi All,
    Is it possible to do event handling on a chart or on a region ? For instance I plotted a 2d chart if i click on any part of the chart i need to display some table. Is this event handling possible ?Do I need to write some code in java script ? Any pointers to this will be of great help
    Thanks in Advance

    Hello,
    You can write js or use standard apex functionality.
    Check this: http://tryapexnow.com/apex/f?p=2277:5
    there is IR below first chart. You click, and the value of item P5_MONTH is populated, report below hows the corresponding month.
    But you need to make it more sophisticated.
    So basically using Apex url already gives lots
    Change NULL to be a link to page 5 setting item P5_MONTH (sorry can not copy paste the whole query here, I get Sorry, content is not allowed)
    IR SQl query:
    select o.*
    from demo_product_info p, demo_order_items oi, demo_orders o
    where oi.product_id = p.product_id
    and o.order_id = oi.order_id
    and to_char(o.order_timestamp, 'RRRR MM') = :P5_MONTH

  • How to create Gantt Chart by Java? which package n class include it?

    may i know how to craete Gantt Chart or any other chart using Java programming?? which package n class enable me to do so..?? i try 2 find on API but fail lo
    thanks

    http://www.egantt.com/

  • Oracle Project - Gantt Chart probem java.lang.NoClassDefFoundError

    Hi all,
    I have and apps11i instance (11.5.10.2) in OEL 5 x86 and DB 10g R2
    Patch set level is as per Software Updates for +Oracle Projects Rollup Patch 4 for Oracle Projects Family Pack M (11i.PJ_PF.M)[Article ID 423428.1+
    When radio button Gantt chart view is selected in Workplan tab the following error is shown
    *JSP Error:*
    *Request URI:/OA_HTML/OA.jsp*
    *Exception:*
    *java.lang.NoClassDefFoundError*
    Any help is highly appriciated
    Thanks in advance and regards,
    Soni                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Soni wrote:
    Hi all,
    I have and apps11i instance (11.5.10.2) in OEL 5 x86 and DB 10g R2
    Patch set level is as per Software Updates for +Oracle Projects Rollup Patch 4 for Oracle Projects Family Pack M (11i.PJ_PF.M)[Article ID 423428.1+
    When radio button Gantt chart view is selected in Workplan tab the following error is shown
    *JSP Error:*
    *Request URI:/OA_HTML/OA.jsp*
    *Exception:*
    *java.lang.NoClassDefFoundError*
    Any help is highly appriciated
    Thanks in advance and regards,
    Soni
    Please see (Receive Error When Attempting To Open A Work Plan Gantt Chart View [ID 306413.1).Thanks,
    Hussein

  • Problems with BusinessGraphics Gantt Chart: WebDynpro 7.1 SP3

    Hi,
    i tried the BusinessGraphics Gantt Chart and went through the Code Example for Displaying a Gantt Chart on:
    http://help.sap.com/saphelp_nw04/helpdata/en/a8/1cd93f5e0f9015e10000000a155106/content.htm
    Unfortunately my gantt does not look and behave like it should:
    1)  The bars are only small sqares in the middle of one day. I use the same data as in the sample, so the bars should be a couple of days long
    2) I added an action, added an EventID to the series and to the point, mapped the parameters. When clicking a point a roundtrip is done. I write a success message with the eventID but often the Gantt Picture is a broken image after this (small red cross).
    3) The tooltip of the point is not shown in the chart when pointing on the square
    Can anybody help, please?
    Thanks
    Frank

    Thanks a lot! This solved one of three problems. The trick is that you can set the marker for the points (without any effect) and for the series (with effect).
    The tooltip shows up now, too. No idea why now and not before...

  • Handling Session Object in WebDynpro Java

    *After Validation in WebDynpro Component, if the user is not authorized to access the page, i want to close the session of that Particular login user and sent back to the login page (home page)*
    i don't want to close the window
    come out of the application to the login page
    In Java, i can get session object by request.getSession(true);
    in webDynpro how can i get the Session Object.
    Thanks
    NSM

    Hi,
    try to use the following method
    WDClientUser user;
          user.forceLoggedInClientUser()
    Regards
    Ayyapparaj

  • Gantt Chart in Webdynpro Java

    Hi All,
    I want to display the Gantt Chart in my Application.
    I am using following as a reference:
    [http://help.sap.com/saphelp_nw04/helpdata/en/c6/af11b1423a3c4fb642e357912936e4/frameset.htm]
    But i am unable to get the Bars in my Chart. I am just getting the Points only for start date and End Date.
    So pls help me out.
    Thanks & Regards,
    Dhruv Shah

    Hi Stefanie,
    I already have this project. But when i am importing this project in to my NWDS. Not a single View is opening. Its giving me lot of errors.
    I dont know how i will manage...i am really stucked up.
    Thanks for reply...

  • 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

  • Call to pl/sql from java event-handler

    How can I call pl/sql procedure or function from java-script event handler
    Thanks,
    Anna

    Anna,
    You cannot call any arbitrary PLSQL code from the forms, only "standard"/custom event handlers can be called through do_event Javascript fuction, syntax :
    do_event(this.form,this.name,1,'ON_CLICK,'');
    where:
    1 - button intstance, if you have more than one instance of the same button on the screen this should be 2,3,4.....
    'ON_CLICK' - is the predefined event type
    '' - the last argument is any user defined string which will passed down to the PLSQL event handler.
    Thanks,
    Dmitry
    null

  • Event Handling with Java API.: Adding to a hierarchy table throws 2events

    I´m having some problems with the event handling. I´ve registered a Class with extends AbstractDataListener as EventListener. When there are changes in the product hierarchy table, some extra work should be done. However if i add a new record into the hierarchy, two events are fired.
    DEBUG DataEventListener.java:123 - Added:Development;PRODUCT_HIERARCHY;R17;Getra?nke, SEW
    DEBUG DataEventListener.java:123 - Added:Development;PRODUCT_HIERARCHY;R17;32 Zoll, B&R
    DEBUG DataEventListener.java:123 - Added:Development;PRODUCT_HIERARCHY;R18;56 Zoll, Lenze
    DEBUG DataEventListener.java:123 - Added:Development;PRODUCT_HIERARCHY;R18;20 Zoll, allgemein
    In this case, i added the records "32 Zoll, B&R" and then "20 Zoll, allgemein". As you can see in both cases two events are fired and the first event seems to come with wrong data. The reported id for the newly created record is R17. For the logging, i did lookup the entry in the hierarchy table by id and use the displayvalue of the record. But the first event always shows the displayvalue from some already existing entry.
    How can i avoid duplicate events or if this is not possible, how i can recognize that the display value of the first event is not valid.

    I have not tetsted it yet, because I'm waiting for my server to be updated, but SAP told me that the API version 5.5.42.67 should fix the problem.
    Thanks for your post.

  • Java Event Handling in JSP Pages

    Dear All:
    This is what I wanna do. when user enters text in my <input type="text" ... > in my JSP page, I want to take this user entered data and convert it in another language simultaneously as the user is inputting text in another textarea.
    Right now the only choice I have is onChange="convert()" Javascript function.
    But I dont want to use Javascript as I already have a Java class which does that for the Swing GUI client.
    Is their a way i can embed java for event handling in jsp.
    thanks,
    Chetan

    only if you use an applet, javascript, etc.
    remember, jsp is server-side, not client-side
    what the client sees is html or whatever (i.e. static content)

  • *ACTUAL* event handling mechanism in java

    Hi there! Could someone please help me find resources that explain how EXACTLY the event handling mechanism works in java?
    My searches on google and java.sun take me to pages that explain how to code or something close to that. But what I actually want to know is how is all this handled BY Java- how does the event source or VM know how/when to fire and event? how the event is fired? how do objects keep track of the listener objects?...and all the background stuff like that.
    I've downloaded the Java source code, too. But it seems like an ocean to me to wade through. Would be a great help if someone could 'point out the right path'.
    Thank you very much!

    Hi there! Could someone please help me find
    resources that explain how EXACTLY the event
    handling mechanism works in java?My counter question is why do you care how EXACTLY the mechanism works? It works, and that's all most people need to know.
    How it works is an implementation issue, likely to change from release to release, or as more efficient mechanisms are discovered.
    But what I actually want to know is how is all this
    handled BY Java- how does the event source or VM
    know how/when to fire and event?Native peers attached to a component (AWT) or the frame (Swing) notify Java that an event has occurred in some way. (This will likely change somewhat from platform to platform)
    An AWTEvent is created to represent the native event (Swing requiring more overhead to locate the source of the event) which is added to the EventQueue.
    how the event is fired? how do objects keep track of
    the listener objects?...and all the background stuff like
    that.The above is done on a native thread - not the event thread. The event thread is sitting in the event queue waiting for an event to come along. It processes events in the queue and sends them to the object which "generated" them. This object informs each of its listeners in turn about the event.
    Objects keep track of listeners however they want. AWT objects seem to use java.awt.AWTEventMulticaster. Swing objects seem to use an javax.swing.event.EventListenerList. I tend to use multiple ArrayLists.
    Note that native events are sent through the EventQueue because they originate from non-event-thread threads. Often when specialising events, in particular sending custom events in response to, say, a button press, the event firing will be done in-place, since it is already in the event thread. Custom events that originate from outside the event thread are customarily added to the EventQueue with EventQueue.invokeLater or invokeAndWait.
    This is from inspection of the Java 1.3 source (specifically java.awt.Button and javax.swing.JComponent) and knowledge of the APIs.

  • Java 1 vs. Java 2 Event Handling

    Prelude: This question relates to writing code for event handling.
    Java 1 is based on a hierarchy model to handle events, ie. inheritance from superclasses. Java 2 uses delagation event handling method. Java 2 code will not compile if it includes Java 1 code still modeled according to Java 1 event handling.
    Question:
    Is it generally easier to start completely over in trying to convert Java 1 code into Java 2 code by not retaining any Java 1 code and begin reconceptualizing what is needed for a conversion to Java 2?

    From what I understand java2 should support both models, however not both at the same time, you cant mix the modles...
    I also think that the older models methods or at least most have been depreciated, meaning that the old model will, if it hasnt allready in the latest release, dissapear.. For that single reason I would recommend updating the event model to the delegation model if you hope to keep it around and running for years to come. You gain a bit by doing this since the newer model is much faster!!!

  • Difference in event handling between Java and Java API

    could anyone list the differences between Java and java-API in event handling??
    thanks,
    cheers,
    Hiru

    the event handling mechanisms in java language
    features and API (java Application Programming
    Features)features .no library can work without a
    language and no language has event handling built in.
    I am trying to compare and contrast the event
    handling mechanisms in the language and library
    combinations such as java/ java API.
    all contributions are welcome!
    thanks
    cheersSorry, I'm still not getting it. I know what Java is, and I know what I think of when I hear API. (Application Programming Interface.) The API is the aggregation of all the classes and methods you can call in Java. If we agree on that, then the event handling mechanisms in Java and its API are one and the same.
    So what do you want to know?
    %

  • Webdynpro Java Portal Eventing

    Hi All,
    From my VC application, i want to pass 1 parameter value to webdynpro iview field. From the "signal out" of my vc iview, i have taken the "EPCM event", and "name". and have mentioned in webdynpro Java iview.
    public void wdDoInit()
        //@@begin wdDoInit()
        WDPortalEventing.subscribe("urn:com.sap.vc:epcm", "Filter1",
       wdThis.wdGetReactPortalEventingAction() );
        //@@end
    public void onActionReactPortalEventing(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String dataObject )
         wdContext.currentContextElement().setName(dataObject);
        //@@end
    How can i make the webdynpro iview take up the parameter from VC iview? Can anyone please help me out in solving this issue?
    Regards,
    Divya

    answered

Maybe you are looking for

  • Error while deploying process flow

    hi All, i am getting below error while deploying 1 process flow. Description : Runtime User : OWBPC Started : 2011-06-02 19:18:06.0 Name Action Status Log None Error ORA-00942: table or view does not exist None Error RPE-02053: The Oracle Workflow ve

  • How to set the size of the screen in module pool.

    how to edit  the actual size of the screen in module pool  programing.

  • Integrate Forms and Reports for Developer Suite 10g

    Hi all, One of my client is moving to Developer Suite 10g R2. Currently he is using Version 6i. I've converted the forms into 10g. Only one problem being faced by me is Reports. Our form which used to call the reports was using Run_Product. Now, I've

  • Illustrator Actions (Unlock All Layers) not persistent

    Hi all I hope this is the right section to post this. But like the title says I have problems with Actions and the Unlock All Layers. As soon we shut down Illustrator and start it up again this part is gone. Reloading the saved Action will solve the

  • Extremely poor bandwidth and instable connection on Mac Pro to Airport WLAN

    Hi folks! Following Problem: My Mac Pro delivers terrible WLAN performance while my wifes iBook runs the WLAN absolutely stable and up to 5 times faster!! Been experimenting a lot, but nothing worked so far. It seems with every "update" in the recent