FABridge.flash.root() is null or not an object

Hello everyone! I'm having a problem with Flex-Ajay Bridge in
an aspx page. Days ago I could access flex variables from
javascript without problems, but now I can´t. This is my flex
code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
xmlns="*" layout="absolute" height="194" width="374"
creationComplete="init()">
<fab:FABridge xmlns:fab="bridge.*" bridgeName="flash"
id="flash"/>
<mx:Script>
<![CDATA[
import mx.controls.Alert;
public function init():void
mx.controls.Alert.show("ready");
]]>
</mx:Script>
<mx:Label x="227" y="171" text="Probemos......"
fontSize="14"/>
<mx:TextInput x="140" y="27" id="pki"/>
<mx:TextInput x="140" y="76" id="pkf"/>
<mx:TextInput x="140" y="122" id="nc"/>
<mx:Label x="27" y="29" text="PKI" fontSize="14"/>
<mx:Label x="27" y="78" text="PKF" fontSize="14"/>
<mx:Label x="27" y="123" text="Max. Carriles"
fontSize="14"/>
</mx:Application>
It's just some text boxes and labels. I want to access those
labels from javascript, so I wrote in my html page this:
<html xmlns="
http://www.w3.org/1999/xhtml"
>
<head runat="server">
<title>Inventario de Carriles con Flex</title>
<script
src="JS/FABridge.js"type="text/javascript"></script>
<script type="text/javascript" language="javascript">
function setMessage()
var flexApp = FABridge.flash.root();
alert("1");
alert("2");
flexApp.pki().setText("1");
flexApp.pkf().setText("2");
flexApp.nc().setText("3");
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<table>
<tr>
<td>
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="374"
height="194" >
<param name="movie" value="FlexApp\Inventario.swf"/>
<param name="quality" value="high"/> <
<embed src="FlexApp\Inventario.swf" width="374"
height="194" align="middle" quality="high" pluginspage="
http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash"></embed>
</object>
</td> (...............)
When I click in the button, the js fuction starts executing
but when it tries to initialize the flexApp variable it shows an
error: flexApp.flash.root() is null or not an object.......... can
you please help me? I tried everything and didn't manage to solve
this problem, I know that the flex .swf is initialized but I don't
know why the javascript can't access it :(
Does someone knows what can I do in order to solve this???
Thanks!!!
Regards,
Mariana

Hi,
javascript isn't made by sun, so you won't find it here, but google can help you out:
http://www.google.se/search?hl=sv&ie=UTF-8&q=javascript+forum&btnG=S%C3%B6k&meta=
/Kaj

