Dynamic tooltips

Suppose I have a onload page computation to populate a hidden page item.
:P1_HIDDEN := 'One:Two:Three';I would like to split the string on the colon and attach specific parts to the title= attribute of other items (i.e. tooltips).
How can I do this?
Thanks

Thanks, but that won't quite do it.
I figured this out at
http://htmldb.oracle.com/pls/otn/f?p=24317:142
Used the handy dandy builtin toolTip_enable function
Put the following in the region footer
<script type="text/javascript">
var Tips=html_GetElement('P142_TEXT').value.split(":");
</script>Put the following in the Table Cell attributes for the radiogroup and checkbox
onmouseover="toolTip_enable(event,this,Tips[0])"[Of course, changing the subscript as appropriate]
Works very nicely.
Thanks, Carl!

Similar Messages

  • Dynamic tooltip for a link

    Hi,
    I have a requirement to display a dynamic tooltip when the cursor is placed on a cell of a table. The cell contains a link.
    Is it possible in OA framework?
    How can we achieve this?
    Divya.

    Divya,
    This error is coming because you must be using classic table.So, you ar typecasting Column bean with the item of your classic table which is wrong. The code i have given you was in refrence to advanced table.
    Anyways, confirm these three things:
    1)Self Service Accessibility Features profile value is set to "Standard Accessibility"
    2)Code in process request:
    OATableBean tableBean =
    (OATableBean)webBean.findChildRecursive("ResourceTB");
    /*Here instead of OAColumnBean use the type of bean your item is , eg if item is messagetextinput use :
    OAMessageTextInputBean c1 = (OAMessageTextInputBean)tableBean.findChildRecursive("Monday1");*/
    OAColumnBean c1 = (OAColumnBean)tableBean.findChildRecursive("Monday1");
    /*In second attribute you only have to mention vo attr name and not the vo name also.So the next line should be OADataBoundValueViewObject tip = new OADataBoundValueViewObject(c1, "Monday1Task");
    OADataBoundValueViewObject tip = new OADataBoundValueViewObject(c1, "ResourceMainVO1.Monday1Task");
    c1.setAttributeValue(oracle.cabo.ui.UIConstants.SHORT_DESC_ATTR, tip);
    3)This is known bug in OAF that tooltip text does not appear in some components,eg OAMessageChoice is one such component.So u need to test.It was fine in messagetextinput for me.
    I hope i am clear.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Dynamic Tooltip

    I want to have a dynamic tooltip
    I am using Oracle10g, and I get the following error
    FRM-40105: Unable to resolve reference to item
    while storing the value vEmpCode
    PRE-TEXT-ITEM TRIGGER
    DECLARE
         cCurItem VARCHAR2(60);
         cCurName VARCHAR2(50);
         vEmpCode VARCHAR2(12);
    BEGIN
    cCurItem := :System.Cursor_Item;
    vEmpCode := get_item_property(cCurItem,database_value); /*FRM-40105: Unable to resolve reference to item */
    select emp_name into cCurName from hr_emp where emp_code=vEmpCode;
    -- select emp_name into cCurName from hr_emp where emp_code='001'; /*this works */
    If cCurItem is not null then
    set_item_property(cCurItem,tooltip_text,cCurName);
    End If;
    End;
    Please help! how can i achieve this

    I think Francois meant
    PRE-TEXT-ITEM TRIGGER
    DECLARE
    cCurItem VARCHAR2(60);
    cCurName VARCHAR2(50);
    vEmpCode VARCHAR2(12);
    BEGIN
    cCurItem := :System.TRIGGER_Item;
    vEmpCode := get_item_property(cCurItem,database_value); /*FRM-40105: Unable to resolve reference to item */
    /* the database value of cCurItem is 01-004 varchar2, it returns a value */
    get_item_property(cCurItem,database_value);
    If only i could assign it to vEmpCode then my select statement will work
    select emp_name into cCurName from hr_emp where emp_code=vEmpCode;
    -- select emp_name into cCurName from hr_emp where emp_code='001'; /*this works */
    If cCurItem is not null then
    set_item_property(cCurItem,tooltip_text,cCurName);
    End If;
    End;
    Apologies if I have misrepresented you Francois

  • "double clutch" dynamic tooltip

    i have an itemRenderer (code below) that sets a dynamic tooltip, works as expected except once the tooltip is set to a new value, the user needs to mouseover the item twice to see the new data. the user mouseover the tooltip, old data is still shown, they mouseover a second time before they see the new data.
    any ideas?
    thanks.
    <?xml version="1.0" encoding="utf-8"?>
    <s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/mx"
    autoDrawBackground="true" fontFamily="arial" fontSize="11"
    toolTip="Double click to select contacts from your address book."
    toolTipCreate="customToolTip(event);">
    <fx:Script>
    <![CDATA[
    import mx.events.ToolTipEvent;
    [Bindable] private var contactGroupTxt:String
    override public function set data(value:Object) : void {
    super.data = value;
    if (data.selectedCount > 0)
    contactGroupTxt=data.groupName+" ("+data.groupCount+" contacts) (" +data.selectedCount+" selected)";
    else
    contactGroupTxt=data.groupName+" ("+data.groupCount+" contacts)";
    private function customToolTip(event:ToolTipEvent): void {
    if (data.selectedCount > 0 && data.groupID !=-1)
    event.currentTarget.toolTip="Selected:\n"+data.selectedList;
    else
    event.currentTarget.toolTip="Double click to select contacts from your address book.";
    event.currentTarget.validateNow();
    ]]>
    </fx:Script>
    <s:Label height="20" paddingTop="5" text="{contactGroupTxt}"/>
    </s:ItemRenderer>

    I think Francois meant
    PRE-TEXT-ITEM TRIGGER
    DECLARE
    cCurItem VARCHAR2(60);
    cCurName VARCHAR2(50);
    vEmpCode VARCHAR2(12);
    BEGIN
    cCurItem := :System.TRIGGER_Item;
    vEmpCode := get_item_property(cCurItem,database_value); /*FRM-40105: Unable to resolve reference to item */
    /* the database value of cCurItem is 01-004 varchar2, it returns a value */
    get_item_property(cCurItem,database_value);
    If only i could assign it to vEmpCode then my select statement will work
    select emp_name into cCurName from hr_emp where emp_code=vEmpCode;
    -- select emp_name into cCurName from hr_emp where emp_code='001'; /*this works */
    If cCurItem is not null then
    set_item_property(cCurItem,tooltip_text,cCurName);
    End If;
    End;
    Apologies if I have misrepresented you Francois

  • Dynamic Tooltip Text over Business Graphics

    Hello,
    I would like to know if there is a possibility to display dynamically point coordinates (or other tooltip text) in a Business Graphics when the mouse is going over the gragh or when clicking ?
    Thanks a lot
    Marc

    Hello Marc,
    WebDynpro Point, Series and SimpleSeries elements have a tooltip property that you can define whether in design time or runtime.
    Please see the details here http://help.sap.com/saphelp_nw04/helpdata/en/dd/65d79bb3b2e34e8b68f59129e7d811/frameset.htm
    Best regards,
    Dmitry

  • Adding dynamic tooltips

    Hello,
    I need to show dynamic values in tooltip.
    i.e. i got a list of values from database and in jsp on hover of a text i need to show all those values.
    Can someone help me in this matter

    Use the title attribute which is supported by almost every HTML tag.
    Basically:<span title="foo">bar</span>With JSP EL do:<span title="${myBundle.barTitle}">bar</span>For images, use the alt attribute.

  • Dynamic tooltips for charts (BusinessGraphics) with simple series

    Hello,
    I was wondering wheter the tooltip for charts with simple series can set dynamically. I cannot bind it to the context within the properties of the BusinessGraphics control but maybe it can be set in the code?
    This way I want to show the value of the column for instance as tooltip in a chart, or is there a better solution?
    thx,
    jeroen

    I got it!
    This thread helped me.
    [http://forums.sdn.sap.com/thread.jspa?threadID=1343796|http://forums.sdn.sap.com/thread.jspa?threadID=1343796]

  • Dynamic tooltips on alv column

    I am displaying one alv column as the traffic lights icon.
    Depending on whether it is red, yellow or green, i want to have a different tooltip for this column.
    is this possible? if yes then can someone please tell me how to do it?
    regards,
    Priyank

    Well Sascha,
    Thanks for the response but i have a slight change in requirement now. The tooltip content will have to be fetched from the backend (database level) now through the function module which is returning the data to be displayed in the ALV. Thus, the option that seems available now is to get the tooltip content in another column in the alv, keep this column hidden and use the content of this column as the tooltip for the traffic lights column.
    Any direct way of doing this?
    By the way i tried using the following code in the domodifyview method to see if it works....did not work for me....let me know what wrong i might have been doing.
      DATA: l_ref_cmp_usage TYPE REF TO if_wd_component_usage,
            l_ref_interfacecontroller TYPE REF TO iwci_salv_wd_table,
            l_value TYPE REF TO cl_salv_wd_config_table.
      l_ref_cmp_usage =   wd_this->wd_cpuse_alv( ).
      IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
        l_ref_cmp_usage->create_component( ).
      ENDIF.
      l_ref_interfacecontroller =   wd_this->wd_cpifc_alv( ).
      l_value = l_ref_interfacecontroller->get_model( ).
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings,
             lr_column TYPE REF TO cl_salv_wd_column.
      lr_column_settings ?= l_value.
      DATA:
        lt_columns TYPE salv_wd_t_column_ref.
      lt_columns = lr_column_settings->get_columns( ).
      DATA:
          ls_column TYPE salv_wd_s_column_ref.
      LOOP AT lt_columns INTO ls_column.
        DATA: lr_cv TYPE REF TO cl_salv_wd_cv_standard.
        CREATE OBJECT lr_cv.
        lr_cv->set_key( 'ICON_GREEN_LIGHT' ).
        DATA: lr_textview TYPE REF TO cl_salv_wd_uie_text_view.
        CREATE OBJECT lr_textview.
        lr_textview->set_text_fieldname( ls_column-id ).
    lr_textview->set_tooltip( 'TOOLTIP FOR GREENLIGHT' ).
        lr_cv->set_editor( lr_textview ).
        ls_column-r_column->add_cell_variant( r_cell_variant = lr_cv ).
        ls_column-r_column->set_sel_cell_variant_fieldname( 'EXPIRYSTATUS' ).
        CASE ls_column-id.
          WHEN 'EXPIRYSTATUS'.
        ENDCASE.
      ENDLOOP.

  • Dynamic ToolTips for DropDownByIndex

    Hi experts,
    how can I show different tooltips for every entry in a dropdown list when I go over with my mouse?
    e.g.
    Entries in drop down list:       ToolTip:
    entry 1                                    ToolTip 1
    entry 2                                    ToolTip 2
    entry 3                                    ToolTip 3
    Thanks in advance

    Hi
    >If the ToolTip is not too long maybe you can add the text into the Text property of the DropDownByIndex. I would do something like:
    >Entry 1 (ToolTip 1)
    >Entry 2 (ToolTip 2)
    +1
    If DropDown operates with 'key/display text' pairs. It seems the display texts in your DD is rather technical so you thought of the tooltips. Try to make the texts more user friendly and you will not need the tooltips at all.
    If you still wants to show the technical keys, I'd also suggest to use InputField with EVS. It behaves like DD, but shows technical key in a field and shows key/text pairs in a popup.
    BR, Siarhei

  • How to achieve the static and dynamic tooltip

    I am using jsf 2.0
    I need to achieve the static and dynamic tool tip.
    can u plz provide me the solution

    No we dont have both RichFaces and tomahawk
    Edited by: 814412 on 23-Nov-2010 20:55

  • Showing dynamic text on tool tip

    Hi Gurus,
    I have the following requirements :
    In our system we have to show the Hijri dates for the corresponding Gregorian Date in Standard Oralce Self Service Forms on Mouse Over of that text as tool tip or by some other means.
    Can anyone suggest solution for this.
    In custom table we have stored Hirji and corresponding Gregorian dates.
    I can create a view object which can query the Hijri date from the database for the Gregorian date.
    Problem is how to display this Hijri date as Tool tip .
    Thanks
    Suresh

    import oracle.apps.fnd.framework.webui.OADataBoundValueViewObject;
    //Code to display Dynamic ToolTip on Column
    OAAdvancedTableBean TableBean=(OAAdvancedTableBean)webBean.findChildRecursive("TableName");
    TableBean.prepareForRendering(pageContext);
    OAMessageStyledTextBean ItemName=(OAMessageStyledTextBean)TableBean.findChildRecursive("ItemId);
    OADataBoundValueViewObject ExpTip = new OADataBoundValueViewObject(ItemName, "VoAttribute");
    ExpType.setAttributeValue(oracle.cabo.ui.UIConstants.SHORT_DESC_ATTR, ExpTip);
    Thanks
    Babu

  • Make a tooltip scroll with the component?

    Hi,
    I have a Canvas with many input fields so that Canvas is scrolling vertically. i have a default flex validation tooltips for the input fields, when i'm scrolling the canvas Tooltips are not scrolling.
    Is there any solution in Flex 3 for this problem?
    Thanks in advance,
    Sreedhar

    From you current code, your tooltip message is same for all the textinput. so but obviously , it will show you the same tooltip which
    indicates statitionary tooltip...
    Solution is created dynamic tooltip for each textbox for example
    message = "I have a tooltip!" + TextInput(e.currentTarget).id ;
    I mean to say any dynamic text which keep on changing with different textbox.
    Hope you got my point!!!

  • Dynamic Table Two lines per data item

    Hi experts!!
    In my form i have a table with two lines per data item for example the table i want the table to be:
    boldheader rowbold
    bold1,1 1,2bold
    bold1,3 1,4bold
    I have also wrapped the table in a subform, and marked the checkbox "Repeat Row for each data item".
    Instead i get :
    1,1 1,2
    2,1 2,2
    1,3 1,4
    2,3 2,4
    How can i display two rows per item ???
    Thank you in advance!!!

    If there are two lines in a single row for a table (I.e if there are 14 columns, How to be adjusted).
    There are two possible ways of doing.
    1) a) Create a SubForm
        b) Create a Table (If you create a table there will be Header Row and Body Row)
        c) Delete the Body Row and instead of it create a SubForm with name Body Row
        d) Now you have one Header Row and SubForm as BodyRow.
        e) SubForm BodyRow again create two SubForms with names Row1, Row2.
        f) Now make the SubFormBodyRow as Flow layout and repeat the SubForm(Since if you make this then the child nodes (Row1 & Row2) will inherit the properties of the parent node (SubForm-BodyRow).
       g) Now you can have two rows in one lineitem.
    2) The second possible way is showing it in a Dynamic ToolTip.
        Lets say you have a table inside a table then you can show it in a Dynamic ToolTip when you place the cursor in a Student Id you will get Student Data.
    Hope it solves.

  • Status bar in oa framework

    hi mukul,
    my requirement is to show some info in the status bar which i get it from the database. this should be done onmouseover of each row in a table in page.
    i know that it can be done using javascript like
    window.status = 'some text';
    but can it be done in java? or even i do it in javascript how can i pass the value from the query to the javascript .
    please some one help on this regard. i will be greatfull
    prabhakaran.p
    Message was edited by:
    user630121
    Message was edited by:
    user630121

    prabhakaran.p,
    As you need to show some information on mouse over on row in tbale based om db, u can show dynamic tooltip using databound values api., Refer the thread:
    Dynamic tooltip for a link
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Javascript error of $x undefined

    while implementing ajax for dynamic tooltip i got an error of undefined $x. i wanted to know can i use $x in htmldb 2.0? and what causes this error in my javascript as it was on called
    Please help...

    Hi,
    Thanks for the reply....
    I'm using the following code can you please let me know what changes should i make to this code to implement it in htmldb 2.0.
    <script type="text/javascript">
    function ajax_help(pThis,pId){  
    this.dTimeout;
    clearTimeout(this.dTimeout);
    this.dGet = dGet;
    this.dShow = dShow;
    this.dCancel = dCancel;
    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=Ajax_Description',0);
    this.dGet();
    return;
    function dGet(){  
    this.dTimeout = setTimeout("this.dCancel()",5000);
    get.add('LINK_ID',pId);
    get.add('TEMPORARY_PAGE_ID',$x('pFlowStepId').value);
    get.GetAsync(dShow);
    alert(pId);
    function dShow(){  
    $x_Hide('rollover');
    if(p.readyState == 1){  
    }else if(p.readyState == 2){  
    }else if(p.readyState == 3){  
    }else if(p.readyState == 4){  
    $x('rollover_content').innerHTML = p.responseText;
    $x_Show('rollover');
    htmldb_IE_Select_Item_Fix($x('rollover'));
    $x_Style('rollover','left',findPosX(pThis)+pThis.offsetWidth+5);
    $x_Style('rollover','top',findPosY(pThis)-($x('rollover').offsetHeight/2)+($x(pThis).offsetHeight/2));
    document.onclick = function(e){  
    dCheckClick(e);
    }else{return false;}
    function dCheckClick(e){  
    var elem = html_GetTarget(e);
    try{  
    var lTable = $x_UpTill(elem,"DIV");
    if(lTable.id!='rollover_content'){dCancel();}
    else{}
    }catch(err){dCancel();}
    function dCancel(){  
    $x_Hide('rollover');
    document.onclick = null;
    get = null;
    function dcancel(){  
    $x_Hide('rollover');
    document.onclick = null;
    get = null;
    </script>
    This code is in apex 3.1 version. I wanted to implement this code in htmldb 2.0 so what changes should i make??
    Please help...

Maybe you are looking for

  • Photo Downloader does not detect Thunderbolt connection. Help!

    I am using Bridge CS5.1 on MacBook OSX 10.8.3. I bought a Seagate Thunderbolt Adapter which works with 2.5" eSATA hard drives (Seagate Backup Plus). Instead of connecting a 2.5" eSATA to this Thunderbolt Adapter to my Mac, I am doubling this thunderb

  • Pre won´t charge on regular outles, only on the car charger or with the USB to the computer

    I went away this weekend and was not able to charge my pre, none of the hotel outlets worked, it was very frustrating. i get home and it doesn´t work either, only when I connect it to my mac. How do i fix this? help! Post relates to: Pre p100eww (Spr

  • Can I control download time on software update?

    Hi,  just updated to 7.1.  I keep my ipad plugged in,  sleep mode.  Got a notification asking if I wanted to install 7.1 update.  I thought it was suppose to ask if I wanted to download first.  It evidently had already downloaded.  Can I control when

  • I cant print out Chinese Characters

    My ibook won't print out Chinese characters at my local 711 here in Taipei? (A Chinese speaking city, needless to say). Its not an issue of Traditional versus Simplified characters and the files are downloaded language transcripts from a learning sit

  • Add to portal  favorites Label

    Hello Gurus, I want to change the label " Add to portal Favorites" to some other name. Can any one suggest me the way to do the same. Thanks,