Gantt chart: Don't know how to use the tooltipkeys and toolkeylabel

I have a problem. Don't know how to use the tooltipkeys and toolkeylabel. I used jquery to select the gantt bars and on mouse over i was getting the task id "tid" then passing it to adf bean with serverlistener and showing a popup that is adf component with javascript. For positioning of the popup I used a button that has width and height 0 and has position absolute and gets the coordinates of the mouse.
"div[et]" is a jquery selector that selects all the elements that have attribute et. I noticed that all the bars have that attribute as a few other attributes as well "part"...
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
        xmlns:dvt="http://xmlns.oracle.com/dss/adf/faces">
    <af:document title="untitled1.jsf" id="d1">
        <af:resource type="javascript" source="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"/>
        <af:resource type="javascript" source="resources/js/home.js"/>
        <af:messages id="m1"/>
        <af:form id="f1">
           <af:commandButton text="commandButton 1" id="cb1" inlineStyle="visibility:hidden; width:0; height:0" />
            <af:popup id="noteWindow" contentDelivery="lazyUncached" binding="#{homeBean.popup}">
                <af:noteWindow id="popupWindow">
                    <af:panelFormLayout id="pfl2">
                        <af:panelLabelAndMessage label="Task id" id="plam5">
                            <af:outputText value="#{homeBean.taskId1}" id="ot64"/>
                        </af:panelLabelAndMessage>
                        <af:panelLabelAndMessage label="Start Location Name" id="plam6">
                            <af:outputText value="#{homeBean.startLocation}" id="ot7"/>
                        </af:panelLabelAndMessage>
                        <af:panelLabelAndMessage label="Stop Location Name" id="plam7">
                            <af:outputText value="#{homeBean.stopLocation}" id="ot8"/>
                        </af:panelLabelAndMessage>
                        <af:panelLabelAndMessage label="tasktype" id="pla2m7">
                            <af:outputText value="#{homeBean.taskType}" id="ot9"/>
                        </af:panelLabelAndMessage>
                    </af:panelFormLayout>
                </af:noteWindow>
            </af:popup>
            <af:serverListener type="jsServerListener" method="#{homeBean.serverEventHandler}"/>
            <dvt:schedulingGantt id="gantt1" value="#{bindings.PersonView1.schedulingGanttModel}" var="row"
                                 startTime="2011-07-04 00:00:00" endTime="2011-07-04 23:00:00" summary="gsg"
                                 showMenuBar="false" showToolbar="false" iconPlacement="left"
                                 showTasksAsDailyBar="false">
                <f:facet name="major">
                    <dvt:timeAxis scale="days" id="ta1"/>
                </f:facet>
                <f:facet name="minor">
                    <dvt:timeAxis scale="hours" id="ta2"/>
                </f:facet>
                <f:facet name="nodeStamp">
                    <af:column sortProperty="#{bindings.PersonView1.hints.PersonId.name}" sortable="false"
                               headerText="#{bindings.PersonView1.hints.PersonId.label}" id="c1">
                        <af:outputText value="#{row.PersonId}" id="ot1">
                            <af:convertNumber groupingUsed="false"
                                              pattern="#{bindings.PersonView1.hints.PersonId.format}"/>
                        </af:outputText>
                    </af:column>
                </f:facet>
            </dvt:schedulingGantt>            
        </af:form>
    </af:document>
