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.
Hi, I am using a Html table in Maintain with one Clickable Column. Can I add a condition on that column to make it unclickable or 'greyed out' for some records. for example if in a particular record, flag is YES then that particular column should be Click-able otherwise it should be unclick-able.
Any Ideas!
HassanThis message has been edited. Last edited by: Kerry,
There is no way to make the ClickLink value on an HTMLTable conditional. The only thing that I could recommend is have a flag column somewhere in the HTMLTable. When the user clicks on a row, check the flag value and either process or put out am alert. Here is the Javascript code, for an HTMLTable named HTMLTable1, that shows you how to check the value of a different column than the one that was selected.
var TableDiv = document.getElementById("HTMLTable1"); var TableObj; for(i=0; i if(TableDiv.children[i].tagName == "TABLE") { TableObj = TableDiv.children[i]; break; } } var CurCol = document.Form1.HTMLTable1_ClickColumn.value; var CurRow = document.Form1.HTMLTable1_ClickRow.value; var CurVal = document.Form1.HTMLTable1_Value.value; var FlagVal = TableObj.rows(CurRow-1).cells((CurCol-1)+2).innerText;
I hope this helps. Mark
Posts: 663 | Location: New York | Registered: May 08, 2003
var TableDiv = document.getElementById("HTMLTable1");
var TableObj;
for(i=0; i<TableDiv.children.length; i++)
if(TableDiv.children[i].tagName == "TABLE") {
TableObj = TableDiv.children[i];
break; } }
var CurCol = document.Form1.HTMLTable1_ClickColumn.value;
var CurRow = document.Form1.HTMLTable1_ClickRow.value;
var CurVal = document.Form1.HTMLTable1_Value.value;
var FlagVal = TableObj.rows(CurRow-1).cells((CurCol-1)+2).innerText;
As the code wasn't presented as code the line was truncated at the left carat, though this is a basic javascript loop you should have spotted this. You will have to change some of this code to work for you, this code is generic.
Alan. WF 7.705/8.007
Posts: 1451 | Location: Portugal | Registered: February 07, 2007