Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Solved] Maintain HTML Table set value of cell when another cell is modifiec
Go
New
Search
Notify
Tools
Reply
  
[Solved] Maintain HTML Table set value of cell when another cell is modifiec
 Login/Join
 
Gold member
posted
Good morning,

I am using 7.7.03. I have an HTML table on a maintain winform. The form has a check box in column 2. If the user makes changes to columns 5, 6, 7 or 8, I need to set the check box to checked using javascript. I have searched everything I can think of. Does anyone have any suggestion.
Thank you, Deana

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


WebFOCUS 7.6.8 and 7.7.03; Windows Server 2003 R2 and Windows Server 2008 R2, respectively; Development environments - Windows Server 2003 R2 and Windows 7 Professional, respectively;
excel, html, pdf
 
Posts: 84 | Registered: March 19, 2011Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Normally below should work

MyCtrlField0.checked = true;

MyCtrlField should be your control name


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2377 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Reply With QuoteReport This Post
Gold member
posted Hide Post
Martin, You are correct.

I have set the checkbox value for checkboxes on the form in the past, but not within an table. I initially copied the logic from my other code, but it did not work. Apparently I had a syntax error I could not see this morning. Using the following code works allows me to pass the name of the checkbox control to my js function so it works for each row.

function setChecked(strControlName) {
var objCheck = document.getElementById(strControlName);
objCheck.checked=true;
}

strColumnName = ColumnName|rowindex;

Thank you for you help. I appreciate it.

Deana


WebFOCUS 7.6.8 and 7.7.03; Windows Server 2003 R2 and Windows Server 2008 R2, respectively; Development environments - Windows Server 2003 R2 and Windows 7 Professional, respectively;
excel, html, pdf
 
Posts: 84 | Registered: March 19, 2011Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Solved] Maintain HTML Table set value of cell when another cell is modifiec

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.