Focal Point
[SHARING] Portal Page Tooltips.

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3787070186

March 04, 2016, 06:46 AM
Neelima
[SHARING] Portal Page Tooltips.
Hi All,

I just want to share the code for displaying tool-tips when user is selecting Particular portal tabs. May be it is not valuable for someone.

//Begin function window_onload
function window_onload() {


UpdateData();
setupTabTooltipsEvents();
// TODO: Add your event handler code here
//add onInitialUpdate() function to make changes before initial run of the reports
}
//End function window_onload

/**
* Creates an event handler to show tab tooltip when certain BIP portal tabs are hover.
*
*/
function setupTabTooltipsEvents(){
// Setup the normal mouseover handler
$(".bi-tool-bar-button", window.parent.document).has(".bip-navigation-button").mouseover(function(){

if($(this).text() == "Page 1")
{
$(this).prop('title', 'Please \n Select Page1');
}
else if($(this).text() == "Page 2")
{
$(this).prop('title', 'Please \n Select Page2');
}
else
{
$(this).prop('title', 'Please \n Select Page3');
}
});
}


////////////////////////////////////////////////////////////////

Thanks,
Neelima

This message has been edited. Last edited by: Neelima,


WebFocus 8104,8204
Excel/PDF/HTML/HTMLTABLE/XML/ALPHA/GIF file/GRAPH/Active technologies
March 04, 2016, 10:02 AM
David Briars
Thank you Neelima.

The tooltip upon hovering over the BIP page titles works AOK for me.

I included this code in a focexec that runs from a panel on the page that runs when the page is rendered.

Is that where you put your code?

I am guessing that I would include this code similarly on all my pages, because I don't necessarily know what page my user will start with.




Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster
March 04, 2016, 11:56 AM
CoolGuy
Thanks Neelima!

Good points David. Where exactly did you stick your Js Neelima? Will work with David's solution for now though. Thanks David for sharing what you did too.


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
March 04, 2016, 12:58 PM
Neelima
Yes David, there is a need to include this JS code in all pages as we don't know through which page, user will start.

I have used this code in my HTML Global filters file.
You have suggested a good point. I could included this code in focexec files also.

Thanks

This message has been edited. Last edited by: Neelima,


WebFocus 8104,8204
Excel/PDF/HTML/HTMLTABLE/XML/ALPHA/GIF file/GRAPH/Active technologies
March 04, 2016, 03:47 PM
CoolGuy
Thanks for the update Neelima!


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
March 06, 2016, 10:28 AM
Neelima
Smiler


WebFocus 8104,8204
Excel/PDF/HTML/HTMLTABLE/XML/ALPHA/GIF file/GRAPH/Active technologies
March 06, 2016, 03:52 PM
Waz
Nice,

I may recommend this be implemented here.

Not sure about how it will work for iPads though


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

March 06, 2016, 11:58 PM
Neelima
I Supposed That will also work in iPads.


WebFocus 8104,8204
Excel/PDF/HTML/HTMLTABLE/XML/ALPHA/GIF file/GRAPH/Active technologies