</f:view>javascript:
$(document).ready(bindEvents());
function bindEvents() {
    $("div[et]").live('mouseover', function (e) {
         $('#cb1').css("position", 'absolute');
         $('#cb1').css("top", e.pageY-4);
         $('#cb1').css("left", e.pageX);
        var popup = AdfPage.PAGE.findComponentByAbsoluteId("noteWindow");
        var element = AdfPage.PAGE.findComponent("f1");
        var taskIdToPass = null;
        if ($(this).attr("tid") !=undefined) {
             taskIdToPass = $(this).attr('tid').toString();
        } else {
            taskIdToPass = $(this).parent().attr('tid').toString();
        var param = {            taskId : taskIdToPass        };
        AdfCustomEvent.queue(element, "jsServerListener", param, true);
        if (!popup.isPopupVisible()) {
            var hints = {};
            hints[AdfRichPopup.HINT_LAUNCH_ID] = "cb1";
            hints[AdfRichPopup.HINT_ALIGN_ID] =  "cb1";
            hints[AdfRichPopup.HINT_ALIGN] = AdfRichPopup.ALIGN_AFTER_START;
            popup.show(hints);
    }).live("mouseout", function () {
        var popup = AdfPage.PAGE.findComponentByAbsoluteId("noteWindow");
        popup.hide();
};My bean that is session bean:
package view;
import oracle.adf.model.BindingContext;
import oracle.adf.model.binding.DCDataControl;
import oracle.adf.view.rich.component.rich.RichPopup;
import oracle.adf.view.rich.render.ClientEvent;
import oracle.jbo.ApplicationModule;
import oracle.jbo.Key;
import oracle.jbo.Row;
import oracle.jbo.RowSetIterator;
import oracle.jbo.ViewObject;
public class HomeBean {
    private RichPopup popup;
    private String taskId1;
    private String startLocation;
    private String stopLocation;
    private long taskId;
    private String taskType;
    public HomeBean() {
        super();
    public void serverEventHandler(ClientEvent clientEvent) {    
        String taskIdString = clientEvent.getParameters().get("taskId").toString();
        this.taskId = Long.parseLong(taskIdString);
        DCDataControl dc1 = BindingContext.getCurrent().findDataControl("AppModuleDataControl");
        ApplicationModule am = dc1.getApplicationModule();
        ViewObject vo = am.findViewObject("PdTrfDayView1");  
        RowSetIterator rowSetIterator = vo.createRowSetIterator(null);
        Row[] rows = rowSetIterator.findByKey(new Key(new Object[] {taskId}), 1);
        Row row = rows[0];
       this.taskId1 =  row.getAttribute("PdTrfDayId").toString();
       this.startLocation = row.getAttribute("StartLocation").toString();
       this.stopLocation = row.getAttribute("StopLocation").toString();
       this.taskType = row.getAttribute ("PdTrfTypeId").toString();
        RichPopup.PopupHints ph = new RichPopup.PopupHints();
        vo.closeRowSetIterator();
    public long getTaskId() {
        return taskId;
    public void setPopup(RichPopup popup) {
        this.popup = popup;
    public RichPopup getPopup() {
        return popup;
    public String getTaskId1() {
        return taskId1;
    public String getStartLocation() {
        return startLocation;
    public String getStopLocation() {
        return stopLocation;
    public String getTaskType() {
        return taskType;
}I am wondering If i can use setCurrentRow on the iterator that i create and use it for displaying on the popup instead of binding startLocation and stopLocation to the bean and if there is any benefit of that at all...
Edited by: 897833 on Nov 24, 2011 11:37 AM

Hi,
To use tooltipkeys and tooltiplabel in gantt, you can add following code in managed bean
public String[] getTooltipKeys()
return new String[]{"columnA", "columnB", "StartDate", "EndDate"};
public String[] getTooltipLabels()
return new String[]{"A", "B", "Start Date", "End Date"};
where , the string array in the ToolTipKeys represents the columns, of the table you have in the gantt component , and the string array in TooltipLabels displays the label you want to display for the table columns.
In the jsff, you could call the bean methods as follows:
tooltipKeys="#{GanttBean.tooltipKeys}"
tooltipKeyLabels="#{GanttBean.tooltipLabels}"

Similar Messages

  • Hi fellow apple guys, i have this problem. Hope you can help me. I don't know how to use the function keys (F1 to F12) on my macbook air. Pls help

    Hi fellow apple guys, i have this problem. Hope you can help me. I don't know how to use the function keys (F1 to F12) on my macbook air. Pls help

    Out of the box, to use the function keys as function keys, hold down the fn key when you press the key. Otherwise, you get the picture function on the key. You can reverse this behavior in the Keyboard system prefs.

  • I don't know how to use the canlendars function and the notes are kind of messy code,anyone help me

    i don't know how to use the canlendars function and the notes are kind of messy code,anyone help me

    Step by step:
    1. On your main vi Front Panel, create your boolean indicator.
    2. On the block diagram, right click the new boolean indicator and select Create - Reference.
    3. On sub-vi front panel, create boolean indicator (or use one that is already created).
    4. On sub-vi front panel, create a reference (Controls Palette - Refnum - Control Refnum).
    5. Right click on the newly created Refnum and select Select Vi Server Class - Generic - GObject - Control - Boolean. The refnum label changes to BoolRefnum.
    6. On sub-vi block diagram, create Property Node (Functions - Application Control - Property Node). Find the BoolRefnum and move it close to the new Property Node.
    7. Wire the BoolRefnum to the reference input of the property node.
    8.
    Right click on the property node and select Change to All Write.
    9. Move mouse to point to Visible inside property node box, left click and select Value.
    10. Wire the boolean indicator from step 3 to the Value input of the property node.
    11. On sub-vi front panel, right click on icon and select Show Connector.
    12. Click on empty connector spot then click on the new BoolRefnum. Save your sub-vi.
    13. On main vi block diagram, connect refernece created in step 2 to the new connector terminal of sub-vi.
    14. Save and run.
    Here are the modified vi's.
    - tbob
    Inventor of the WORM Global
    Attachments:
    Pass_a_Reference.vi ‏20 KB
    GL_Flicker_mod.vi ‏83 KB

  • Don't know how to use the air print with my ipads.

    i just bought an mg3222 printer and i don't know how to figure out how to use air print with my ipad and ipad minis. Can anybody help??? Thanks

    Hello.
    In order to use the printer with your iOS devices, please make sure that the units are all connected to the same WI-Fi router.  Once this has been done you should be able to print.
    The initial Wi-Fi setup of the MG3222 would have to be done from a compatible Windows or Mac OSX computer.
    If additional assistance is needed, feel free to call us at 1-800-OKCANON.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Don't know how to use the swing timer

    Hi there,
    I did this stupid game for training purposes: There are 3 buttons, 2 of them are "correct", 1 exits the program and you lost.
    It works so far but when clicking the "wrong" button I thought of changing the frame to red, let the program wait for another second and only then closing the window. But somehow that doesn't work. I understand that I have to use the timer class, but somehow I don't really know how.
    Thanks for helping.
    Modify the program of Exercise 3 so that only one button exits the program. If the user clicks on any of the other two
    buttons, the frame just changes color. The user keeps clicking until the "loosing button" is clicked. The user's goal
    is to click as many times as possible.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.Random;
    public class Kap59A4 extends JFrame implements ActionListener
      JButton button1 ;
      JButton button2 ;
      JButton button3 ;
      JLabel noGames ;
      int gameCounter = 0;
      // constructor
      public Kap59A4(String title)                          
        super( title );
        button1 = new JButton("Button 1");
        button2 = new JButton("Button 2");
        button3 = new JButton("Button 3");
        noGames = new JLabel("Game#:  ");
        // register the Kap59A4 frame as the listener for the button.
        button1.addActionListener( this );
        button2.addActionListener( this );
        button3.addActionListener( this );
        setLayout( new FlowLayout() );
        add( button1 );
        add( button2 );
        add( button3 );
        add( noGames );
        setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );  
      public void actionPerformed( ActionEvent evt)
        Random rand = new Random();
        int number = Math.abs( rand.nextInt() )%3; // number gets a number from 0 to 2
        if (number != 0)
          gameCounter++;
          noGames.setText("Game#: "+ gameCounter);
          getContentPane().setBackground( Color.green );
          repaint();
        else
          getContentPane().setBackground( Color.red );
          new Timer(1000, this).start();
          System.exit(0);
      public static void main ( String[] args )
        Kap59A4 demo  = new Kap59A4( "Click a Button" ) ;
        demo.setSize( 300, 100 );    
        demo.setVisible( true );     
    }

    Rather than pass the Timer constructor this, which would be the JFrame itself, thus resulting in the action handler for the buttons being invoked again, you should probably pass it a whole different ActionListener instance that performs the precise action you want to happen a second later.
    And actually, you should probably do that for all the buttons as well -- give each an inner class implementing ActionListener so you can control the behavior of each button, and don't make the JFrame subclass implement ActionListener. Furthermore, I'd advise against subclassing JFrame.

  • I don't know how to use the WBF(windows biometric framework),who can help me ?

    I need to use the WBF to write a fingerprint guidline,but i don't know to do ,is there anyone who can  help me ?

    I need to use the WBF to write a fingerprint guidline,but i don't know to do
    Start here:
    Windows Biometric Framework API
    http://msdn.microsoft.com/en-us/library/windows/desktop/dd401509%28v=vs.85%29.aspx
    Biometric Devices
    http://msdn.microsoft.com/en-us/library/windows/hardware/ff536448%28v=vs.85%29.aspx
    Designing Windows Biometric Framework fingerprint management applications
    http://msdn.microsoft.com/en-us/library/windows/hardware/dn613904%28v=vs.85%29.aspx
    Also see:
    Windows Desktop Development > Application Security for Windows Desktop
    https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/home?forum=windowssecurity
    "Require fingerprint authentication to retrieve data?"
    https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/667b91ee-820d-4759-902c-4163ed3d2859/require-fingerprint-authentication-to-retrieve-data?forum=windowssecurity
    Windows Desktop Development > Development with the Windows Sensor and Location Platform
    "What conceptually is a sensor?"
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/edd0c260-2dcb-4225-904c-42f355a6e43e/what-conceptually-is-a-sensor?forum=windowssensorandlocationplatform
    - Wayne

  • Bug or I don't know how to use the software?

    I am using shared variables to summarize data to a main report for orders (in the main report) and credit notes (in the subreport) to the main report. I then have a formula that restates the sum of my orders per salesperson, done so that I can use that formula in a chart.
    When I attempt to use that formula in a summary on my chart, it disregards the element of the original formula that was from the subreport (the credits) and only shows the part of the subtotal that relates to the main report.............
    Is there a trick to this?

    Hi,
    Try creating a running total in the subreport.
    Pass it in the main report and then use it in the chart.
    Regards,
    Sumit Kanhe

  • I don't know how to use the property node to get information out of my sub vi while it is working.

    I had a question answered earlier about passing information out of a sub vi, and was helped out. The problem is that I don't understand what is happening as I can not reproduce the results. I am now trying to take results of a comparison (true-false) and pass that back out of my sub vi. I tried a property node and to connect a refnum control to it in the sub vi. Then I tried to connect an indicator to its terminal in the main vi, but was unsuccessful can someone tell me how and why, step by step, to pass this information out. Starting with the point of information in the sub vi to the indicator in the vi. I would appreciate any help that you could give m
    e.
    Attachments:
    Pass_a_Reference.vi ‏15 KB
    GL_Flicker_mod.vi ‏77 KB

    Step by step:
    1. On your main vi Front Panel, create your boolean indicator.
    2. On the block diagram, right click the new boolean indicator and select Create - Reference.
    3. On sub-vi front panel, create boolean indicator (or use one that is already created).
    4. On sub-vi front panel, create a reference (Controls Palette - Refnum - Control Refnum).
    5. Right click on the newly created Refnum and select Select Vi Server Class - Generic - GObject - Control - Boolean. The refnum label changes to BoolRefnum.
    6. On sub-vi block diagram, create Property Node (Functions - Application Control - Property Node). Find the BoolRefnum and move it close to the new Property Node.
    7. Wire the BoolRefnum to the reference input of the property node.
    8.
    Right click on the property node and select Change to All Write.
    9. Move mouse to point to Visible inside property node box, left click and select Value.
    10. Wire the boolean indicator from step 3 to the Value input of the property node.
    11. On sub-vi front panel, right click on icon and select Show Connector.
    12. Click on empty connector spot then click on the new BoolRefnum. Save your sub-vi.
    13. On main vi block diagram, connect refernece created in step 2 to the new connector terminal of sub-vi.
    14. Save and run.
    Here are the modified vi's.
    - tbob
    Inventor of the WORM Global
    Attachments:
    Pass_a_Reference.vi ‏20 KB
    GL_Flicker_mod.vi ‏83 KB

  • I lost my iphone and I don't know how to use the "fined my iphone" app

    Hi, can someone help me how to find my iphone using the app "find my iphone"?

    Hello,
    Do you have connected your iPhone to your iCloud account ?
    If yes, do you have then allowed the localization ?
    If yes, go to www.icloud.com and log in with the same iCloud account you have used on your iPhone and select the "Find my Phone" app.
    Arnaud

  • So when I try to update or download an app it says I don't have enough storage. I don't know how to use iCloud and stuff soo what do I do? Help! I don't wanna delete any pics either.

    So when I try to update or download an app it says I don't have enough storage. I don't know how to use iCloud and stuff soo what do I do? Help! I don't wanna delete any pics either.

    JUst experienced the exact  same problem after changing password.Getting same message. Hope someone has an answer for this.

  • My phone has no more storage but it says i have 5gb on icloud but i don't know how to use them.

    My phone has no more storage but it says i have 5gb on icloud but i don't know how to use them.

    iCloud storage doesn't affect the available storage on your device.  It's for backing up your device and syncing your data, so you can recover the data if needed.
    You probably need to import photos/videos to your computer or another destination (like a photo kiosk & burn CDs), and then delete them from your device.  Or, delete some unused apps from your device.

  • Don't know how to use canvas

    Hello,
    I'm new to J2ME and I got lost with all the information about J2ME on the web.
    I need help in the following thing.
    I want to make a graphical main menu for my midlet, but I don't know how to use CANVAS.
    I'm sure that there is template that I can customize it without writing all the code from the begining, but I can't find it.
    I'll be very happy if somebody can send me a link that contains a sample or template for main menu using CANVAS.
    also, I'll be happy to get a web site that explains all the canvas subject step by step. with examples that I can run.

    Hello.
    In order to use the printer with your iOS devices, please make sure that the units are all connected to the same WI-Fi router.  Once this has been done you should be able to print.
    The initial Wi-Fi setup of the MG3222 would have to be done from a compatible Windows or Mac OSX computer.
    If additional assistance is needed, feel free to call us at 1-800-OKCANON.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Hi, I've checked how to use kannada keyboard in Yosemite. But, there are some 'vattu forms' and other grammar in Kannada language that I don't know how to use it. For eg, Preetiya taatanige nimma muddu mommagalu maduva namaskara? How to write this?

    Hi, I've checked how to use Kannada keyboard in Yosemite. But, there are some 'vattu forms' and other grammar in Kannada language that I don't know how to use it. I know how to change between the keyboards and can also view keyboard. However, For eg, 'Preetiya taatanige nimma muddu mommagalu maduva namaskara' How to write this? If anybody can answer this, very much appreciated.
    Thanks in advance for your reply.

    In general, you need to use the "f" (kannada qwerty keyboard) or "d" key (kannada) between letters to make special forms.  Also you may need to adjust the typography settings of the font, which is done by doing Format > Font > Show Fonts > Gear Wheel > Typography as shown below.  If you can provide screenshots or more detailed info on things you cannot make, I can perhaps help.
    It is important to note that MS Word for Mac does not support Indic scripts -- any other app should work OK.

  • HT201328 I have iphone 4 with virgin mobile canada, virgin provided me SIM unlock code online, but i don't know how to use that code to unlock my phone. Can anyone help me in this?

    I have iphone 4 with virgin mobile canada, virgin provided me SIM unlock code online, but i don't know how to use that code to unlock my phone. Can anyone help me in this?

    That's not how unlocking an iPhone works.
    The carrier the phone is locked to submits a request to Apple, wh updates their database. When that is complete, you restore the phone with iTunes to process the unlock.

  • Hi yesterday i downloaded a software from i tunes for keyboard short cut and i don't know how to use them and install them, how to use keyboard shorts bought from i tunes

    hi yesterday i downloaded a software from i tunes for keyboard short cut and i don't know how to use them and install them, how to use keyboard shorts bought from i tunes

    You can install it on your iOS device (iPad, iPhone, iPod Touch) either by redownloading it directly on the device via the Purchased tab in the App Store app on it, or by connecting the device to your computer's iTunes and syncing it to it.
    Syncing apps from a Mac : iTunes 11 for Mac: Sync and organize iOS apps
    from a PC : iTunes 11 for Windows: Sync and organize iOS apps
    As to how to then use the app, if the description on the app's description page in the store doesn't describe how to use it in enough detail, then is there a link to the developer's website on its description page, and does that have details ?

Maybe you are looking for

  • TS3899 I changed from an Iphone to a Android.  I can't get my email from other Iphones

    I changed from an Iphone to a Android.  Now I can't recieve emails from other Iphones.

  • Samba won't tango

    I have a D-Link 2750 DSL router with a USB port. I'm trying to use it as network attached storage with a 32GB memory stick. My Mac (10.7.5) will mount the disk as guest, I can read files on it, and delete files, and create empty folders, but not writ

  • Sql server 2008 R2 sp2 keeps crashing with ntdll.dll

    Our sql server 2008 r2 on windows 2008 r2 crashes once a day with this error Faulting application name: sqlservr.exe, version: 2009.100.4290.0, time stamp: 0x52007306 Faulting module name: ntdll.dll, version: 6.1.7601.17725, time stamp: 0x4ec4aa8e Ex

  • Insert child record when user commit parent data

    Hi everybody, My use case is an admin users page, where users add new users to application. So they specify user_name, last_name, ..... I'd need to insert in a child record whose FK is user_name which was introduced by user in the parent table, just

  • To Delete a folder in LR

    LR allows you to remove or delete pictures, and you can make a new folder which uses explorer and makes the folder on the hard drive as well as in LR. However, if you decide to delete a folder in LR, it will do so, but the folder is still on the hard