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.
So, we are wanting to create a page within one of our portals that should only be visible to a select group of individuals. I know about Security Center and creating a security group that can be tied to external groups of individuals (Active Directory groups). Our thing is we want to be able to add some conditional constraints to that. We want only people that are affiliated with certain stores in our company to be able to see this page/tab. We were able to find a way to lock down content with data source screening filters and SQL out, but we need a similar means to lock down portal pages.
Does anyone on here know of a way we could lock down visibility of a portal page other than with IBI security groups?? Where we could grab a list of stores from a SQL out statement and filter that visibility based off that list?? Js maybe??
Thanks in advance!This message has been edited. Last edited by: <Emily McAllister>,
8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
Posts: 1113 | Location: USA | Registered: January 27, 2015
I think you could do this with JavaScript. You could set the visibility of the various things on the page to "hidden", then use JavaScript to make an Ajax call to a fex file.
The fex file could return the store information. And there is a predefined amper variable called "&FOCSECUSER" that holds the user login ID.
The JavaScript can unhide all the things on the page if the retrieved data indicates it should do so.
Disclaimer: I haven't actually attempted something like this yet, but it sounds possible to me.
App Studio WebFOCUS 8.1.05M Windows, All Outputs
Posts: 594 | Location: Michigan | Registered: September 04, 2015
Thanks Squatch. I need a way I can write some Js that grab the page ID and then only make it visible if the FOCSECUSER or IBIMR_user logged in has 1+ stores specified within a set list.
Has anyone figured out a way to grab a page ID & then toggle its visibility before? I wish I knew where the product's underlying code for such lived. I could then glean from that code and create my own logic. Hmm...
8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
Posts: 1113 | Location: USA | Registered: January 27, 2015
That's easy. In your HTML page, set the "Unique Identifier" (In App Studio, it's in the "Body" section) to some text string. Then under the "Style Attributes - Basic", select "Hidden" for the "Visibility" property.
This is what the HTML BODY tag will look like if I choose "main" for a Unique Identifier:
Well, I'm only talking about an HTML page made with App Studio (or possibly Dev Studio)... I'm assuming that is what is being placed into a portal. Is that correct?
App Studio WebFOCUS 8.1.05M Windows, All Outputs
Posts: 594 | Location: Michigan | Registered: September 04, 2015
So, we are wanting to create a page within one of our portals that should only be visible to a select group of individuals. I know about Security Center and creating a security group that can be tied to external groups of individuals (Active Directory groups). Our thing is we want to be able to add some conditional constraints to that. We want only people that are affiliated with certain stores in our company to be able to see this page/tab. We were able to find a way to lock down content with data source screening filters and SQL out, but we need a similar means to lock down portal pages.
Does anyone on here know of a way we could lock down visibility of a portal page other than with IBI security groups?? Where we could grab a list of stores from a SQL out statement and filter that visibility based off that list?? Js maybe??
Thanks in advance!
visibility of portal page? But does the page name still stay there?
Like Page1 | Page 2 | Page3 | Page4
Now you want to hide Page3-s content? Is the content 1 html page/container? or multiple? There are ways with JS for example make "dummy.htm" add it to portal banner area and let that html catch actions you do. For example click page3 then hide something, but its quite hard to do like so.
regards,
Release: WebFOCUS 8104, AppStudio: 8105 OS: Windows Output: HTML,Excel,Active Reports
I created an HTML page using App Studio. It has a push button and an HTML table in it.
I hid the visibility of the page body, and the button and table disappeared from view in App Studio. Running the HTML page showed a blank window because the page body is hidden.
I then added the two lines of JavaScript I mentioned earlier, so that when the HTML page loads the JavaScript executes and makes the page body visible again. I ran the HTML page again and the button and table appeared.
I then edited a BI portal and inserted the HTML page into a tabbed container. When the portal loads, the container shows the HTML page with the button and table visible. So that means the JavaScript is still executing properly in the HTML page, even though the page is now inside a portal.
So, I think this can work for you. You would just need to add additional JavaScript code to your HTML page that will call on a WebFOCUS fex and return the data needed to make the decision to show the page body contents or not. One way to do that is to have JavaScript call on a fex to read a database table and return the results in XML format. JavaScript/JQuery can then extract the data from the XML results and make the decision to show the page content or not.
It's a little more elaborate than what you need, but it shows how to make an Ajax call to retrieve data from a fex file. Your code would need to execute at HTML loading time, not by push button. But the example should show you how to do what you need to do.
App Studio WebFOCUS 8.1.05M Windows, All Outputs
Posts: 594 | Location: Michigan | Registered: September 04, 2015
You should be able to do this within the Security Center. I know I tested this out in the early staged of version 8. From what I remember, I created a sub group under that group’s basic users group and set permissions on the page to not inherit the permission of the top level group and only allowed access to that sub group.
Sorry for not being as clear as needed. My end goal is to have the ability to conditionally choose whether a certain page tab even exists or not. I'm not worried about toggling content on/off on that page. I want the page in its entirety gone...tab and all.
Squatch,
You are the best. Sorry I wasn't clear enough on what I was looking for. I appreciate your help in trying to explain how to make content on a page toggle on and off if desired. What I'm looking for is getting rid of the page tab altogether if certain conditions are present based on the user logged in. I could utilize Security Center to tie a set list of individuals to a subgroup of a domain security group and only list that page for that subgroup, but I was hoping there was a more granular way to secure whether a page (altogether) appears or not. A scenario where I could write code that would control that. Not just a security subgroup through Security Center. So, this would be me having the ability to cause behavior at the portal HTML/Js level, and not just content HTML/Js level.
Thank you though for all your links and help! Much appreciated!
MattC,
That's what we may have to do for now until I can find a way to more granularly control page visiblity. Thanks for your suggestion!
I appreciate everyone's time and input with this inquiry of mine. Hope you all are doing well!
8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
Posts: 1113 | Location: USA | Registered: January 27, 2015
Gotcha. I don't know how to dynamically make a portal tab disappear.
But you could leave the tab there, and instead make visible in the HTML page a message saying "Access denied" if it is dynamically determined that the user does not have access to that page.
App Studio WebFOCUS 8.1.05M Windows, All Outputs
Posts: 594 | Location: Michigan | Registered: September 04, 2015