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.
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. PedroThis message has been edited. Last edited by: pferreira,
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
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..