is there a way when a button-1 is clicked I can show a text box and when button-2 is clicked I can hide the text box in html painter? ThanksThis message has been edited. Last edited by: <Kathryn Henning>,
8.0.9, Windows excel / pdf
June 02, 2014, 01:36 AM
Rifaz
Is this what you expected?
function window_onload() {
UpdateData();
// TODO: Add your event handler code here
//add onInitialUpdate() function to make changes before initial run of the reports
}
//End function window_onload
//Begin function button1_onclick
function button1_onclick(ctrl) {
alert ("button1 clicked");
document.getElementById('edit1').style.visibility = 'hidden';
}
function button2_onclick(ctrl) {
alert ("button2clicked");
document.getElementById('edit1').style.visibility = 'visible';
}
function button1_onclick(ctrl) {
IbComposer_showHtmlElement('textbox', false);
}
WebFOCUS 8.1.05
June 02, 2014, 11:37 AM
Francis Mariani
Unfortunately, there are no "API" commands in WF v7.6.
This is the only mention of JavaScript in the v7.6.9 doc:
quote:
Using JavaScript Code With HTML Composer Pages
Although the HTML Composer is fully integrated with JavaScript, it is suggested that you do not create custom JavaScript that manipulates the HTML Composer generated controls, as WebFOCUS cannot support such custom JavaScript code. Additionally, there is no guarantee that the JavaScript code will work correctly in future releases.
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
June 11, 2014, 08:19 AM
MMcDonald
Thanks Rifaz - your solution worked perfectly..!!!