Similar Messages

  • JavaScript Error with Tree2: NAV_COMMAND is null or not an object

    ello all,
    I am getting the following javascript error when I click on the + image to expand the root node:
    'serverTree:org.apache.myfaces.tree.NAV_COMMAND' is null or not an object
    Following is my jsp code
    <f:view>
    <h:form id="foo">
    <t:tree2 id="serverTree" value="#{productBrowser.treeData}" var="node" varNodeToggler="t" clientSideToggle="false">
    <f:facet name="productsRoot">
    <h:panelGroup>
    <t:graphicImage value="images/yellow-folder-open.png" rendered="#{t.nodeExpanded}" border="0"/>
    <t:graphicImage value="images/yellow-folder-closed.png" rendered="#{!t.nodeExpanded}" border="0"/>
    <h:outputText value="#{node.description}" styleClass="nodeFolder"/>
    <h:outputText value=" (#{node.childCount})" styleClass="childCount" rendered="#{!empty node.children}"/>
    </h:panelGroup>
    </f:facet>
    </t:tree2>
    </h:form>
    </f:view>
    I looked at the source code of HtmlTreeRenderer.java and NAV_COMMAND is defined as follows:
    private static final String NAV_COMMAND = "org.apache.myfaces.tree.NAV_COMMAND";
    I looked in the myfaces.jar and did not find anything inside this path.
    What am I missing?
    Thanks in advance.

    Dean,
    Can you be a bit more specific? What it the difference between "my Application" and "my test application"? What are you doing differently when you are creating these buttons?

  • Trying to create a Photomerge in Bridge, when the files open in Photoshop ( small jegs ) , I get a error message of " Unable to process latte files " / " null is not an object "

    Trying to create a Photomerge in Bridge, when the files open in Photoshop ( small jegs ) , I get a error message of " Unable to process latte files " / " null is not an object "
    Please help

    Wait a second, Photoshop can make lattes now?  Personally I prefer my coffee black, but man have I been under-utilizing this program.

  • Null is not an object

    I'm trying to make a very simple epub and am getting a "null is not an object" error.
    I am finding nothing on why I am getting this error. I have no footnotes, no embedded objects, just text.
    Anyone have an idea why this is heppening and how I can fix it?

    I tried resetting all this in another document, wondering if the file was somehow corrupted and only got the same issue. As a matter of fact, half a dozen other, previously working documents did the same thing.
    So, I wondered if my prefs were toast and trashed them. Same issue.
    Then I tried to export the file as an IDML and opening that document. Lo and behold it exported without problem.
    So I saved the document, and for laughs, re-exported the file.
    Back to the same error.
    The only thing I can think of that may have changed was installing Digital Editions.
    I noticed I don't have "Export to Digital Editions" in my file or export menu. Is there a chance it isn't working or install properly?

  • Upgrade to Apex 4.2 - apex.widget.tabular' is null or not an object

    After upgrading to Apex 4.2 the following error occurrs when loading a page that contains a Group Select List [Plug-in]:
    *'apex.widget.tabular' is null or not an object*
    The error message appears to be related to a Group Select List [Plug-in] item with the following assigned List of Values attributes(options):
    Display Null Value: Yes
    Null Display Value: -
    Null Return Value: NULL
    Note: The application requires a NULL option to be displayed in the list of values (display = '-', value = null). This works fine in Apex 4.1...
    Removing the above values does eliminate the error message. However entering any value into the Null Display Value and Null Return Value item attributes causes the error message to reappear.
    Is this a known Group Select List [Plug-in] issue/bug? Any ideas on how to work around this issue would be greatly appreciated.
    Thx

    Hi,
    http://apex.oracle.com/plugins contains an updated version of the Group Selectlist plug-in (v1.1) which should fix your problem. Just import it into your application and you should be done.
    Regards
    Patrick

  • Persistant Status Bar Notification ... error 'SP.UI.Status' is null or not an object

    I want to show a status bar that needs to be persistent on a page. for this I used the following in my master page
    function ShowStatusBarMessage(title, message)
    var statusId = SP.UI.Status.addStatus(title, message, true);
    SP.UI.Status.setStatusPriColor(statusId, 'yellow'); /* Set a status-color */
    HTML, call the JS method:
    <a onclick="ShowStatusBarMessage('Title'!','Awesome message!')">
    Display Status Bar message!
    </a>
    ref:
    http://www.zimmergren.net/archive/2010/03/17/sp-2010-dynamically-displaying-messages-to-your-users-with-the-notification-and-status-bar-areas-in-sharepoint-2010.aspx
    But what I want is
    to call the function on load. So I used pushed ny function to _spBodyOnLoadWrapper using _spBodyOnLoadFunctionNames.push("YourFunctionName");,
    it throws an error 'SP.UI.Status' is null or not an object
    Next I created and
    deployed a webcontrol and did a registerclientscript, that too gives me 'SP.UI.Status' is null or not an object
    // Define the name and type of the client scripts on the page.
    String csname1 = "AlertScript";
    Type cstype = this.GetType();
    // Get a ClientScriptManager reference from the Page class.
    ClientScriptManager cs = Page.ClientScript;
    // Check to see if the startup script is already registered.
    if (!cs.IsStartupScriptRegistered(cstype, csname1))
    StringBuilder cstext1 = new StringBuilder();
    cstext1.Append("<script type=text/javascript> alert('Hello World!');");
    cstext1.Append("var statusId = SP.UI.Status.addStatus('title', 'message', true);");
    cstext1.Append("SP.UI.Status.setStatusPriColor(statusId, 'yellow'); </");
    cstext1.Append("script>");
    cs.RegisterStartupScript(cstype, csname1, cstext1.ToString());
    What am I missing ?
    How can I get to show a status bar on load of any page, just as you get a health analyzer message when you get into the Central Admin?
    Thanks, Mano
    Mano Mangaldas | Blog : http://howtosharepoint.blogspot.com 

    Ok, for some reason, it is not working for me. Below are the code that didnt work for me
    <script type="text/javascript">
    function ShowStatusBarMessage(title, message)
    var statusId = SP.UI.Status.addStatus(title, message, true);
    SP.UI.Status.setStatusPriColor(statusId, 'red');
    ShowStatusBarMessage('Title!','Awesome message!');
    </script>
    This too didnt work
    <script type="text/javascript">
    function ShowStatusBarMessage()
    var statusId = SP.UI.Status.addStatus('Some title', 'Some message', true);
    SP.UI.Status.setStatusPriColor(statusId, 'red');
    _spBodyOnLoadFunctionNames.push("ShowStatusBarMessage");
    </script>
    I did try to register client script block programatically, that too didnt work
    String csname1 = "AlertScript";
    Type cstype = this.GetType();
    // Get a ClientScriptManager reference from the Page class.
    ClientScriptManager cs = Page.ClientScript;
    // Check to see if the startup script is already registered.
    if (!cs.IsStartupScriptRegistered(cstype, csname1))
    StringBuilder cstext1 = new StringBuilder();
    cstext1.Append("<script type=text/javascript>");
    cstext1.Append("var statusId = SP.UI.Status.addStatus('title', 'message', true);");
    cstext1.Append("SP.UI.Status.setStatusPriColor(statusId, 'yellow'); </");
    cstext1.Append("script>");
    cs.RegisterStartupScript(cstype, csname1, cstext1.ToString());
    Any help appreciated.
    But the below code works..
    <script type="text/javascript">
    function ShowStatusBarMessage(title, message)
    var statusId = SP.UI.Status.addStatus(title, message, true);
    SP.UI.Status.setStatusPriColor(statusId, 'yellow'); /* Set a status-color */
    </script>
    <a onclick="ShowStatusBarMessage('Title!','Awesome message!')" href="#">
    Display Status Bar message!
    </a>
    Thanks
    mano
    Mano Mangaldas | Blog : http://howtosharepoint.blogspot.com 

  • Apex 4.1 IR: $.datepicker._curInst' is null or not an object

    Funniest thing after upgrade from 4.0 to 4.1 - Getting page error on IR when trying to create filters:
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
    Timestamp: Mon, 26 Sep 2011 17:36:52 UTC
    Message: '$.datepicker._curInst' is null or not an object
    Line: 18
    Char: 130532
    Code: 0
    URI: https://xxxxxxxxxxxxx/i/javascript/apex_4_1.min.js
    Message: '$.datepicker._curInst' is null or not an object
    Line: 18
    Char: 130532
    Code: 0
    URI: https://xxxxxxxxxxxxx/i/javascript/apex_4_1.min.js
    Message: '$.datepicker._curInst' is null or not an object
    Line: 18
    Char: 130532
    Code: 0
    URI: https://xxxxxxxxxxxxx/i/javascript/apex_4_1.min.js
    Message: '$.datepicker._curInst' is null or not an object
    Line: 18
    Char: 130532
    Code: 0
    URI: https://xxxxxxxxxxxxx/i/javascript/apex_4_1.min.js
    Message: '$.datepicker._curInst' is null or not an object
    Line: 18
    Char: 130532
    Code: 0
    URI: https://xxxxxxxxxxxxx/i/javascript/apex_4_1.min.js
    And the problem solution:
    Check your IR columns. The problem occurs when column without heading exists. I had one column with &npsp; heading. I renamed that column and now IR works fine.
    Greetings from Slovenia,
    Mitja Mavrič

    I am unable to reproduce the issue from my side, since it is JavaScript issue, i would suggest to clear the browser cache, history, Temporary internet files and then try again.

  • Context Menu error: 'length' is null or not an object

    When we run some of our reports (BI 7.0) and right click on the table to display the context menu we get a javascript error in the bottom left of Internet Explorer. The context menu doesn't appear.
    Once you expand the error is  'length' is null or not an object. It doesn't affect all the reports in fact so far we've only discovered 2 reports with this problem although there may be more.
    The reports with problems have had their own individual web templates developed. We haven't developed much of our own Javascript via the script web item and definitely none that would affect the context menu. The only code we have opens help pages/useful web pages/other apps etc. via buttons.
    None of the reports shows an error when you validate in the WAD software.
    We are currently using IE6 (upgrading to IE8 soon) and we have recently applied SP21 on the Java Stack.

    Hi Fred
    Did SAP come back with an OSS note to correct this issue. I am not finding anything in the Service marketplace.
    Thanks
    Adrian

  • Parent.EPCM is null or not an object

    Hi gurus,
    I have created a portal page in pcd. And uploaded an html file in KM.
    Now in this html, on click of a link I want to load the portal page of pcd.
    So i wrote following script -
    <script>
    function doNavigate(path) {
        parent.EPCM.doNavigate('ROLES://' + path);
    </script>
    and the html code -
    <a href="javascript:doNavigate('portal_content/test/iviews/com.test.testPage');">Goto Portal Test Page</a>
    when i click on the link, it gives me error in statusbar - <b>"parent.EPCM is null or not an object"</b>
    Please help me to solve this problem.
    Any help will be appreciated.
    Its urgent !
    Regards,
    Ami

    Hi Ami,
    If you include the following line in the head of your KM html file it will work. This javascript contains the EPCM object. You need to change your doNavigate to just EPCM.doNavigate, so without "parent".
    <SCRIPT src="/irj/portalapps/com.sap.portal.epcf.loader/script/standard/js13_epcf.js"></SCRIPT>
    Regards,
    Johan

  • 'document' is null or not an object with IE7. All fine with IE6

    Hi experts,
    my bsp application work fine with internet explorer 6.
    with IE 7 doesn't work correctly.
    the error appears after uploading pdf document.
    We have a "runtime error occurred"
    'document' is null or not an object
    Line: 74
    Do you want debug? (yes or not)
    After yes selection,
    we can see that error occurs in line with
    var rowStyleClassObj = document.getElementById(rowStyleClassId);
    ( in effect document is undefined in debug.)
    of the standard function htmlbClientMultiSelect.
    function htmlbClientMultiSelect(chk,prevchk,row,rowStyleClassId)
    -->> var rowStyleClassObj = document.getElementById(rowStyleClassId);
    if(rowStyleClassObj.className=="sapETbvSelIndicatorFalse"){
    rowStyleClassObj.className="sapETbvSelIndicatorTrue";
    document.getElementById(chk+row).value = row;
    document.getElementById(prevchk+row).value = row;
    else if(rowStyleClassObj.className=="sapETbvSelIndicatorTrue"){
    rowStyleClassObj.className="sapETbvSelIndicatorFalse";
    document.getElementById(chk+row).value = "";
    document.getElementById(prevchk+row).value = "";
    this function is defined in controls_ie5.js file.
    I try with "Design 2003" but the problem not solved.
    I applied the 2 notes 986254 and 1005093 but not solved.
    My level patch is SAP_BASIS 700  SAPKB70010 Componenti di base SAP
    Could you help me?
    Thank's in advance.

    Hi Neil Occhiochiuso!
    Please could you help me?? I have the same problem related by you, but with IE 8.
    Do you solve the problem?? How?
    Thank you, Wilson

  • 'gReport' is null or not an object - Interactive Report

    I'm getting a "'gReport' is null or not an object" error when attempting to use the Search bar in an Interactive Report. Based on googling and searching this forum, it seems likely that the Javascript on the page is interferring w/ the Interactive report somehow. I don't know enough about APEX and Javascript (I snagged the code from another application, and made some changes) to debug it, so I was hoping you guys could help.
    Here's the Javascript on my page:
    Header Text:
    <script language="javascript">
        function OnPageLoad() {
            var cmdButton;
            cmdButton = document.getElementById('CMD_P10_BASEPRODUCT');
            cmdButton.onclick = null;
            cmdButton.attachEvent("onclick", cmdSelectBaseproduct_onClick);
            cmdButton = document.getElementById('CMD_P10_CUSTOMER');
            cmdButton.onclick = null;
            cmdButton.attachEvent("onclick", cmdSelectCustomer_onClick);
            cmdButton = document.getElementById('CMD_P10_PRODUCT');
            cmdButton.onclick = null;
            cmdButton.attachEvent("onclick", cmdSelectProducts_onClick);
            cmdButton = document.getElementById('CMD_P10_VERSION');
            cmdButton.onclick = null;
            cmdButton.attachEvent("onclick", cmdSelectVersion_onClick);
            cmdButton = document.getElementById('CMD_P10_RUNREPORT');
            DisableItems();
        function cmdSelectBaseproduct_onClick() {
            PopupCriteriaListButton1_onClick('H_P10_BASEPRODIDLIST', 'TXT_P10_BASEPRODUCT', 26, 350, 300);
            DisableItems();
            GetPageURL();
        function cmdSelectProducts_onClick() {
            PopupCriteriaListButton3_onClick('H_P10_PRODUCTIDLIST', 'TXT_P10_PRODUCT', 22, 1350, 575);
            DisableItems();
        function cmdSelectVersion_onClick() {
            PopupCriteriaListButton4_onClick('H_P10_VERSIONIDLIST', 'TXT_P10_VERSION', 21, 1550, 575);
            DisableItems();
        function cmdSelectCustomer_onClick() {
            PopupCriteriaListButton3_onClick('H_P10_CUSTOMERIDLIST', 'TXT_P10_CUSTOMER', 14, 1350, 575);
            DisableItems();
        function PopupCriteriaListButton1_onClick(hiddenInputControlName, strTextControlName, intPopupPageID,
    intWidth, intHeight) {
            var strIDList = document.getElementById(hiddenInputControlName).value.replace(new RegExp(/,/g),
    "_") + ',' + document.getElementById('CBO_P10_PRODUCTLINE').value;
            var itemVal = document.getElementById('CBO_P10_PRODUCTLINE').value;
            var returnValue = OpenDialog(intPopupPageID, true, intWidth, intHeight, 'H_P' + intPopupPageID +
    '_IDLIST,CBO_P10_PRODUCTLINE', strIDList);
            if (returnValue != undefined && returnValue != null && returnValue.length > 0) {
                document.getElementById(hiddenInputControlName).value = returnValue.split('|')[0];
                document.getElementById(strTextControlName).value = returnValue.split('|')[1];
        function PopupCriteriaListButton3_onClick(hiddenInputControlName, strTextControlName, intPopupPageID,
    intWidth, intHeight) {
            var strIDList = document.getElementById(hiddenInputControlName).value.replace(new RegExp(/,/g),
    "_") + ',' + document.getElementById('H_P10_BASEPRODIDLIST').value;
            var returnValue = OpenDialog(intPopupPageID, true, intWidth, intHeight, 'H_P' + intPopupPageID +
    '_IDLIST,H_P10_BASEPRODIDLIST', strIDList);
            if (returnValue != undefined && returnValue != null && returnValue.length > 0) {
                document.getElementById(hiddenInputControlName).value = returnValue.split('|')[0];
                document.getElementById(strTextControlName).value = returnValue.split('|')[1];
    function PopupCriteriaListButton4_onClick(hiddenInputControlName, strTextControlName, intPopupPageID,
    intWidth, intHeight) {
            var strIDList = document.getElementById(hiddenInputControlName).value.replace(new RegExp(/,/g),
    "_") + ',' + document.getElementById('H_P10_PRODUCTIDLIST').value;
            var returnValue = OpenDialog(intPopupPageID, true, intWidth, intHeight, 'H_P' + intPopupPageID +
    '_IDLIST,H_P10_PRODUCTIDLIST', strIDList);
            if (returnValue != undefined && returnValue != null && returnValue.length > 0) {
                document.getElementById(hiddenInputControlName).value = returnValue.split('|')[0];
                document.getElementById(strTextControlName).value = returnValue.split('|')[1];
    </script>
    Page HTML Body Attribute:
    onload="OnPageLoad();"

    Hi Jari,
    The below function used work perfectly in APEX 3.2 for
    Pulling Page2 IR Report into Page1 Region having
    but in APEX 4.0, I am getting "gReport is undefined" when I click on IR Toolbar/Control panel like Action or Go
    function periodRep(){
    $.ajax({
    type: "POST",
    url: "wwv_flow.show",
    data: {
    p_flow_id : $v('pFlowId'),
    p_instance : $v('pInstance'),
    p_flow_step_id : "2",
    p_request : ""
    dataType : "html",
    success : function(data){
    var startTag = '<apex2ajax>';
    var endTag = '</apex2ajax>';
    var start = data.indexOf(startTag);
    if (start > 0) {
    data = data.substring(start+startTag.length);
    var end = data.indexOf(endTag);
    data = data.substring(0,end);
    $("div#XXHOLDER").html(data);
    $x_Value('pFlowStepId', "2");
    if($('#apexir_CONTROL_PANEL_COMPLETE').length > 0){
    if(!($('#apexir_CONTROL_PANEL_COMPLETE').css('display') == 'none')){
    gReport = new apex.worksheet.ws('');
    gReport.toggle_controls($x('apexir_CONTROL_PANEL_CONTROL'));
    }); //ajax
    }//periodRep
    Please help
    Thanks
    -Senthil K

  • 'schInternalColumn' is null or not an object - Error in DIS

    Hi all..
    When I am going to paste any document in DIS, " 'schInternalColumn' is null or not an object " this error comes with check in page...
    What is the issue behind this...Please help me..
    Regards
    Yogita

    Hi Yogita ,
    This issue has got introduced from 0717 patchset that is provided for UCM server , it is already fixed and a patch will be released for the same soon .
    You can select OK (I think it shows up around 7 times) and continue with the operations on DIS . It does not break any functionality .
    Thanks
    Srinath
    Edited by: Srinath Menon on Sep 5, 2012 12:54 PM

  • Undefined is null or not an object

    Hi,
    While using surface prompt in 11.1.1.7 in ie8 , it is throwing error "Undefined is null or not an object" and it is in "Opening" state.
    I have tried deleting cache .
    Please could anybody help.
    Thanks and Regards

    Hi,
    While using surface prompt in 11.1.1.7 in ie8 , it is throwing error "Undefined is null or not an object" and it is in "Opening" state.
    I have tried deleting cache .
    Please could anybody help.
    Thanks and Regards

  • Please help!!  error: __EventTarget is null or not an object

    Hi,
    I am developing the business charts with dropdownlist in ASP.NET for our new plumtree portal.
    The portlets are working perfectly in the VS.NET dev environment, However, whenever I change the selection in the dropdownlist, it doesn't post back but I got an IE error which appears with a little yellow warning sign on the lower left corner of the IE window, which means, the error is on client side.
    The error : '_EVENTTARGET' is null or not an object .
    I have a feeling that there's something wrong with the javascript behind the sceen when ASP.NET controls try to plug in Plumtree web pages. Since I don't know how to access those Plumtree javascripts, can someone help me out here!!
    (If I right click on the web page to get the source code, here's what I found :
    <input type="hidden" name="__EVENTTARGET" value="" />
    <input type="hidden" name="__EVENTARGUMENT" value="" />
    <input type="hidden" name="__VIEWSTATE" value="...................." />
    <script language="javascript" type="text/javascript">
    <!--
         function __doPostBack(eventTarget, eventArgument) {
              var theform;
              if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
                   theform = document.Form1;
              else {
                   theform = document.forms["Form1"];
              theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
              theform.__EVENTARGUMENT.value = eventArgument;
              theform.submit();
    // -->
    </script>
    Thank you in advance.

    I was also running in the same issue with slightly different settings/environment.
    I had couple of portlets written in .Net on one page. One was written in .Net 1.1 and other one was .Net 3.5 with Ajax Extender controls. (Both the apps run fine without portal - ALUI 6.1 environment)
    Couple of the link buttons were generating the same error '__EVENTTARGET' is null or not an object , these link buttons were trigger to an update panel.
    I tried registering the __EVENTTARGET with the link buttons from the code behind, making the form names same ... .. but nothing helped.
    In my case I had to change the asp:LinkButton to asp:Button to avoid __EVENTTARGET generation for the controls.
    __EVENTTARGET is only generated for autopostback controls (or in other words controls that do not have submit behavior by default). It is not required for asp:Button.
    HTH!
    Avinash
    Edited by asolvent at 03/12/2008 4:08 PM

  • 'bobj.crv.params.FlexParameterUI' is null or not an object

    I'm having a problem getting my report to display in the DHTML viewer.<br>
    <br>
    My test environment:<br>
    - Windows XP SP3<br>
    - Tomcat 5.5 with JDK 1.6.0_17<br>
    - PostgreSQL 8.4 (Windows version)<br>
    - Report designed using JDBC driver - postgresql-8.4-701.jdbc3.jar<br>
    - I'm not using Eclipse or the reporting tag libraries (just Notepad)<br>
    <br>
    I can get my report with saved data to work just fine in the DHTML viewer but I keep getting the following error every time I try to view it in the viewer:<br>
    <br>
    'bobj.crv.params.FlexParameterUI' is null or not an object<br>
    <br>
    For testing purposes, I tried the samples available and this is what my results were:<br>
    <br>
    1. Java_CRJ12_Web_Set_DB_Logon sample works fine.  I edited the index.html to include my report (without saved data) and it successfully generates a PDF export which it prompts me to open or save.  So this works fine and I verified the data in the PDF document.<br>
    <br><br>
    2. Java_CRJ12_Web_View sample fails with the error I've mentioned above.<br>
    <br>
    This is code I'm using<br>
    jrc_view_report.jsp<br>
    <%@page contentType="text/html"%>
    <%//Crystal Java Reporting Component (JRC) imports.%>
    <%@page import="com.crystaldecisions.sdk.occa.report.application.*" %>
    <%@page import="com.crystaldecisions.sdk.occa.report.lib.*" %>
    <%@page import="com.crystaldecisions.sdk.occa.report.application.DatabaseController" %>
    <%
    //Report can be opened from the relative location specified in the CRConfig.xml, or the report location
    //tag can be removed to open the reports as Java resources or using an absolute path (absolute path not recommended
    //for Web applications).
    final String REPORT_NAME = "PP30_DupPayments.rpt";
    %>
    <%
    try {
         //Open report.
         ReportClientDocument reportClientDoc = new ReportClientDocument();
         reportClientDoc.setReportAppServer(ReportClientDocument.inprocConnectionString);
         reportClientDoc.open(REPORT_NAME, 0);
         reportClientDoc.getDatabaseController().logon("postgres", "sa");
         //Store the report source in session, will be used by the CrystalReportViewer.
         session.setAttribute("reportSource", reportClientDoc.getReportSource());
         //Launch CrystalReportViewer page that contains the report viewer.
         response.sendRedirect("CrystalReportViewer.jsp");
    catch(ReportSDKException ex) {     
         out.println(ex);
    catch(Exception ex) {
         out.println(ex);               
    %>
    <br>
    <br>
    CrystalReportViewer.jsp<br>
    <%@ page contentType="text/html; charset=utf-8"
             import="com.crystaldecisions.report.web.viewer.CrystalImageCleaner,
                     com.crystaldecisions.report.web.viewer.CrystalReportViewer,
                     com.crystaldecisions.report.web.viewer.CrPrintMode"
    %><%
    Object reportSource;
    CrystalReportViewer crystalReportViewer;
    * Retrieve ReportSource from HTTP Session and pass to CrystalReportViewer.
    reportSource = session.getAttribute("ReportSource");
    crystalReportViewer = new CrystalReportViewer();
    crystalReportViewer.setOwnPage(true);
    crystalReportViewer.setPrintMode(CrPrintMode.ACTIVEX);
    crystalReportViewer.setReportSource(reportSource);
    crystalReportViewer.processHttpRequest(request, response, getServletContext(), null);
    %><%!
    * Start image clieanup thread on JSP load.
    * Scan temp folder every 10 minutes to delete viewer-generated images 20 minutes or older.
    public void jspInit() {
        CrystalImageCleaner.start(getServletContext(),  10 * (60 * 1000), 20 * (60 * 1000));
    * Stop the image cleanup thread on JSP unload.
    public void jspDestroy() {
        CrystalImageCleaner.stop(getServletContext());
    %>
    <br><br>
    Things I know:<br>
    - web.xml appears to be configured correctly<br>
    - CRconfig.xml appears to be working as well (as my PDF document looked good<br>
    I'm using these crjava libraries:<br>
    http://downloads.businessobjects.com/akdlm/crystalreportsforeclipse/2_0/crjava-runtime_12.2.204.zip<br>
    <br>
    I don't think my markup formatting came through correctly - sorry about the code format.

    Hi Ted!
    Thanks for the reply and suggestions.  I don't know if there is a different version of the viewers folder that I should be using but I am using the ones from this folder:
    C:\Program Files\Business Objects\Common\4.0\crystalreportviewers12
    That said, I didn't see anything amiss in Fiddler and when I looked in Firebug at the script portion where it was constructing the FlexParameterUI panel, I could see where it was capturing the report parameter names and prompts.  I decided to rip out all the parameters out of my report and voila, it loaded up fine in the viewer.
    I then added a new string parameter giving it a simple short name (Test1) and, initially, I did not use this parameter in the report.  It loaded up in the viewer just fine too.
    I then added the parameter to the report header and I was back to the same problem - it would not load in the viewer and the error was the same as the subject line shows.
    For the record, I am using Crystal Reports 2008 v12.2.0.290
    So is there some other crystalreportviewers12 that I should be using?
    Kind regards,
    Evan

Maybe you are looking for

  • CostCentre in Purchasing Cube

    Hi All,     I am using a standard SAP Business content Cube 0PUR_C01.Extractor are 2LIS_02_ITM and 2LIS_02_SCL.We have got a new requirement to see CostCentres in this report.None of these extractors have 0COSTCENTER,instead there is an other extract

  • How to display a value from Select List by default

    I have a Select List on a form and I need to on page load show an entry from the SL depending on the user Id of the user logged on.  For example, if the SL had 3 entries: 'Div1', 'Div2', and 'Div3', depending on the division the user belongs to (I ca

  • Problems with reading a pdf-file using Safari/Adobe Acrobat Pro

    Using Adobe Acrobat Pro 9.5.5. and Safari in Snow Leopard I open the pdf-file of  http://dare.uva.nl/document/505726 and small boxes appear in the text f.i. on page 70, 74, on the last page etc. I don't know why those small boxes appear only on my Ma

  • The following error message appears when I try to create a PDF in Publisher:

    The following error message appears when I try to create a PDF in Publisher: PDFMaker cannot locate the Adobe PDF Printer's printer driver. Please re-install Adobe Acrobat 10.1. I have tried update patches to no avail. Can anyone please help? Thank y

  • Time contraint for wage types which are the subtypes of the Infotypes.....

    Dear Sap folks , Anybody can explain that "what is the role of "Time contraint"(Once / Sev.Times) for wage types which are the subtypes of the Infotypes like IT0015 and  IT0014 (V_T512Z). Thanks & Rgards Maria Carlos Perera