Form Onload Javascript error
Form Onload Javascript error
Hello,
Receiving onload javascript error on the form (see attached file). Any one ever encountered this before ? (NewScale 2008.3, IE 7)
Thanks in advance for any help!
- Mihir
use the MIcrosoft JavaScript debugger, it will show yo uthe line thats failing ...
Similar Messages
-
WL 8.1 BEA-101083 error when submitting a form using javascript (IE only)
Hello,
I have a JSP page that is submitting a form with javascript document.form.submit()
after checking the validity of form element values, but I randomly get a BEA-101083
error. The jsp page has worked fine for several year in IPlanet, and Sun One
7 application server, but when ported over to WebLogic 8.1 SP2 the error manifests
itself. Basically, when user submits the form, the next page is displayed with
null values, and soon after the following stack trace appears in the server log.
This error only occurs when the client browser is IE, Netscape works fine.
Thanks,
-Colin
<WLS Kernel>> <> <BEA-101083> <Connection failure.
java.io.IOException: A complete message could not be read on socket: 'weblogic.servlet.internal.MuxableSocketHTTP@9bb9300
- idle tim
eout: '30000' ms, socket timeout: '30000' ms', in the configured timeout period
of '60' secs
at weblogic.socket.SocketMuxer$TimeoutTrigger.trigger(Lweblogic.time.common.Schedulable;)V(SocketMuxer.java:775)
at weblogic.time.common.internal.ScheduledTrigger.run()Ljava.lang.Object;(ScheduledTrigger.java:243)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.Privil
egedAction;)Ljava.lang.Object;(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.a
cl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:118)
at weblogic.time.common.internal.ScheduledTrigger.executeLocally()V(ScheduledTrigger.java:229)
at weblogic.time.common.internal.ScheduledTrigger.execute(Lweblogic.kernel.ExecuteThread;)V(ScheduledTrigger.java:223)
at weblogic.time.server.ScheduledTrigger.execute(Lweblogic.kernel.ExecuteThread;)V(ScheduledTrigger.java:50)
at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:170)
at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)Checkboxes only submit a value when they are "on"
They submit nothing if they are not selected.
The problem comes - do you interpret no checkbox values as "clear all values" or "leave the values alone"? Struts assumes the latter.
Your form is probably being kept in session?
Try implementing the reset() method of your action form and set its property to be equivalent to no checkboxes selected. -
While executing onLoad in Date_before Save.htm, a JavaScript error occurred
While executing onLoad in Date_before Save.htm, a JavaScript error occurred, I have looked af the Forum and it tells me to delete Program Files\Macromedia\Dreamweaver CS3\Configuration\Commands and I cannot find these files despite searching.
I had a text conversation with support at Adobe and they no longe support Dreamweaver CS3! Has anyone else had a similar problem and if so how was it fixed.
RegardsTroubleshooting JavaScript errors in Dreamweaver
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19105#dat
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"jockamo" <[email protected]> wrote in
message
news:etpo3o$54c$[email protected]..
>I have set up some pages to have an automatically
updating "Last Modified
>On"
> date. However, I have been getting 2 error dialog boxes
every time I save
> a
> file, both with the same message: "While executing
onLoad in
> Date_beforeSave.htm, a javascript error occurred." In
looking at some
> other
> threads on this forum, I have tried deleting the
Application Data files
> "Configuration\SiteCache\SEL Web Site.dws" and
> "Configuration\WinFileCache-####.dat". I have also tried
several
> different
> date formats, but that didn't seem to change anything.
>
> I have not been able to find any threads specific to
this exact error,
> though.
>
> Any help would be highly appreciated! The site is at
>
http://picea.sel.uaf.edu/index.html,
if that helps.
>
> Thanks for your help,
> Jock
> -
I have set up some pages to have an automatically updating
"Last Modified On" date. However, I have been getting 2 error
dialog boxes every time I save a file, both with the same message:
"While executing onLoad in Date_beforeSave.htm, a javascript error
occurred." In looking at some other threads on this forum, I have
tried deleting the Application Data files
"Configuration\SiteCache\SEL Web Site.dws" and
"Configuration\WinFileCache-####.dat". I have also tried several
different date formats, but that didn't seem to change anything.
I have not been able to find any threads specific to this
exact error, though.
Any help would be highly appreciated! The site is at
http://picea.sel.uaf.edu/index.html,
if that helps.
Thanks for your help,
JockTroubleshooting JavaScript errors in Dreamweaver
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19105#dat
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"jockamo" <[email protected]> wrote in
message
news:etpo3o$54c$[email protected]..
>I have set up some pages to have an automatically
updating "Last Modified
>On"
> date. However, I have been getting 2 error dialog boxes
every time I save
> a
> file, both with the same message: "While executing
onLoad in
> Date_beforeSave.htm, a javascript error occurred." In
looking at some
> other
> threads on this forum, I have tried deleting the
Application Data files
> "Configuration\SiteCache\SEL Web Site.dws" and
> "Configuration\WinFileCache-####.dat". I have also tried
several
> different
> date formats, but that didn't seem to change anything.
>
> I have not been able to find any threads specific to
this exact error,
> though.
>
> Any help would be highly appreciated! The site is at
>
http://picea.sel.uaf.edu/index.html,
if that helps.
>
> Thanks for your help,
> Jock
> -
Hello,
I'm having trouble when moving or renaming files. Linked files are automatically updated, but the following error message appears for each file: "While executing onLoad in Date_beforeSave.htm, a Javascript error occurred".
I tried the solution found in a previous discussion (http://forums.adobe.com/message/757114#757114), that is to say: deleting the .dat file located in the "Applicaion dataAdobe\Dreamweaver CS5.1\Configuration" folder. But it doesn't work.
I also tried by reinstalling the whole CS5.5 pack, but no result.
I also had trouble while installing the CS5.5 Web Premium pack (on Windows XP Pro). Maybe the 2 problems are related?... As the installation was done, an error message appeared saying that some errors occured. Here is part of the error status:
"- 0 fatal error(s), 14 error(s), 11 warning(s)
WARNING: DW024: The payload: Adobe Photoshop CS5.1 Core {08EF22BC-43B2-4B4E-BA12-52B18F418F38} requires a UI parent with following specification:
Family: Photoshop
ProductName: Adobe Photoshop CS5.1 Core_x64
This parent relationship is not satisfied, because this payload is not present in this session.
WARNING: DW025: The payload with AdobeCode: {D8CCCF4C-C227-427C-B4BE-736657D2AB7E} has recommended dependency on:
Family: Adobe Web Suite CS5.5
ProductName: Adobe Media Encoder CS5.5 X64
MinVersion: 0.0.0.0
This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
Removing this payload from the dependency list.
ERROR: DW025: The payload with AdobeCode: {D97AF04B-B70A-4862-BC25-31E6D9C4A529} has required dependency on:
Family: CoreTech
ProductName: Adobe Player for Embedding x64 3.1
MinVersion: 0.0.0.0
This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
Removing this dependency from list. Product may function improperly."
Please, can anyone help?OK, I'll try to explain more clearly (excuse me if my English is imperfect, because I'm French).
In fact, I'm facing 2 problems, which could be related or not.
First, when I installed Creative Suite 5.5 some months ago, I received an error at the end of the installation. You can download a copy of the report here: https://www.box.com/s/5m4k6xv68h00cpumwil9
However, I could use the Adobe softwares without observable problem... until those last days...
So, second and really annoying problem that I only detected those last days (maybe I didn't use the implied function before, but I'm not sure). When using DW, if I want to rename or to move some HTML files in a defined website, all the linked files will be automatically updated. As the automatic update is proceeding, I receive, for each updated file, the following error warning: "While executing onLoad in Date_beforeSave.htm, a Javascript error occurred". And I have to click "OK" to each warning in order the processus to go on. The result of the automatic update is uncertain: some files have been properly updated, some other not.
As I already explained in my first post, I tried (unsuccessfully) to resolve by those two means:
deleting ".dat" file in the "config" folder
reinstalling CS5.5 (same error report received as when I first installed).
I hope that I've been more clear that time and that you'll be able to help me! Thanks! -
JavaScript error with CourseBuilder
Hi!
I intend to use CourseBuilder for a simple test.
I've done the CourseBuilder tutorial and everything went
fine.
Two weeks later I tried to implement an interaction in my
page... and got an error message after I had clicked on the action
manager tab:
"Action manager data was invalid. “ The next message
was about a JavaScript-error in onLoad (coursebuilder
interaction.htm).
It was not possible any more to edit the interaction in any
site (also not in the tutorial test site...).
I already have de-/re-installed all extension (and only try
CourseBuilder alone), de-/re-installed dreamweaver, deleted all
support files, build a new test site...
I'm confused about it - but I need to deliver the test pretty
soon.
Maybe I did a basic mistake?
Your help would be appreciated very much
Kind Regards
STHIt's still very strange. I really have tried quiet a lot of
options but I still can't start the action manager in
CourseBuilder. In the last weeks I googled a lot. There are some
mistery reports that CourseBuilder stoped to work suddenly. But
eighter is was solved by a new installation or there was no answer.
Finally I made it with forms and layers in dreamweaver
directly.
Even though you have to do more editing...
at least you are not sitting in front of a black box without
knowing what's going on.
STH -
Javascript Error When Using ADDT
When I try to use the User registration wizard I am getting the following error :
While executin onLoad in CreateActivationPage.htm, the following JavaScript error(s) occured :
At lin 26 of file : "C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS4\Configuration\Translators\Cookie_translator.htm":
patterMatch has no properties
It seems to only happen when I use this particular part of ADDT, everything else is working. I have tried :
Deleting the cache file
Re-Creating the configuration folder
Neither have worked, can someone help me get past this? I need to use this part of ADDT bad now....Hi,
I am getting the same problem when trying to use the Update Record Form Wizard.
While executing onClick in ServerObject-UpdRecPHP.htm the following Javascript error(s) occurred.
At line 26 of file "C:\Program Files\Adobe\Adobe Dreamweaver CS4\Configuration\Translators\Cookie_translator.htm": patternMatch has no properties.
This has only just started to happen.
Any solutions? -
Javascript error on function call MVThemeBasedFOI
I am getting a javascript error Error(36,55): This attribute is not recognized. in the below code line highlighted in bold, what is going wrong. I am using JDeveloper and Mapviewer 11g. Please suggest
<?xml version='1.0' encoding='windows-1252'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:trh="http://myfaces.apache.org/trinidad/html"
xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
xmlns:af="http://xmlns.oracle.com/adf/faces"
xmlns:tr="http://myfaces.apache.org/trinidad">
<jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
doctype-system="http://www.w3.org/TR/html4/loose.dtd"
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
<jsp:directive.page contentType="text/html;charset=windows-1252"/>
<f:view>
<trh:html>
<trh:head title="map">
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1252"/>
<trh:script source="/jslib/oraclemaps.js"></trh:script>
<trh:script text='
var baseURL = "http://"+document.location.host+"/mapviewer";
var mapCenterLon = 145.07;
var mapCenterLat = -37.57;
var mapZoom = 1;
function showMap() {
var mapview = new MVMapView(document.getElementById("map"), baseURL);
mapview.addMapTileLayer(new MVMapTileLayer("gis_data.AV_VICMAP"));
mapview.setCenter(MVSdoGeometry.createPoint(mapCenterLon,mapCenterLat,4283));
mapview.setZoomLevel(mapZoom);
mapview.addNavigationPanel("WEST");
addThemeBasedFOI();
mapview.display();
function addThemeBasedFOI() {
var themebasedfoi1 = new MVThemeBasedFOI('themebasedfoi1','gis_data.geom_avl_rural_lastknown'); mapview.addThemeBasedFOI(themebasedfoi1);
}'></trh:script>
</trh:head>
<trh:body onload="javascript:showMap()">
<h:form>
<tr:panelPage>
<f:facet name="navigation1"/>
<f:facet name="navigationGlobal"/>
<f:facet name="branding">
<tr:outputText value="Oracle Maps"/>
</f:facet>
<!--TODO: Migrator from ADF Faces 10.1.3 to Trinidad removed the following node and its contents since it does not exist in Trinidad anymore
<f:facet name="brandingApp" />
-->
<f:facet name="appCopyright"/>
<f:facet name="appPrivacy"/>
<f:facet name="appAbout"/>
<f:verbatim>
<div id="map"
style="width:800.0px; height:600.0px; background-color:rgb(255,255,255); border-width:thin; border-color:rgb(99,99,255); border-style:solid;"/>
</f:verbatim>
</tr:panelPage>
</h:form>
</trh:body>
</trh:html>
</f:view>
</jsp:root>
ThanksTry use another name of FOI. Not the same as FOI var
-
Dreamweaver 6 launch error - JavaScript error bcinit
Hi
I have DW6 latest version running on Win XP SP3 and am all of a sudden getting the strangest bug (I have reported it), but I am wondering if anyone else has seen it or has any ideas how to fix it?
FYI I have already tried completely uninstalling Creative Cloud, rebooting, running the Creative Clean utility to remove all traces of any suite and then reinstalling Creative Cloud (takes hours ) and still have the same problem which is as follows below (FWIW I have never used BusinessCatalyst, either):
I launch DW and get the following error message "While executing onLoad in BusinessCatalyst.htm, the following JavaScript error(s) occurred: In file "BusinessCatalyst": bcinit is not defined"
When I try to open a file I get the following error message "The following translators were no loaded due to errors: ASP.NET: has configuration information that is invalid. BCDynamicTranslator.html: has configuration data that is invalid. BCStaticTranslator.html has configuration information that is invalid. XSLTransform.htm: has configuration data that is invalid"
Once I clear the dialog DW loads. However, when I attempt to save a file I then get the message "While executing onLoad in _beforeSave.htm, the following JavaScript error(s) occurred: In file "_beforeSave": beforeSave is not defined"
In addition, the space in the Help menu for Updates is simply blank and there is no Edit > Paste item either (just an empty space).
One other clue is that after I reinstalled Creative Cloud and BEFORE I applied the latest updates it seemed DW ran OK (it was a quick check, so I might be wrong).
The problems above are rendering DW unuseable to me at the moment, and it is totally bizarre they remain after a complete reinstall, so any clues on what has happened/how to fix it would be greatfully received!
Thanks!Hi John
So many thanks for that. I tried step 4 and deleted 2 WinFileCache files (neither of which were called what they said they were) and restarted DW and it now (so far!) seems to work again.
I have no idea what went wrong, but I am up and running again, so MUCHOS thanks again for your swift repsonse!
atb -
Javascript error when opening Tag editor
I have been using dreamweaver 8 for the last month or so. all
of a sudden a couple of days a go it started to give me the same
error every time i right clicked an input element and clicked the
'Tag Edit <Input>'.
The error reads
"While executing onLoad in input.htm, a JavaScript error
occurred."
Any ideas?
I have already tried the repair option in Add/Remove
Programs, and that didnt work
I then tried the Remove option, and then completely
reinstalled it to no prevail
Thankyou for any suggestions you may haveSee if this helps:
Troubleshooting JavaScript errors in Dreamweaver
http://www.adobe.com/go/19105
Nadia
Adobe® Community Expert : Dreamweaver
CSS Templates |Tutorials |SEO Articles
http://www.DreamweaverResources.com
~ Customisation Service Available ~
http://www.csstemplates.com.au
CSS Tutorials for Dreamweaver
http://www.adobe.com/devnet/dreamweaver/css.html
"Jay6390" <[email protected]> wrote in
message
news:esqm83$if1$[email protected]..
>I have been using dreamweaver 8 for the last month or so.
all of a sudden a
> couple of days a go it started to give me the same error
every time i
> right
> clicked an input element and clicked the 'Tag Edit
<Input>'.
>
> The error reads
> "While executing onLoad in input.htm, a JavaScript error
occurred."
>
> Any ideas?
> I have already tried the repair option in Add/Remove
Programs, and that
> didnt
> work
> I then tried the Remove option, and then completely
reinstalled it to no
> prevail
>
> Thankyou for any suggestions you may have
> -
10.1.3 Faces: Javascript error on PPR
Hi all,
I'm getting a Javascript error during PPR in IE 6.0. This error does not appear in FF 2.0. The error is "Invalid Argument" on line 2984 of adf/jsLibs/Common10_1_3_2_0.js:
form.removeChild(tempParams[paramName]);
Research suggests that this error should occur when "tempParams[paramName]" was created in a different document from "form", and sure enough, with a DOM inspector, I was able to determine that the documents have different unique IDs.
Does anyone know why this might be happening? It doesn't happen in all my pages, but I can't figure out what might be special about this one.
Thanks much,
AvromHi Frank,
The development environment is JDev 10.1.3.2; I can see if upgrading makes a difference--but the error is actually appearing in the deployed environment, which is Oracle AS 10.1.2.
The error is getting reported by Microsoft's script debugger--without it, there's a brief flash of a warning symbol in the IE status bar, but it disappears quickly.
The reason I care about this error (although it's transient and doesn't really seem to affect the outcome of that PPR) is that I suspect it as the culprit in more worrisome behavior--after this error appears once, the <af:messages> component on the page will no longer refresh until the page is left and returned to (although no error is reported at that time). I'm so suspicious because they always go together--I've never been able to get the component to refresh after getting this error, or to keep it from refreshing without getting it. This includes the fact that neither problem surfaces in FireFox. -
In the middle of using Dreamweaver 8 today, I received
several error messages when trying to open and/or save a file:
Message #1
The following javascript error(s) occurred:
At line 56 of File "C:\Program Files\Macromedia\Dreamweaver
8\Configuration\Shared\Common\Scripts\dwscriptsExtData.js"
ReferenceError: dwscripts is not defined.
Message #2
While executing onLoad in_onOpen.htm the following JavaScript
error(s) occurred:
In file ""_onOpen"":
Reference Error: onOpen is not defined.
Message #3
The following translators were not loaded due to errors:
ASP.htm: has configuration information that is invalid
ColdFusion.htm: has configuration information that is invalid
JSP.htm: has configuration information that is invalid
PHP_MySQL.htm: has configuration information that is invalid
XSLT.htm: has configuration information that is invalid
XSLTransform.htm: has configuration information that is
invalid
Message #1 and #2 show up two times when trying to open a
file. Message #3 and then Messages #1 and 2 show when trying to
close a file after changes (it asks first "Save changes..." . . .
if I click on yes, then the error messages occur, but when they are
dismissed by clicking on OK, the file seems to be saved, because
the corrected file is uploaded when using FTP. If I try to save the
changed file by using File>Save As... nothing will happen.
I used the Remove Program function in Control Panel, and then
re-installed Dreamweaver 8 using my Studio 8 CD#1 and following the
Wizard prompts. The files still show in the "local sites: list and
I can open the files (albeit with the error messages above) and the
changed/edited files are still saved and FTP'd to my server. So
from the end-user view, all is OK. But... this is different this
afternoon from how it was working this morning.
Can anyone suggest how I should proceed to make it work
without the error messages?
TIA --
JoyceHave a read of this article:
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19105
and if that doesn't help you can try this:
Quit DW.
Find this folder -
C:\Documents and Settings\<username>\Application
Data\Macromedia\Dreamweaver
8\Configuration\WinFileCache-*.dat
(these folders are normally hidden - you may have to use
Explorer > Tools >
Folder Options to unhide them)
Delete it. Restart DW and hopefully you're fixed.
Nadia
Adobe� Community Expert : Dreamweaver
http://www.csstemplates.com.au
- CSS Templates | Free Templates
http://www.perrelink.com.au
- Web Dev
http://www.DreamweaverResources.com
- Dropdown Menu Templates|Tutorials
http://www.adobe.com/devnet/dreamweaver/css.html -
What are the reasons for following Javascript error in Report Viewer
Post Author: dhuka
CA Forum: Crystal Reports
Hello Everybody!
I am using Crystal Reports 10 in my web application. But unfortunately I am surrounded with strange problem related to it because of which I have been unable to deploy is on client-side. In my application the error given below is displayed as javascript error in Report Viewer and report is not displayed. But more frustrating part is that I am getting the same error due to different problem with reporting and I am stuck with it as I am unable to figure out what's causing the error now. Earlier this error appeared due to problem with parameter passing to stored procedure which I resolved it and error vanished but once again it has shown up. Moreover this error now appears less frequently and randomly therefore it is even difficult to trace the cause.
Problem with this Web page might prevent it from being displayed properly or functioning properly. In the future, you can display this message by double-clicking the warning icon displayed in the status bar.
Line: 40Char: 12Error: Expected ')'Code: 0URL: http://myServer/myApp/myForms/myReports/ReportViewer.aspx
So can anybody tell me what factors might be causing this errors as the error text is very vague in nature and gives no idea about the actual error.
Guys, I hope for your kind co-operation.
Regards,Post Author: dhuka
CA Forum: Crystal Reports
Thanks for you reply Krishna.
But this syntax error is the one that is creating problem for me as I cannot trace it. The form ReportViewer.aspx contains only a report viewer object which remains un-binded to any ReportDocument even at runtime.
At code behind ReportViewer.aspx I have code below that associates SQL Stored Procedure Parameter and Report Filter along with report name. Once all above is associated with ReportDocument, I export ReportDocument to PDF file format and display the report. Here I dont' even bind ReportDocument with my ReportViewer. Moreover, as I mentioned previously this error is encountered randomly (with no reasonable explanation so far) on client PC (while browsing through application).
I hope below code give you good idea of the way I am implementing my reporting.
Looking forward to you solution. Please note that I am only passing the ReportFileName and Parameter and Filter Criteria to this form while dataTable by itself using the connection information.
<<<<<<<<<<<<<<<<<CODE BEHIND of REPORTVIEWER.ASPX>>>>>>>>>>>
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim strKeys() As String
Dim strReportFilter As String
Dim strReportName As String
Dim strError As structError
Try
ReDim strKeys(0)
If strReportName = "" Then
strReportName = Context.Session("ReportName").ToString()
If Not Session("ReportParameters") = Nothing Then
Dim char_Delimiter() As Char = ";".ToCharArray()
strKeys = Session("ReportParameters").ToString().Split(char_Delimiter)
End If
If Not Session("ReportFilter") = Nothing Then
strReportFilter = Session("ReportFilter").ToString()
End If
Else
Session("DataTable") = Nothing
End If
If Not ViewParameterReport(strReportName, strKeys, strReportFilter, strError) Then
ASPNET_DisplayErrorMessageBox(strError.strMsg, Me)
Exit Sub
End If
Catch ex As Exception
strError.strMsg = Err.Description
ASPNET_DisplayErrorMessageBox(strError.strMsg, Me)
Finally
End Try
End Sub
Private Function ViewParameterReport(ByVal str_ReportName As String, ByVal str_ReportParameters() As String, ByVal strReportFilter As String, ByRef strError As structError) As Boolean
Dim str_ReportPath As String = CStr(ConfigurationSettings.AppSettings.Get("ReportPath"))
Dim crLogInfo As TableLogOnInfo
Dim crConnectionInfo As ConnectionInfo
Try
str_ReportPath = CStr(ConfigurationSettings.AppSettings.Get("ReportPath"))
o_Rpt = New CrystalDecisions.CrystalReports.Engine.ReportDocument
o_Rpt.Load(str_ReportPath & "\rpts\" & str_ReportName)
If Context.Session("DataTable") = "" Then
crLogInfo = New TableLogOnInfo()
crConnectionInfo = New ConnectionInfo()
crLogInfo = o_Rpt.Database.Tables(0).LogOnInfo
crConnectionInfo = o_Rpt.Database.Tables(0).LogOnInfo.ConnectionInfo
clsDbCnn.SetDBProperties()
crConnectionInfo.ServerName = clsDbCnn.Server
crConnectionInfo.DatabaseName = clsDbCnn.Database
crConnectionInfo.UserID = clsDbCnn.UserID
crConnectionInfo.Password = clsDbCnn.Password
crLogInfo.ConnectionInfo = crConnectionInfo
o_Rpt.Database.Tables(0).ApplyLogOnInfo(crLogInfo)
Else
ds_MISReports = New DataSet()
ds_MISReports = CType(Session("DataTable"), DataSet)
o_Rpt.SetDataSource(ds_MISReports)
End If
If Not IsPostBack Then
Dim param_Fields As CrystalDecisions.Shared.ParameterFields = New ParameterFields()
Dim iCount As Integer
If str_ReportParameters.GetUpperBound(0) <> 0 Then
For iCount = 0 To str_ReportParameters.Length - 1 Step 2
o_Rpt.SetParameterValue(CStr(str_ReportParameters(iCount).ToString()), CStr(str_ReportParameters(iCount + 1).ToString()))
Next
o_Rpt.RecordSelectionFormula = strReportFilter
End If
End If
'crViewer.DisplayGroupTree = False
'crViewer.ReportSource = o_Rpt
SetDBLogonForReport(crConnectionInfo, o_Rpt)
Dim TargetFileName As String
Dim fs As System.IO.FileStream
Dim FileSize As Long
Dim GenDS As DataSet
'Dim oRD As New ReportDocument()
Dim crReportObject As CrystalDecisions.CrystalReports.Engine.ReportObject()
Dim oExO As ExportOptions
Dim oExDo As New DiskFileDestinationOptions()
'Build Target Filename
TargetFileName = str_ReportPath & "\Pdfs\" & Session.SessionID & ".pdf"
'Export to PDF
oExDo.DiskFileName = TargetFileName
oExO = o_Rpt.ExportOptions
oExO.ExportDestinationType = ExportDestinationType.DiskFile
oExO.ExportFormatType = ExportFormatType.PortableDocFormat
oExO.DestinationOptions = oExDo
o_Rpt.Export()
o_Rpt.Close()
'Send the file to the user that made the request
Response.Clear()
Response.Buffer = True
Response.AddHeader("Content-Type", "application/pdf")
Response.AddHeader("Content-Disposition", "attachment;filename=MyReport.pdf;")
fs = New System.IO.FileStream(TargetFileName, IO.FileMode.Open)
FileSize = fs.Length
Dim bBuffer(CInt(FileSize)) As Byte
fs.Read(bBuffer, 0, CInt(FileSize))
fs.Close()
Response.BinaryWrite(bBuffer)
Response.Flush()
Response.Close()
o_Rpt = Nothing
Return True
Catch ex As Exception
strError.strMsg = Err.Description
Return False
Finally
crConnectionInfo = Nothing
crLogInfo = Nothing
End Try
End Function
Private Sub SetDBLogonForReport(ByVal myConnectionInfo As ConnectionInfo, _
ByVal myReportDocument As ReportDocument)
Dim myTables As Tables = myReportDocument.Database.Tables
Dim count As Integer
For count = 0 To myTables.Count - 1
Dim myTableLogonInfo As TableLogOnInfo = myTables(count).LogOnInfo
myTableLogonInfo.ConnectionInfo = myConnectionInfo
myTables(count).ApplyLogOnInfo(myTableLogonInfo)
myTables(count).Location = myConnectionInfo.DatabaseName & ".dbo." & myTables(count).Location.Substring(myTables(count).Location.LastIndexOf(".") + 1)
myTables(count).LogOnInfo.ConnectionInfo.ServerName = myConnectionInfo.ServerName()
Next
End Sub -
Urgent: Javascript Error in Portal Navigation
Hi,
We are using EP 6.0 SP 13.
We are facing an issue of Java script error in the portal.
The areas in which the portal is affected are as follows:
1. When we open the Login page of the portal, the Font Type, Size and
formatting and the style of "Log in" button is not normal.
2. After we login, Any component that uses javascript is not working
3. Whenever we execute any BW report we are getting alert box with
message:
"Session Manager will not work!"
4. When we try to log out, again we get scripting error.
5. We are also not able to navigate in User Mangement and Content Management.
Please help as soon as possible.
Regards,
PrasadHello Prasad,
As we are talking about JavaScript errors, it is interesting to know which browser and OS you are using?
INTERNET EXPLORER 5.5 WINDOWS SERVER 2000/IA32 32BIT
Not Released
31.03.2004
INTERNET EXPLORER 6.0 WIN XP 2002 PROF. 32-BIT Released 31.03.2004
INTERNET EXPLORER 6.0 WINDOWS SERVER 2000/IA32 32BIT Released 31.03.2004
INTERNET EXPLORER 6.0 WINDOWS SERVER 2003/IA32 32BIT Released 27.06.2005
INTERNET EXPLORER 7.0 WIN XP 2002 HOME 32-BIT Released 11.12.2006
INTERNET EXPLORER 7.0 WIN XP 2002 PROF. 32-BIT Released 11.12.2006
See the for supported browsers:<a href="https://websmp205.sap-ag.de/~form/handler?_APP=00200682500000001303&_EVENT=RELEASE&00200682500000002804=01200314690900000192&00200682500000003818=WBRPFM&00200682500000003853=Enterprise%20Portal">NW2004_Browsers</a>
Greetings,
Praveen Gudapati
p.s Points are always welcome for helpful answers -
JavaScript error using UIXML to generate frames
Hello all,
I am trying to use the uix:frameBoderLayout and uix:frame elements to generate an HTML page with frames. I get a Javascript error when running the testFrame.uix in JDeveloper 9.0.3. Both MSIE and Netscape yield the same error.
The JavaScript error is:
JavaScript Error:
http://20.19.205.86:8988/pssWeb-pss-context-root/testFrame.uix,
line 1:
_checkLoad is not defined.
The HTML generated is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="ltr" lang="en-US">
<head>
<title>Property Security System Application</title>
<link rel="stylesheet" charset="UTF-8" type="text/css" href="/pssWeb-pss-context-root/cabo/styles/cache/blaf-en-netscape.css">
</head>
<body class="xc" style="background-color:#FFFFE1" onload="_checkLoad(event)" onunload="_checkUnload(event)">
<script src="/pssWeb-pss-context-root/cabo/jsLibs/MarlinCore.js">
</script>
<frameset border="0" rows="100%,*">
<frameset rows="*,0" onresize="if(!frames['_uixJS'].cached){location.reload();}">
<frameset rows="null,*,null">
<frame name="top" marginwidth="5" frameborder="0" marginheight="0" noresize src="topFrame.uix">
<frame name="center" marginwidth="5" frameborder="0" marginheight="0" noresize src="centerFrame.uix">
<frame name="bottom" marginwidth="5" frameborder="0" marginheight="0" noresize src="bottomFrame.uix">
</frameset>
<frame frameborder="0" marginwidth="0" marginheight="0" title="" name="_uixJS" noresize src="/pssWeb-pss-context-root/cabo/jsps/a.jsp?_t=jsCache">
</frameset>
<noframes>
</noframes>
</frameset>
</body>
</html>
<!-- Created by Oracle UIX 2.1.7 -->
_checkLoad is contained in the MarlinCore.js file. That file should be in cabo/jslib/ directory.
Two things strike me odd about the generated HTML code with relation to JavaScript. First, I expect to see JavaScript source files declared in the head portion. Second, the source files is declared after the onload call is made to the _checkLoad function.
The third thing that I can see possibly causing the error is that the MarlinCore.js file is not visible to the server and therefore not delivered to the browser. But I am not certain where to find the files used by the embedded OC4J server.
Is this a bug in 9.0.3?
The uix files follow. All three framed pages (topFrame.uix, centerFrame.uix and bottomFrame.uix) display nicely in the uix preview and run nicely in the embedded OC4J.
testFrame.uix
<?xml version="1.0" encoding="windows-1252"?>
<page xmlns="http://xmlns.oracle.com/uix/controller"
xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
xmlns:html="http://www.w3.org/TR/REC-html40">
<content>
<dataScope xmlns="http://xmlns.oracle.com/uix/ui"
xmlns:data="http://xmlns.oracle.com/uix/ui">
<provider>
<!-- Add DataProviders (<data> elements) here -->
</provider>
<contents>
<document>
<metaContainer>
<!-- Set the page title -->
<head title="Property Security System Application"/>
</metaContainer>
<contents>
<body>
<inlineStyle>
<property name="background-color">#FFFFE1</property>
</inlineStyle>
<contents>
<frameBorderLayout xmlns="http://xmlns.oracle.com/uix/ui">
<top>
<frame name="top" source="topFrame.uix">
</frame>
</top>
<center>
<frame name="center" source="centerFrame.uix">
</frame>
</center>
<bottom>
<frame name="bottom" source="bottomFrame.uix">
</frame>
</bottom>
</frameBorderLayout>
</contents>
</body>
</contents>
</document>
</contents>
</dataScope>
</content>
</page>
topFrame.uix
<?xml version="1.0" encoding="windows-1252"?>
<page xmlns="http://xmlns.oracle.com/uix/controller"
xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
xmlns:html="http://www.w3.org/TR/REC-html40">
<content>
<dataScope xmlns="http://xmlns.oracle.com/uix/ui"
xmlns:data="http://xmlns.oracle.com/uix/ui">
<provider>
<!-- Add DataProviders (<data> elements) here -->
</provider>
<contents>
<document>
<metaContainer>
<!-- Set the page title -->
<head title=""/>
</metaContainer>
<contents>
<pageLayout>
<contents>
<text text ="Top frame"></text>
</contents>
</pageLayout>
</contents>
</document>
</contents>
</dataScope>
</content>
<handlers>
<!-- Add EventHandlers (<event> elements) here -->
</handlers>
</page>
center Frame.uix
<?xml version="1.0" encoding="windows-1252"?>
<page xmlns="http://xmlns.oracle.com/uix/controller"
xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
xmlns:html="http://www.w3.org/TR/REC-html40">
<content>
<dataScope xmlns="http://xmlns.oracle.com/uix/ui"
xmlns:data="http://xmlns.oracle.com/uix/ui">
<provider>
<!-- Add DataProviders (<data> elements) here -->
</provider>
<contents>
<document>
<metaContainer>
<!-- Set the page title -->
<head title=""/>
</metaContainer>
<contents>
<pageLayout>
<contents>
<text text="center frame"></text>
</contents>
</pageLayout>
</contents>
</document>
</contents>
</dataScope>
</content>
<handlers>
<!-- Add EventHandlers (<event> elements) here -->
</handlers>
</page>
bottomFrame.uix
<?xml version="1.0" encoding="windows-1252"?>
<page xmlns="http://xmlns.oracle.com/uix/controller"
xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
xmlns:html="http://www.w3.org/TR/REC-html40">
<content>
<dataScope xmlns="http://xmlns.oracle.com/uix/ui"
xmlns:data="http://xmlns.oracle.com/uix/ui">
<provider>
<!-- Add DataProviders (<data> elements) here -->
</provider>
<contents>
<document>
<metaContainer>
<!-- Set the page title -->
<head title=""/>
</metaContainer>
<contents>
<pageLayout>
<contents>
<text text="bottom frame"></text>
</contents>
</pageLayout>
</contents>
</document>
</contents>
</dataScope>
</content>
<handlers>
<!-- Add EventHandlers (<event> elements) here -->
</handlers>
</page>
Your assistance is appreciated,
BillDid you create the files with JDev 903 preview or JDEV 902? If you created with JDEV 902 and upgraded your project to
903 you need to delete all the files in the cabo directory in your public_html directory. That should get rid of your
javascript errors.
Maybe you are looking for
-
Concatenated field required in the DME format
Dear All, I am using DMEE tree for the format required by the bank. In the format I need to change the field value after concatenating it. For Eg. If the Payment Method of the transaction is 'N' then the value in the output file will be 'N06'. For th
-
JS CS3: Help to reduce running time of my script
Hi We have developed a script to find similiar words/characters at the end/start of 3 or more continous lines. The script has been developed by following steps: 1. Get all lines of the document; 2. Get first 2 characters of first line and compare wit
-
Hi I created the query to have a comparison for this year vs last year sales. This year is base on user input where last year is off set from the input value - 1. Can anyone share with me on how to show the input on the report column heading. eg: in
-
How to display duplicates in Itunes 11
Since I listen to a lot of classical music, accurately synchronizing track titles is very important... And, with an 80 gig Ipod Classic, I cannot get my whole library [95 gigs +] on it at one time...So, with itunes 10, you could display duplicates wh
-
Hi, does anybody have experience with XI and RFID? Regards, Udo