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 ran a launch page from App Studio that was created in Dev Studio and received a script error message that said Incorrect Function. The launch page does have embedded JavaScript coded in it. Does anyone know what's causing this error message? Thanks.This message has been edited. Last edited by: Michele Brooks,
Tamra, I am not running Dev Studio and App Studio at the same time. I pulled up an existing html page in App Studio that was created in Dev Studio. I wanted to see if it would run. I was able to tweak the list boxes in App Studio, but now the html page won't run because I'm getting a Script Error on the JavaScript page. Thanks.
//Begin function window_onload
function window_onload() {
//*UpdateData();
// TODO: Add your event handler code here
}
//End function window_onload
//Begin function form1Submit_onclick
function form1Submit_onclick(event) {
}
//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(event) {
IbComposer_disableHtmlElement('checkbox2_0', IbComposer_isSelected('checkbox1_0');
IbComposer_disableHtmlElement('checkbox3_0', IbComposer_isSelected('checkbox1_0');
IbComposer_disableHtmlElement('calendar1', IbComposer_isSelected('checkbox1_0');
IbComposer_disableHtmlElement('calendar2', IbComposer_isSelected('checkbox1_0');
IbComposer_disableHtmlElement('listbox5', IbComposer_isSelected('checkbox1_0');
IbComposer_disableHtmlElement('listbox6', IbComposer_isSelected('checkbox1_0');
IbComposer_disableHtmlElement('listbox7', IbComposer_isSelected('checkbox1_0');
}
//*
//****************************************************************************************************************************************
//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(event) {
IbComposer_disableHtmlElement('checkbox1_0', IbComposer_isSelected('checkbox2_0');
IbComposer_disableHtmlElement('checkbox3_0', IbComposer_isSelected('checkbox2_0');
IbComposer_disableHtmlElement('calendar1', IbComposer_isSelected('checkbox2_0');
IbComposer_disableHtmlElement('calendar2', IbComposer_isSelected('checkbox2_0');
IbComposer_disableHtmlElement('listbox5', IbComposer_isSelected('checkbox2_0');
IbComposer_disableHtmlElement('listbox6', IbComposer_isSelected('checkbox2_0');
IbComposer_disableHtmlElement('listbox7', IbComposer_isSelected('checkbox2_0');
}
//*
//****************************************************************************************************************************************
//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(event) {
IbComposer_disableHtmlElement('checkbox1_0', IbComposer_isSelected('checkbox3_0');
IbComposer_disableHtmlElement('checkbox2_0', IbComposer_isSelected('checkbox3_0');
IbComposer_disableHtmlElement('calendar1', IbComposer_isSelected('checkbox3_0');
IbComposer_disableHtmlElement('calendar2', IbComposer_isSelected('checkbox3_0');
IbComposer_disableHtmlElement('listbox5', IbComposer_isSelected('checkbox3_0');
IbComposer_disableHtmlElement('listbox6', IbComposer_isSelected('checkbox3_0');
IbComposer_disableHtmlElement('listbox7', IbComposer_isSelected('checkbox3_0');
}
//*
//****************************************************************************************************************************************
//End function checkbox3_onclick
This message has been edited. Last edited by: Michele Brooks,
I changed my javascript as follows. I'm no longer getting an error message. When I click Run the html page just runs.
if(typeof(bRuntime) != 'undefined') {
// TODO: Add your inline runtime code here
}
//Begin function window_onload
function window_onload() {
IbComposer_onInitialUpdate;
// 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(event) {
}
//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(event) {
IbComposer_showHtmlElement('form1',IbComposer_isSelected('checkbox1'));
IbComposer_enableHtmlElement('checkbox2_0', false, IbComposer_isSelected('checkbox1_0'));
IbComposer_enableHtmlElement('checkbox3_0', false, IbComposer_isSelected('checkbox1_0'));
IbComposer_enableHtmlElement('calendar1', false, IbComposer_isSelected('checkbox1_0'));
IbComposer_enableHtmlElement('calendar2', false, IbComposer_isSelected('checkbox1_0'));
IbComposer_enableHtmlElement('listbox5', false, IbComposer_isSelected('checkbox1_0'));
IbComposer_enableHtmlElement('listbox6', false, IbComposer_isSelected('checkbox1_0'));
IbComposer_enableHtmlElement('listbox7', false, IbComposer_isSelected('checkbox1_0'));
}
//*
//****************************************************************************************************************************************
//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(event) {
IbComposer_showHtmlElement('form1',IbComposer_isSelected('checkbox2'));
IbComposer_enableHtmlElement('checkbox1_0', false, IbComposer_isSelected('checkbox2_0'));
IbComposer_enableHtmlElement('checkbox3_0', false, IbComposer_isSelected('checkbox2_0'));
IbComposer_enableHtmlElement('calendar1', false, IbComposer_isSelected('checkbox2_0'));
IbComposer_enableHtmlElement('calendar2', false, IbComposer_isSelected('checkbox2_0'));
IbComposer_enableHtmlElement('listbox5', false, IbComposer_isSelected('checkbox2_0'));
IbComposer_enableHtmlElement('listbox6', false, IbComposer_isSelected('checkbox2_0'));
IbComposer_enableHtmlElement('listbox7', false, IbComposer_isSelected('checkbox2_0'));
}
//*
//****************************************************************************************************************************************
//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(event) {
IbComposer_showHtmlElement('form1',IbComposer_isSelected('checkbox3'));
IbComposer_enableHtmlElement('checkbox1_0', false, IbComposer_isSelected('checkbox3_0'));
IbComposer_enableHtmlElement('checkbox2_0', false, IbComposer_isSelected('checkbox3_0'));
IbComposer_enableHtmlElement('calendar1', false, IbComposer_isSelected('checkbox3_0'));
IbComposer_enableHtmlElement('calendar2', false, IbComposer_isSelected('checkbox3_0'));
IbComposer_enableHtmlElement('listbox5', false, IbComposer_isSelected('checkbox3_0'));
IbComposer_enableHtmlElement('listbox6', false, IbComposer_isSelected('checkbox3_0'));
IbComposer_enableHtmlElement('listbox7', false, IbComposer_isSelected('checkbox3_0'));
}
//*
//****************************************************************************************************************************************
//End function checkbox3_onclick
IbComposer_ResetDownChainControlsIbComposer_enableHtmlElementIbComposer_executeIbComposer_getAllAmpersValuesIbComposer_getComponentByIdIbComposer_getCurrentSelectionIbComposer_getCurrentSelectionExIbComposer_getMapObjectIbComposer_getMarkersIbComposer_isSelectedIbComposer_onInitialUpdateIbComposer_populateDynamicCtrlIbComposer_runAnimationIbComposer_selectTabIbComposer_selectTemplateTabIbComposer_setCurrentSelectionIbComposer_setGlobalDefaultVariableValueIbComposer_showHtmlElementIbComposer_triggerExecutionaddAutocompleteOptionaddAutocompleteOptionsaddEventListeneralertanimationStartTimeapplicationCacheatobblurbtoacancelAnimationFramecaptureEventsclearImmediateclearIntervalclearTimeoutclientInformationclipboardDatacloseclosedconfirmconsoleconstructordefaultStatusdevicePixelRatiodispatchEventdoNotTrackdocumenteventexternalfocusframeElementframesgetComputedStylegetSelectionhistoryindexedDBinnerHeightinnerWidthitemlengthlocalStoragelocationmatchMediamaxConnectionsPerServermoveBymoveTomsAnimationStartTimemsCancelRequestAnimationFramemsClearImmediatemsCryptomsIndexedDBmsIsStaticHTMLmsMatchMediamsRequestAnimationFramemsSetImmediatemsWriteProfilerMarknamenavigatenavigatoroffscreenBufferingonabortonafterprintonbeforeprintonbeforeunloadonbluroncanplayoncanplaythroughonchangeonclickoncontextmenuondblclickondragondragendondragenterondragleaveondragoverondragstartondropondurationchangeonemptiedonendedonerroronfocusonfocusinonfocusoutonhashchangeonhelponinputonkeydownonkeypressonkeyuponloadonloadeddataonloadedmetadataonloadstartonmessageonmousedownonmouseenteronmouseleaveonmousemoveonmouseoutonmouseoveronmouseuponmousewheelonmsgesturechangeonmsgesturedoubletaponmsgestureendonmsgestureholdonmsgesturestartonmsgesturetaponmsinertiastartonmspointercancelonmspointerdownonmspointerenteronmspointerleaveonmspointermoveonmspointeroutonmspointeroveronmspointeruponofflineononlineonpagehideonpageshowonpauseonplayonplayingonpointercancelonpointerdownonpointerenteronpointerleaveonpointermoveonpointeroutonpointeroveronpointeruponpopstateonprogressonratechangeonreadystatechangeonresetonresizeonscrollonseekedonseekingonselectonstalledonstorageonsubmitonsuspendontimeupdateonunloadonvolumechangeonwaitingopenopenerouterHeightouterWidthpageXOffsetpageYOffsetparentperformancepostMessageprintpromptreleaseEventsremoveEventListenerrequestAnimationFrameresizeByresizeToscreenscreenLeftscreenTopscreenXscreenYscrollscrollByscrollToselfsessionStoragesetImmediatesetIntervalsetTimeoutshowHelpshowModalDialogshowModelessDialogstatusstyleMediatoStaticHTMLtoStringtopwindow
This issue is resolved. The problem turned out to be one of the list boxes that was created in Developer Studio. It is a Static list box that contains 4 values that represent the quarters in a year (01, 02, 03, and 04). When I opened the html page in App Studio, the values that were entered in Developer Studio were still there so I didn't bother changing anything. Come to find out, I had to delete those values and add them in again in App Studio. Doing this eliminated the Script Error. Thanks for the suggestions offered.