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] Remove Active Table menu from column

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Remove Active Table menu from column
 Login/Join
 
Member
posted
Hi,

I'm trying to add some features to our Active Table Reports via JavaScript but it seems that I have almost no control over the context menus and the column menus that are inserted to the Active Table. Even thought I can turn on/off some of their options I cannot remove entirely a column menu. Perhaps it's better to use an example:
DEFINE FILE CAR
MYCOLUMN/A150 = '<button class="wf-comment" value="?" style="width:10px;height:10px;margin:0 auto;padding:0;"></button>';
END

TABLE FILE CAR
PRINT 
CAR 
MODEL 
SEATS
BY MYCOLUMN AS ''
BY COUNTRY
ON TABLE SET BYDISPLAY ON
ON TABLE PCHOLD FORMAT AHTML
END


You can see there is no point in having the menu for my first column, the one with the html "button" on it.

So, is there a way to remove only that column menu, or even better, in case someone knows, is there a way to hijack the cell's context menu to add or alter options of.. let's say the "comments" option?

I'm guessing that either one is challenging so let's hear it from the experts!

Thanks in advance.
Pedro

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


WF 8.0.02 @ Linux environment
 
Posts: 12 | Registered: May 15, 2012Report This Post
Expert
posted Hide Post
I'd probably use jQuery to manipulate this, but here's a quick example using JavaScript:

DEFINE FILE CAR
MYCOLUMN/A150 = '<button class="wf-comment" value="?" style="width:10px;height:10px;margin:0 auto;padding:0;"></button>';
END

TABLE FILE CAR
PRINT
CAR
MODEL
SEATS
BY MYCOLUMN AS ''
BY COUNTRY
ON TABLE SET BYDISPLAY ON
ON TABLE HOLD AS H001 FORMAT AHTML
END
-RUN

-HTMLFORM BEGIN
!IBI.FIL.H001;
<script type="text/javascript">
document.getElementById('popid0_0').style.display = 'none';
</script>
-HTMLFORM END
You carefully have to examine the generated atrocious HTML and JavaScript to determine which element to hide...


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
Well! That doesn't work so well when you click on one of the buttons... But it's a beginning.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
Thanks for the quick reply Francis,

I have already tried that and it almost does the job, but when there are multiple pages and you navigate to a different one the column menu appears again, so I'd have to check it every time the user navigates through the report which is not easy since you don't know exactly when does the new page loads.

So I was trying to find a different approach, but I get from your reply that there is no clean/direct way of doing this..

Pedro


WF 8.0.02 @ Linux environment
 
Posts: 12 | Registered: May 15, 2012Report This Post
Expert
posted Hide Post
It appears this simple and reasonable request is a new feature:

Hide option from AHTML


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
Maybe this will help:

[CASE-OPENED] Active Report - How to Turn Off Context Menu Upon Click Within Report.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
Well, thanks!

I've seen the second link, but not the first one you've posted.
At least I'll have something to wait for.

Thank you once again.

Pedro


WF 8.0.02 @ Linux environment
 
Posts: 12 | Registered: May 15, 2012Report 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] Remove Active Table menu from column

Copyright © 1996-2020 Information Builders