Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] ToggLe HTML link visibility

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] ToggLe HTML link visibility
 Login/Join
 
Gold member
posted
I have a link on an HTML page that I need to toggle visibility on based on the user's login credentials. I need it to be visible to certain folks while hiding it from others.

Is there a way to do this without javascript?

Thanks!

This message has been edited. Last edited by: Kathleen Butler,



WebFOCUS 8.1.05
Windows, All Outputs
 
Posts: 67 | Registered: May 21, 2014Report This Post
Virtuoso
posted Hide Post
What version of WebFOCUS?


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Gold member
posted Hide Post
8.1.05



WebFOCUS 8.1.05
Windows, All Outputs
 
Posts: 67 | Registered: May 21, 2014Report This Post
Master
posted Hide Post
Deej,

There is no way to do this without javascript. IBI does provide functions for you to use to hide elements:

Syntax: How to Show or Hide an HTML Element

IbComposer_showHtmlElement('elementID', bShow);

Example: Hiding or Showing a Check Box
function checkbox1_onclick(ctrl){
   var curValue = IbComposer_isSelected('checkbox1');
   IbComposer_showHtmlElement('form1', curValue);
}

  or 
Syntax: How to Enable or Disable an HTML Element
IbComposer_enableHtmlElement('elementID', bEnable);

Example: Enabling or Disabling Elements
function checkbox2_onclick(ctrl){
   IbComposer_enableHtmlElement('listbox1', IbComposer_isSelected('checkbox2', 'country'));
   IbComposer_enableHtmlElement('combobox1', IbComposer_isSelected('checkbox2', 'car'));
   IbComposer_enableHtmlElement('listbox2', IbComposer_isSelected('checkbox2', 'model'));
   IbComposer_enableHtmlElement('combobox2', IbComposer_isSelected('checkbox2', 'dcost'));
}



You will have to identify the users group through a small procedure. It would be best to identify the persons group and allow access based on groups instead of their login ID. I beleive the variable for this in 8.1.05 is &FOCSECGROUPS.

My suggestion would be to create a hidden input in the HTML page and populate it using a procedure. Then create your Javascript function to read the value from the hidden input, and Show/Hide your element depending on that result.

If you add the onInitialUpdate(){} function to your HTML page it will run after your inputs have been populated but before any reports are run
//Begin function onInitialUpdate
function onInitialUpdate(){
hideMyLink();
}
//End function OnInitialUpdate  


Eric Woerle
8.1.05M Gen 913- Reporting Server Unix
8.1.05 Client Unix
Oracle 11.2.0.2
 
Posts: 750 | Location: Warrenville, IL | Registered: January 08, 2013Report This Post
Gold member
posted Hide Post
Thank you for the suggestion Eric. I'm not too polished up on my WebFocus javascript so in the meantime I created a .fex file with the link in the header and applied the user permission to that. Then, pulled the report into the HTML page. So far, it seems to be working like I need it to.

I'll do a little more research into the javascript option.

Thanks again!



WebFOCUS 8.1.05
Windows, All Outputs
 
Posts: 67 | Registered: May 21, 2014Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] ToggLe HTML link visibility

Copyright © 1996-2020 Information Builders