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     [SOLVED] Maintain - HTMLTable - Duplicate - JavaScript

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Maintain - HTMLTable - Duplicate - JavaScript
 Login/Join
 
Gold member
posted
Good Morning,

For "Maintain", does anyone have a JavaScript function to check the data source (stack) of an HTMLTable against a user entered string. This will be utilized to insure unique field description data. I tried a number of functions found on the web but none worked, for example:

function findInTable(str, tableID){
$('#' + tableID + ' tr').each(function(){
$(this).children('td').each(function(){
if ( $(this).html() == str ){
alert('found');
return false;
}
});
});
}

Where tableID = Formname.getElementById("HTMLTable1");

I'm working with WebFocus version 7.7.03 in a Windows environment.


Thank you,
Nick

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 7.7.03 & 8.0.7
Windows
HTML, Excel, PDF, etc.
Also, using Maintain, etc.
 
Posts: 83 | Registered: February 26, 2009Report This Post
Master
posted Hide Post
Nick
Instead of trying to search the column in the HTMLTable, I would do this:

1) Create a string of all the values:
Compute I/I3=1;
Repeat Stk.Foccount
Compute Values = Values | stk(i).field;
Compute I=I+1;
Endrepeat

2) Place Values on the screen in an editbox with Visible set to no.

3) When the user enters the value to check use the JS command str.search

var val = Form1.Values_Edit.value;
var data = Form1.Entereddata_Edit.value
var n = str.search(data);

If you get a value for n then the data is found.

Mark
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report 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     [SOLVED] Maintain - HTMLTable - Duplicate - JavaScript

Copyright © 1996-2020 Information Builders