This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Dec 18, 2013, 5:16 PM
68 Posts

can a dijit.Tooltip work with a radio group?

  • Category: Dojo and Client Side JavaScript
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 8

I am using dijit.Tooltip code for editable fields, but I'd also like to add popup help functionality to a radio group.  I added a script block next to the radioGroup, but nothing pops up.  Eventually, I want different text to pop up, based on the selection in the radioGroup, but for now, I just want to get it working.  Here's what I have:

<xp:scriptBlock id="scriptBlock1">

<xp:this.value><![CDATA[XSP.addOnLoad(function(){

new dijit.Tooltip({

connectId:["#{id:radioGroup1}"],

label:"text goes here",

position:["above"]});

});]]></xp:this.value></xp:scriptBlock>

Have also tried this (which doesn't work either):

<div dojoType="dijit.Tooltip" connectId="#{id:radioGroup1}" label="This is a radio group field"></div>

Dec 19, 2013, 1:17 AM
298 Posts
*Did you try wrappng the radio group in a panel and linking the tooltip to that?
Dec 19, 2013, 8:40 PM
68 Posts
tried everything

Yes, I put the radio group in a panel, and linked to the panel.  It's already in a Tabbed Panel, and I tried linking to that.

Dec 20, 2013, 3:59 PM
298 Posts
Got it to work with a toolTipDialog
I put the radio button group in a DIV control and used the onMouseOver and onMouseOut events to open the dialog.

See the code below.

Howard

<xp:div
                id="div1"
                style="width:373.0px;height:31.0px">
                <xp:radioGroup id="radioGroup1">
                        <xp:selectItem itemLabel="one"></xp:selectItem>
                        <xp:selectItem itemLabel="two"></xp:selectItem>
                        <xp:selectItem itemLabel="three"></xp:selectItem>
                </xp:radioGroup>
                <xp:eventHandler
                        event="onmouseover"
                        submit="false">
                        <xp:this.script><![CDATA[XSP.openTooltipDialog("#{id:tooltipDialog1}","#{id:radioGroup1}" )]]></xp:this.script>
                </xp:eventHandler>
                <xp:eventHandler
                        event="onmouseout"
                        submit="false">
                        <xp:this.script><![CDATA[XSP.closeTooltipDialog("#{id:tooltipDialog1}")]]></xp:this.script>
                </xp:eventHandler></xp:div>
        <xp:br></xp:br>
        <xp:inputText id="inputText1"></xp:inputText>
        <xp:br></xp:br>
        <xp:br></xp:br>
        <xe:tooltipDialog id="tooltipDialog1">
                <xp:label
                        value="Label in tooltip dialog"
                        id="label2">
                </xp:label></xe:tooltipDialog>

Dec 31, 2013, 2:25 PM
18 Posts
thanks

Thanks Howard, but I still get nothing when I do this.  I see the "Label in tooltip dialog" as static text on the page.

Dec 31, 2013, 3:36 PM
298 Posts
Do you have the extension library?
Not sure what version you have but you will need the Extension Library installed if using 8.5.3 or Domino 9 (which comes with the Ext. Lib).

Howard
Dec 31, 2013, 3:57 PM
18 Posts
thanks again

I'll try to get the Ext Lib installed ... again ... on the server.  I have little control over that in my environment, bu will try again!  I have 8.5.2 currently.

Dec 31, 2013, 3:57 PM
18 Posts
thanks again

I'll try to get the Ext Lib installed ... again ... on the server.  I have little control over that in my environment, bu will try again!  I have 8.5.2 currently.

Dec 31, 2013, 7:05 PM
298 Posts
Move to at least 8.5.3!
Not only do you get the Ext. Library if you move to 8.5.3, you also get a much more stable and performant platform.  No one should be using 8.5.2 for XPages work, either for Designer or the server!  Too much was fixed in 8.5.3!

Howard

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal