Focal Point
[SOLVED] WF v7.6.8 Composer-designed html form triggers errors in WF v7.7.02

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1467023016

September 27, 2011, 03:31 PM
Francis Mariani
[SOLVED] WF v7.6.8 Composer-designed html form triggers errors in WF v7.7.02
I opened, made some minor changes and saved a WF v7.6.8 Composer-designed html form in WF v7.7.02 Composer. Now when I run the form, I get JavaScript errors and the form does not get displayed.

Errors:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)
Timestamp: Tue, 27 Sep 2011 19:28:05 UTC

Message: '0' is null or not an object
Line: 570
Char: 11
Code: 0
URI: http://my-server:8080/ibi_html...s/rltcalendarInit.js
and
  
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)
Timestamp: Tue, 27 Sep 2011 19:30:08 UTC

Message: '0' is null or not an object
Line: 570
Char: 11
Code: 0
URI: http://my-server:8080/ibi_html...s/rltcalendarInit.js

Message: 'null' is null or not an object
Line: 9103
Char: 4
Code: 0
URI: http://francism-pc:8080/ibi_ht...i/html/js/ibirls3.js

I suppose I can delete the calendar controls and re-add them, but that doesn't guarantee solving the problem.

This message has been edited. Last edited by: <Kathryn Henning>,


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
September 27, 2011, 06:04 PM
Waz
I'm beginning to think that there are fundamental differences in these html pages.

The Javascript libraries have difference revisions.

rltcalendarInit.js from 1.11.2.1 (7.6.?) to 1.19 (7.7.?)

ibirls3.js from 1.113.2.1 (7.6.?) to 1.318 (7.7.?)

I would suggest removing and re-adding the control.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

September 27, 2011, 09:44 PM
Francis Mariani
Yes, I'll give that a try Frowner


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
September 28, 2011, 04:25 AM
Wep5622
It's possible that opening them in the 7.7 HTML Composer and saving them suffices.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
September 28, 2011, 09:52 AM
Francis Mariani
I did open it in v7.7.02 and that's why the errors are occurring - I'll try to remove and re-add the Calendar controls.


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
April 15, 2013, 11:55 AM
Ian Dalton
Hi Francis,
I am getting this too after copying code generated by 7.6 composer to 7.7 and tweaking. Even without tweaks it still triggers an error. I am therfore wondering whether removing and re-adding the calendar controls did the trick ?
Regards,
Ian


_______________________
*** WebFOCUS 8.1.05M ***
April 15, 2013, 12:39 PM
Francis Mariani
Ian, I unfortunately cannot remember.

More often than not, when something inexplicable happens in HTML Composer (a more than seldom occurrence for me), I create a new HTML page.

Sorry I cannot be of more help.

Regards,


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
April 16, 2013, 06:15 AM
Ian Dalton
Thanks anyway Francis. I will just remove and re-insert the calendar options and see what happens.Ian


_______________________
*** WebFOCUS 8.1.05M ***
April 19, 2013, 10:49 AM
Ian Dalton
Hi Francis (and others experiencing this),

I discovered that the error message
'Message: '0' is null or not an object'
pointed me to a line in my code that said
'list[0].selected=true;'

Took a punt and removed it as it was in a function and I couldn't really see what it did - generated by HTML Composer. My code then worked fine. The calendar stuff was a red herring as it followed this error. So once the error was removed the calendar issues disappeared.

Cheers,
Ian


_______________________
*** WebFOCUS 8.1.05M ***