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.
I modified an html document by adding to new date list boxes (list boxes 10 & 11). The code pasted below runs fine on our uat server. We are switching servers and are now using a dev server. When I run the web page from the dev server I get the error message that is in the Post title. I even submitted a request to have the same javascript version that's on the uat server be installed on the dev server. This did not solve the problem. I'm still getting the same error message when the page is run from the dev server. Thanks.
//Begin function window_onload
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 form1Submit_onclick
function form1Submit_onclick(ctrl) {
}
//End function form1Submit_onclick
//Begin function checkbox1_onclick
//****************************************************************************************************************************************
//* If Month/Year is checked, enable the Month and Year listbox and disable all other date selection options.
//*
function checkbox1_onclick(ctrl) {
if (document.getElementById("checkbox1_0").checked)
{
document.getElementById("checkbox2_0").disabled = true;
document.getElementById("checkbox3_0").disabled = true;
document.getElementById("checkbox4_0").disabled = true;
document.getElementById("listbox10").disabled = true;
document.getElementById("listbox11").disabled = true;
document.getElementById("listbox5").disabled = false;
document.getElementById("listbox6").disabled = false;
document.getElementById("listbox7").disabled = true;
}
else
{
document.getElementById("checkbox2_0").disabled = false;
document.getElementById("checkbox3_0").disabled = false;
document.getElementById("checkbox4_0").disabled = false;
document.getElementById("listbox10").disabled = true;
document.getElementById("listbox11").disabled = true;
document.getElementById("listbox5").disabled = true;
document.getElementById("listbox6").disabled = true;
document.getElementById("listbox7").disabled = true;
// document.getElementById("calendar1").value = " ";
// document.getElementById("calendar2").value = " ";
}
}
//*
//****************************************************************************************************************************************
//End function checkbox1_onclick
//Begin function checkbox2_onclick
//****************************************************************************************************************************************
//* If Quarter/Year is checked, enable the Quarter and Year listbox and disable all other date selection options.
//*
function checkbox2_onclick(ctrl) {
if (document.getElementById("checkbox2_0").checked)
{
document.getElementById("checkbox1_0").disabled = true;
document.getElementById("checkbox3_0").disabled = true;
document.getElementById("checkbox4_0").disabled = true;
document.getElementById("listbox10").disabled = true;
document.getElementById("listbox11").disabled = true;
document.getElementById("listbox5").disabled = false;
document.getElementById("listbox6").disabled = true;
document.getElementById("listbox7").disabled = false;
}
else
{
document.getElementById("checkbox1_0").disabled = false;
document.getElementById("checkbox3_0").disabled = false;
document.getElementById("checkbox4_0").disabled = false;
document.getElementById("listbox10").disabled = true;
document.getElementById("listbox11").disabled = true;
document.getElementById("listbox5").disabled = true;
document.getElementById("listbox6").disabled = true;
document.getElementById("listbox7").disabled = true;
// document.getElementById("calendar1").value = " ";
// document.getElementById("calendar2").value = " ";
}
}
//*
//****************************************************************************************************************************************
//End function checkbox2_onclick
//Begin function checkbox3_onclick
//****************************************************************************************************************************************
//* If Year is checked, enable the Year listbox and disable all other date selection options.
//*
function checkbox3_onclick(ctrl) {
if (document.getElementById("checkbox3_0").checked)
{
document.getElementById("checkbox1_0").disabled = true;
document.getElementById("checkbox2_0").disabled = true;
document.getElementById("checkbox4_0").disabled = true;
document.getElementById("listbox10").disabled = true;
document.getElementById("listbox11").disabled = true;
document.getElementById("listbox5").disabled = false;
document.getElementById("listbox6").disabled = true;
document.getElementById("listbox7").disabled = true;
}
else
{
document.getElementById("checkbox1_0").disabled = false;
document.getElementById("checkbox2_0").disabled = false;
document.getElementById("checkbox4_0").disabled = false;
document.getElementById("listbox10").disabled = true;
document.getElementById("listbox11").disabled = true;
document.getElementById("listbox5").disabled = true;
document.getElementById("listbox6").disabled = true;
document.getElementById("listbox7").disabled = true;
// document.getElementById("calendar1").value = " ";
// document.getElementById("calendar2").value = " ";
}
}
//*
//****************************************************************************************************************************************
//End function checkbox3_onclick
//Begin function checkbox4_onclick
//****************************************************************************************************************************************
//* If starting and ending Year/Month is checked, enable the Starting & Ending Year/Month listboxes and disable all other date selection options.
//*
function checkbox4_onclick(ctrl) {
if (document.getElementById("checkbox4_0").checked)
{
document.getElementById("checkbox1_0").disabled = true;
document.getElementById("checkbox2_0").disabled = true;
document.getElementById("checkbox3_0").disabled = true;
document.getElementById("listbox10").disabled = false;
document.getElementById("listbox11").disabled = false;
document.getElementById("listbox5").disabled = true;
document.getElementById("listbox6").disabled = true;
document.getElementById("listbox7").disabled = true;
}
else
{
document.getElementById("checkbox1_0").disabled = false;
document.getElementById("checkbox2_0").disabled = false;
document.getElementById("checkbox3_0").disabled = false;
document.getElementById("listbox10").disabled = true;
document.getElementById("listbox11").disabled = true;
document.getElementById("listbox5").disabled = true;
document.getElementById("listbox6").disabled = true;
document.getElementById("listbox7").disabled = true;
// document.getElementById("calendar1").value = " ";
// document.getElementById("calendar2").value = " ";
}
}
//*
//****************************************************************************************************************************************
//End function checkbox4_onclick
//Begin function form1_onload
function form1_onload(ctrl) {
}
//End function form1_onload
WF Dev Studio 8009, Windows, IE 11This message has been edited. Last edited by: Michele Brooks,
I did what you suggested and still received the same error message. I decided to move the alert at the top and received the alert on the window load. Pasted below is where I put the alert and the alert popped up when I ran the page.
//Begin function window_onload
function window_onload() {
alert("Got here");
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 form1Submit_onclick
function form1Submit_onclick(ctrl) {
}
//End function form1Submit_onclick
Okay, near the top, in your window_onload() function, try:
//Begin function window_onload
function window_onload() {
alert("Before UpdateData()");
UpdateData();
alert("After UpdateData()");
// TODO: Add your event handler code here
//add onInitialUpdate() function to make changes before initial run of the reports
}
//End function window_onload
This should tell us something about how early the problem happens.
App Studio WebFOCUS 8.1.05M Windows, All Outputs
Posts: 594 | Location: Michigan | Registered: September 04, 2015
In HTML Composer or whatever IBI GUI that you use to manage your HTML, verify that EVERY control, iframe, report, graph, ... is properly bind to its source object (properly referenced).
I already had that error when one of my elements on an HTML page was referencing an invalid path.
The trick : reprocess all the referencing
Good luck
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: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
Originally posted by Michele Brooks: I got the following alert message
Before UpdateData()
That is not a good sign.
I recommend you try MartinY's suggestion, or maybe you could delete the controls that triggered the problem and recreate them (Giving them the same IDs, such as listbox10 and listbox11).
If that doesn't work, you might want to open up a support case with IBI.
App Studio WebFOCUS 8.1.05M Windows, All Outputs
Posts: 594 | Location: Michigan | Registered: September 04, 2015
Martin, I think that is it. Is the only way to get rid of unwanted boxes is to delete them in design mode? I moved the boxes to the Unbound Parameter section but they keep popping up on the Parameter page. I'm having a hard time getting one particular box to appear on the Design page because it was set with all zeros in the Properties by someone else. I changed the position but the box still doesn't appear on the Design page so I can delete it. Thanks.
Originally posted by Michele Brooks: ...I'm having a hard time getting one particular box to appear on the Design page because it was set with all zeros in the Properties by someone else. I changed the position but the box still doesn't appear on the Design page so I can delete it. Thanks.
The GUI sometimes "misplaces" things in its mind and makes it so you can't select the element for deletion.
I sometimes have to hack the HTML code to remove references to "misplaced" elements. I'm not recommending that you do that, mind you, but it's the only way I've found to correct the problem.
App Studio WebFOCUS 8.1.05M Windows, All Outputs
Posts: 594 | Location: Michigan | Registered: September 04, 2015
I would say Yes - must delete it using design mode if you want to stay "legit" with IBI tool.
If you go to Design tab and under properties you may be able to find the control from the drop list, then select it from there and then change its properties to have Position top and left, Size : width and height other then 0 (put value to have it display somewhere in the page where you can see it) and Display = Yes to make it display on design. You should then be able to delete it properly.
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: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
Originally posted by MartinY: If you go to Design tab and under properties you may be able to find the control from the drop list, then select it from there and then change its properties...
I hope it works for Michele, but sometimes even doing that won't select the element for deletion (or property changes).
App Studio WebFOCUS 8.1.05M Windows, All Outputs
Posts: 594 | Location: Michigan | Registered: September 04, 2015
Problem solved. I had changed a fex that gets kicked off when the Run and Run Deferred buttons get clicked. I had to click on those buttons in the design view and go to the Hyperlink properties to ensure that all the parameters are binded properly to the controls that I created in the page. I am closing this case.
Thanks to all for your assistance. Have a good weekend.