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     [RESOLVED]App Studio 8009 HTML Incorrect Function error

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[RESOLVED]App Studio 8009 HTML Incorrect Function error
 Login/Join
 
Guru
posted
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,


WF 8205, Windows 10
Oracle DBMS
EXL07/PDF Output
 
Posts: 244 | Registered: August 27, 2012Report This Post
Guru
posted Hide Post
Michele,

If you have Dev Studio open and App Studio open at the same time that causes
issues.

Can you run the following prior to either running DevStudio or AppStudio

thisfoci.bat - this registers the dll for that version of WebFOCUS

located under either
ibi\DevStduio8x\bin or ibi\AppStudio8x\bin.

You would have to right click on thisfoci.bat and click on Run As Administrator


This might help.

Thank you for participating in the Focal Point Forum.

Kindest regards,
Tamra Colangelo
Focal Point Moderator - Information Builders Inc.
* Summit 2016 – June 13-17 in Reno, Nevada  - http://www.informationbuilders.com/events/summit



You would have to right click on thisfoci.bat and click on Run As Administrator
This registers the dll's.


WebFOCUS 8x - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5
 
Posts: 487 | Location: Toronto | Registered: June 23, 2009Report This Post
Guru
posted Hide Post
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.


WF 8205, Windows 10
Oracle DBMS
EXL07/PDF Output
 
Posts: 244 | Registered: August 27, 2012Report This Post
Master
posted Hide Post
Can you post the embedded JavaScript code?


App Studio
WebFOCUS 8.1.05M
Windows, All Outputs
 
Posts: 594 | Location: Michigan | Registered: September 04, 2015Report This Post
Guru
posted Hide Post
The error message says: Expected ')'

  
//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,


WF 8205, Windows 10
Oracle DBMS
EXL07/PDF Output
 
Posts: 244 | Registered: August 27, 2012Report This Post
Virtuoso
posted Hide Post
quote:
IbComposer_disableHtmlElement('checkbox2_0', IbComposer_isSelected('checkbox1_0');


Look at all your lines and check parentheses balance, they don't


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, 2013Report This Post
Guru
posted Hide Post
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





WF 8205, Windows 10
Oracle DBMS
EXL07/PDF Output
 
Posts: 244 | Registered: August 27, 2012Report This Post
Guru
posted Hide Post
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.


WF 8205, Windows 10
Oracle DBMS
EXL07/PDF Output
 
Posts: 244 | Registered: August 27, 2012Report 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     [RESOLVED]App Studio 8009 HTML Incorrect Function error

Copyright © 1996-2020 Information Builders