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] Maintain: Making a Clickable column UnClickable for certain records

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Maintain: Making a Clickable column UnClickable for certain records
 Login/Join
 
Member
posted
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!

Hassan

This message has been edited. Last edited by: Kerry,
 
Posts: 5 | Registered: October 26, 2006Report This Post
Master
posted Hide Post
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, 2003Report This Post
Member
posted Hide Post
mark, Thanks a lot.
 
Posts: 5 | Registered: October 26, 2006Report This Post
Member
posted Hide Post
Mark I tried the sample code and I keep gett an error on the if on the "for" line.

Script error in EventHandler ClickLink at line 40, column 12: Expected ';'
-----------v
for(i=0; i if(TableDiv.children[i].tagName == "TABLE") {


WF 7.1.6
UNIX 5.0
HTML
 
Posts: 5 | Location: New Jersey | Registered: February 04, 2008Report This Post
Virtuoso
posted Hide Post
What Mark meant was:
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, 2007Report 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] Maintain: Making a Clickable column UnClickable for certain records

Copyright © 1996-2020 Information Builders