Javascript error on SharePoint page

Hi Team,
I'm updating a list column value by comparing a value of field from the same list using JS. It is working fine. But throwing javascript error on the page. 
Below is the snippet.
var web = null;
var clientContext = null;
var list = null;
var item = null;
var reviewStatus = null;
$(document).ready(function () {
setInterval(function () {
$Text = $("td.ms-cellstyle.ms-vb2:contains('No')");
$Text.parent().css("background-color", "#FFb3BD");
$("input[name='teamCheckbox']").change(function () {
var controlid = $(this).attr("id");
var parts = controlid.split('_');
var itemID = parts[1];
clientContext = new SP.ClientContext(_spPageContextInfo.webAbsoluteUrl);
var list = clientContext.get_web().get_lists().getById(_spPageContextInfo.pageListId);
item = list.getItemById(itemID);
clientContext.load(item);
clientContext.load(item, 'Status');
clientContext.executeQueryAsync(Function.createDelegate(this, LoadStatus), Function.createDelegate(this, onQueryFailed));
}, 900);
function LoadStatus() {
reviewStatus = item.get_item('Status');
if(reviewStatus)
item.set_item('Status', 0);
item.update();
clientContext.load(item);
clientContext.executeQueryAsync(Function.createDelegate(this, UpdateNo), Function.createDelegate(this, onQueryFailed1));
}else
item.set_item('Status', 1);
item.update();
clientContext.load(item);
clientContext.executeQueryAsync(Function.createDelegate(this, UpdateYes), Function.createDelegate(this, onQueryFailed1));
function onQueryFailed() {
alert("Request Failed at 1st asych");
function onQueryFailed1(){
alert("Request Failed at 2nd asynch");
function UpdateYes() {
//reviewStatus = null;
function UpdateNo()
//reviewStatus = null;
I'm getting the below JS error :
Message: The property or field has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested. URI: _layouts/15/sp.debug.js?rev=vK8qdKxCg9qccxdMK5Ebzg%3D%3D
$Q_2: function SP_ListItem$$Q_2($p0) {
var $v_0 = (this.get_fieldValues())[$p0];
if (SP.ScriptUtility.isUndefined($v_0)) {
throw Error.create(SP.ResResources.getString(SP.ResourceStrings.propertyHasNotBeenInitialized));
return $v_0;
I have tried by calling the 2nd async query by changing to item.get_Context(); doesn't helped me.
Please suggest how to kill this error...
Thanks,
Bharath P N
P N Bharath

Hi Dennis,
I had tried by updating the script. But it is failing in update the list item. Please let me know if i'm doing wrong?
$(document).ready(function () {
setInterval(function () {
$Text = $("td.ms-cellstyle.ms-vb2:contains('No')");
$Text.parent().css("background-color", "#FFb3BD");
$("input[name='teamCheckbox']").change(function () {
var controlid = $(this).attr("id");
var parts = controlid.split('_');
var itemID = parts[1];
var ctx = GetCurrentCtx();
var listName = ctx.ListTitle;
var url = _spPageContextInfo.webAbsoluteUrl;
var currentStatus = null;
var Status = null;
getListItemWithId(itemID, listName, url, function (data) {
if (data.d.results.length == 1) {
currentStatus = data.d.results[0].Status;
}, function (data) {
alert("Error in GetListItemwithID method");
if (currentStatus) {
Status = 0;
updateListItem(url, listName, itemID, Status, function () {
alert("Item updated, refreshing avilable items");
}, function () {
alert("Ooops, an error occured. Please try again");
} else {
Status = 1;
updateListItem(itemID, listName, url, Status, function () {
alert("Item updated, refreshing avilable items");
}, function () {
alert("Ooops, an error occured else loop. Please try again");
}, 900);
function getListItemWithId(itemId, listName, siteurl, success, failure) {
var url = siteurl + "/_api/web/lists/getbytitle('" + listName + "')/items?$filter=Id eq " + itemId;
$.ajax({
url: url,
method: "GET",
headers: { "Accept": "application/json; odata=verbose" },
success: function (data) {
success(data);
error: function (data) {
failure(data);
function GetItemTypeForListName(name) {
return "SP.Data." + name.charAt(0).toUpperCase() + name.split(" ").join("").slice(1) + "ListItem";
function updateListItem(itemId, listName, siteUrl, title, success, failure) {
var itemType = GetItemTypeForListName(listName);
var item = {
"__metadata": { "type": itemType },
"Status": title
getListItemWithId(itemId, listName, siteUrl, function (data) {
$.ajax({
url: data.d.results[0].__metadata.uri,
type: "POST",
contentType: "application/json;odata=verbose",
data: JSON.stringify(item),
headers: {
"Accept": "application/json;odata=verbose",
"X-RequestDigest": $("#__REQUESTDIGEST").val(),
"X-HTTP-Method": "MERGE",
"If-Match": data.d.results[0].__metadata.etag
success: function (data) {
success(data);
error: function (data) {
failure(data);
}, function (data) {
failure(data);
P N Bharath

Similar Messages

  • Javascript Error with UIX Page

    Hi all,
    I am using JHeadstart 10.1.2.2.32 with JDeveloper 10.1.2.1.0 to develop UIX pages. I have run into the following problem with one of my UIX pages. We have a page with a table view which uses sortable headers. In certain situations when using the sortable headers in IE 6.0.2900.2180, a javascript error appears. This does not occur using Firefox.
    It says:
    Line: 2894
    Char: 1
    Error: 'type' is null or not an object
    Code: 0
    URL: (the URL of the page)
    I have figured out that the error is occuring in the Common2_2_20.js file on the following line, which is part of the function _multivalidate:
    var a7 = a6.type; The error only occurs in the following situation. If the user has just logged into the system and certain rows in the table are read-only and others are editable. If you click on any of the sortable headers, it will sort fine the first time. However, if you click on the sortable header again, the javascript error appears. It only happens if you click on the sortable headers twice in a row.
    I have tried taking out the line of code, but then I can not sort the headers at all.
    I read in the forum that the error can occur because of the way IE handles the compression of javascript files. We changed the setting on the app server to not compress javascript files. I then undeployed and redeployed the application. However the same error is still occuring.
    If you need any more information, please let me know. Thanks in advance.
    Susan

    We found out that we had a custom script on the page that was interfering with script in the Common2_2_20.js. By moving the script to the end of our page, it solved our problem.
    Susan

  • Javascript errors on Novell page

    On Novell Documenttation pages i get this error :
    A JavaScript error has occurred on this page! Please note down the following information and pass it on to the Webmaster..
    Error: eval(docName + (".getElementById(\"" + objName + "\")")) is null
    Page: http://www.novell.com/documentation/docui_a/docnav.js
    Line: 20
    Browser: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
    example :
    http://www.novell.com/documentation/gw8/gw8_admin/?page=/documentation/gw8/gw8_admin/data/a2zvyc4.html
    i tested IE , Opera and Chrome without problems.

    On Novell Documenttation pages i get this error :
    A JavaScript error has occurred on this page! Please note down the following information and pass it on to the Webmaster..
    Error: eval(docName + (".getElementById(\"" + objName + "\")")) is null
    Page: http://www.novell.com/documentation/docui_a/docnav.js
    Line: 20
    Browser: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
    example :
    http://www.novell.com/documentation/gw8/gw8_admin/?page=/documentation/gw8/gw8_admin/data/a2zvyc4.html
    i tested IE , Opera and Chrome without problems.

  • Javascript error for Inserting Pages from a source

    Below is a script I wrote that isn't functioning properly on my large 200 page document that I need it to. Granted there might be a much easier way to script this, but I'm no expert. I have a 200 page document that needs to be 600 pages, basically every page needs to be copied twice (and obviously placed right after the original. So I have the original PDF, then I copied that PDF to use as a source document to copy from. (To clarify if I'm not being clear, the first 3 pages would be page 1, 2, 3,... it needs to be: 1,1,1,2,2,2,3,3,3 etc)
    var targetpage = 0;
    var sourcepage = 0;
    while(sourcepage < 199)
        this.insertPages({
            nPage: targetpage,
            cPath: "source.pdf",
            nStart: sourcepage,
            nEnd: sourcepage
        targetpage++;
        this.insertPages({
            nPage: targetpage,
            cPath: "source.pdf",
            nStart: sourcepage,
            nEnd: sourcepage
        sourcepage++;
        targetpage=targetpage+2;
    It gives me an error that I have no idea means, nor how to correct after only placing a total of 3 pages - so the doc went from 200 to 203 (2 of page 1 as intended, then 1 page of page 2, then for some reason it stops...
    InvalidArgsError: Invalid arguments.
    Doc.insertPages:9:Batch undefined:Exec
    Why is it stopping? And please don't assume I know what I'm doing Thank you.

    Have you read the Acrobat JS API Reference about the insertPages and the path value and restrictions?
    insertPages now needs to use the "privileged context" when not being run as a console or batch event.
    Safe path
    Acrobat 6.0 introduced the concept of a safe path for JavaScript methods that write data to the local hard drive based on a path passed to it by one of its parameters.
    A path cannot point to a system critical folder, for example a root, windows or system directory. A path is also subject to other unspecified tests.
    For many methods, the file name must have an extension appropriate to the type of data that is to be saved. Some methods may have a no-overwrite restriction. These additional restrictions are noted in the documentation.
    Generally, when a path is judged to be not safe, a NotAllowedError exception is thrown (see Error object) and the method fails.

  • Javascript error on jspx page

    Hello all,
    I am using ADF BC and ADF faces with JDEV version 11.2. I have issue where I have a popup on a page to create a row. Lately, I keep getting error in javascript as x269.getPeer().setBusy(x269,true); I used firebug to get this information and the line is in boot-SHEPHERD-PS1-9296.js
    I am not able to see why I get this error. Does anyone have a clue or resolution to this issue? I am pasting the code of jspx page below -
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:messages id="m1"/>
    <af:form id="f1">
    <af:pageTemplate viewId="/templates/twocol-fixedheader-nomenu.jspx"
    value="#{bindings.pageTemplateBinding}" id="pt1">
    <f:facet name="left">
    <af:panelGroupLayout id="pgl1" layout="vertical">
    <af:panelAccordion id="pa1">
    <af:showDetailItem id="sdi1" stretchChildren="first">
    <af:train value="#{controllerContext.currentViewPort.taskFlowContext.trainModel}"
    id="t1" layout="vertical"/>
    </af:showDetailItem>
    </af:panelAccordion>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="center">
    <af:panelGroupLayout id="pgl3" layout="vertical">
    <af:panelHeader text="#{res['create.writeoff.approvalflow']}"
    id="ph1">
    <f:facet name="context"/>
    <f:facet name="menuBar"/>
    <f:facet name="toolbar">
    <af:panelGroupLayout id="pgl2" layout="horizontal">
    <af:trainButtonBar value="#{controllerContext.currentViewPort.taskFlowContext.trainModel}"
    id="tbb1"/>
    <af:toolbar id="t2">
    <af:commandToolbarButton text="#{res['button.save.title']}"
    id="ctbWriteOffExit"
    action="Save" immediate="true"/>
    <af:commandToolbarButton text="#{res['button.exit.title']}"
    id="commandToolbarButton1"
    action="Cancel"
    immediate="true"/>
    </af:toolbar>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="legend">
    <af:outputFormatted value="WO#{bindings.Id.inputValue} : #{bindings.Title.inputValue}"
    id="of2"/>
    </f:facet>
    <f:facet name="info"/>
    <af:panelGroupLayout id="pgl4" layout="horizontal">
    <af:spacer width="0" height="10" id="s2"/>
    <af:outputFormatted id="of1"
    value="#{res['create.writeoff.approvalflow.info']}"/>
    </af:panelGroupLayout>
    </af:panelHeader>
    <af:separator id="s1"/>
    <af:panelGroupLayout id="pgl5" layout="horizontal">
    <af:commandToolbarButton id="ctb2"
    text="#{res['button.insert.title']}"
    rendered="#{UserInfoBean.approver}">
    <af:showPopupBehavior popupId="p1"/>
    </af:commandToolbarButton>
    <af:commandToolbarButton id="commandToolbarButton2"
    text="#{res['button.delete.title']}"
    rendered="#{pageFlowScope.WriteOffBean.addedByUser == 'Y' and pageFlowScope.WriteOffBean.approverAddedBy == UserInfoBean.employeeLanId or backingBeanScope.AuthorizationBean.sysAdminRole}"
    action="#{TableBean.deleteApprover_action}"/>
    <af:commandToolbarButton id="commandToolbarButton3"
    text="Insert Before">
    <af:showPopupBehavior popupId="p3"/>
    </af:commandToolbarButton>
    <af:commandToolbarButton id="commandToolbarButton4"
    text="Insert After">
    <af:showPopupBehavior popupId="p3"/>
    </af:commandToolbarButton>
    </af:panelGroupLayout>
    <af:table value="#{bindings.WoApproverVO11.collectionModel}"
    var="row" rows="#{bindings.WoApproverVO11.rangeSize}"
    emptyText="#{bindings.WoApproverVO11.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.WoApproverVO11.rangeSize}"
    rowBandingInterval="0"
    selectedRowKeys="#{bindings.WoApproverVO11.collectionModel.selectedRow}"
    selectionListener="#{bindings.WoApproverVO11.collectionModel.makeCurrent}"
    rowSelection="single" id="t3"
    partialTriggers="::commandToolbarButton2 ::p3 ::d3"
    styleClass="AFStretchWidth" displayRow="last">
    <af:column sortProperty="SeqId" sortable="true"
    headerText="#{bindings.WoApproverVO11.hints.SeqId.label}"
    id="c1">
    <af:outputText value="#{row.SeqId}" id="ot1">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.WoApproverVO11.hints.SeqId.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="EmpRoleName" sortable="true"
    headerText="#{bindings.WoApproverVO11.hints.EmpRoleName.label}"
    id="c3">
    <af:outputText value="#{row.EmpRoleName}" id="ot6"/>
    </af:column>
    <af:column sortProperty="Status" sortable="true"
    headerText="#{bindings.WoApproverVO11.hints.Status.label}"
    id="c2">
    <af:outputText value="#{row.Status}" id="ot2"/>
    </af:column>
    <af:column sortProperty="Watcher" sortable="true"
    headerText="#{bindings.WoApproverVO11.hints.Watcher.label}"
    id="c4">
    <af:outputText value="#{row.Watcher}" id="ot5"/>
    </af:column>
    <f:facet name="contextMenu">
    <!--af:popup id="p2">
    <af:menu text="menu 1" id="m2">
    <af:commandMenuItem text="#{res['button.before.title']}" id="cmi1"
    actionListener="#{pageFlowScope.WriteOffBean.onAddApproverBefore}">
    <af:showPopupBehavior popupId="::p3"/>
    </af:commandMenuItem>
    <af:commandMenuItem text="#{res['button.after.title']}" id="cmi2"
    actionListener="#{pageFlowScope.WriteOffBean.onAddApproverAfter}">
    <af:showPopupBehavior popupId="::p3"/>
    </af:commandMenuItem>
    </af:menu>
    </af:popup-->
    </f:facet>
    </af:table>
    <af:popup id="p1"
    popupFetchListener="#{pageFlowScope.WriteOffBean.addApproverPopupFetchListener}"
    popupCanceledListener="#{pageFlowScope.WriteOffBean.addApproverPopupCancelListener}"
    contentDelivery="lazyUncached"
    binding="#{pageFlowScope.WriteOffBean.approverPopup}">
    <af:dialog id="d2" title="Add Approver or Watcher"
    dialogListener="#{pageFlowScope.WriteOffBean.addApproverDialogListener}">
    <af:panelFormLayout id="pfl1">
    <af:inputListOfValues id="empNameId"
    popupTitle="Search and Select: #{bindings.EmpName.hints.label}"
    value="#{bindings.EmpName.inputValue}"
    label="#{bindings.EmpName.hints.label}"
    model="#{bindings.EmpName.listOfValuesModel}"
    required="#{bindings.EmpName.hints.mandatory}"
    columns="#{bindings.EmpName.hints.displayWidth}"
    shortDesc="#{bindings.EmpName.hints.tooltip}"
    autoSubmit="true">
    <f:validator binding="#{bindings.EmpName.validator}"/>
    </af:inputListOfValues>
    <af:selectBooleanCheckbox value="#{bindings.Watcher1.inputValue}"
    label="#{bindings.Watcher1.label}"
    shortDesc="#{bindings.Watcher1.hints.tooltip}"
    id="sbc1"/>
    </af:panelFormLayout>
    </af:dialog>
    </af:popup>
    <af:popup id="p3"
    popupFetchListener="#{pageFlowScope.WriteOffBean.addApproverPopupFetchListener}"
    popupCanceledListener="#{pageFlowScope.WriteOffBean.addApproverPopupCancelListener}">
    <af:dialog id="d3">
    <af:inputListOfValues id="inputListOfValues1"
    popupTitle="Search and Select: #{bindings.EmpName.hints.label}"
    value="#{bindings.EmpName.inputValue}"
    label="#{bindings.EmpName.hints.label}"
    model="#{bindings.EmpName.listOfValuesModel}"
    required="#{bindings.EmpName.hints.mandatory}"
    columns="#{bindings.EmpName.hints.displayWidth}"
    shortDesc="#{bindings.EmpName.hints.tooltip}"
    autoSubmit="true">
    <f:validator binding="#{bindings.EmpName.validator}"/>
    </af:inputListOfValues>
    <af:selectBooleanCheckbox value="#{bindings.Watcher1.inputValue}"
    label="#{bindings.Watcher1.label}"
    shortDesc="#{bindings.Watcher1.hints.tooltip}"
    id="sbc2"/>
    </af:dialog>
    </af:popup>
    </af:panelGroupLayout>
    </f:facet>
    </af:pageTemplate>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>

    Hi,
    build 9296 doesn't sound like a public version of JDeveloper. Is this from a production version ? If not, please test another version and - if required - file a bug
    Frank

  • Javascript error in jsf page.

    Hi,
    I am trying to Do post form a script function in a jsf page. I am using the trh:script tag for adding the script. But when run it i am getting a lot of errors saying that the attributes cannot be recognised. I am trying to send a xml updated with some data after the click of a button to the server. Though its not showing any any errors when not run.
    Below is the code i am using :
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://myfaces.apache.org/trinidad/html" prefix="trh"%>
    <%@ taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"%>
    <%@ taglib uri="http://xmlns.oracle.com/dss/trinidad/faces" prefix="dvtt"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/rich" prefix="af"%>
    <f:view>
    <trh:script text="
    var endpointURL = "http://localhost:7101/services/MobileManagerService";
    var xmlstring = '<?xml version="1.0"encoding="UTF-8"?>\
    <notifications>\
         <notification>\
              <id>1<\/id>\
                   <status>CLOSE<\/status>\               
              <\/notification>\
         <\/notifications>';
    var xmlobject = (new DOMParser()).parseFromString(xmlstring, "text/xml");
    var stautsXml = (new XMLSerializer()).serializeToString(xmlobject);
    alert(stautsXml);
    var http_request = false;
    function makePOSTRequest(method, url, parameters) {
    http_request = false;
    if(window.XMLHttpRequest) { // Mozilla, Safari,...
    http_request = new XMLHttpRequest();
    if (http_request.overrideMimeType) {
    // Set type accordingly to anticipated content type.
    http_request.overrideMimeType('text/xml');
    // http_request.overrideMimeType('text/html');
    } else if (window.ActiveXObject) { // IE
    try {
    http_request = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
    try {
    http_request = new ActiveXObject("Microsoft.XMLHTTP");
    } catch (e) {}
    if (!http_request) {
    alert('Cannot create XMLHttpRequest object');
    return false;
    http_request.onreadystatechange = alertContents;
    // http_request.open(method, url, true);
    if(method=='GET'){
    http_request.open(method, url + parameters, true);
    http_request.setRequestHeader("Content-type", "text/xml");
    http_request.setRequestHeader("Content-length", parameters.length);
    http_request.setRequestHeader("Connection", "close");
    http_request.send(null);
    if(method=='POST') {
    http_request.open(method, url, true);
    http_request.setRequestHeader("Content-type", "text/xml");
    http_request.setRequestHeader("Content-length", parameters.length);
    http_request.setRequestHeader("Connection", "close");
    http_request.send(parameters);
    if(method=='PUT') {
    http_request.open(method, url, true);
    http_request.setRequestHeader("Content-type", "text/xml");
    http_request.setRequestHeader("Content-length", parameters.length);
    http_request.setRequestHeader("Connection", "close");
    http_request.send(parameters);
    if(method=='DELETE') {
    http_request.open(method, url+parameters, true);
    http_request.setRequestHeader("Content-type", "text/xml");
    http_request.setRequestHeader("Content-length", parameters.length);
    http_request.setRequestHeader("Connection", "close");
    http_request.send(null);
    function alertContents() {
    if (http_request.readyState == 4) {
    if (http_request.status == 200) {
    alert('Response received from server:\n'+http_request.responseText);
    result = http_request.responseText;
    // Turn < and > into &lt; and &gt; for displaying on the page.
    result = result.replace(/\<([^!])/g, '&lt;$1');
    result = result.replace(/([^-])\>/g, '$1&gt;');
    document.getElementById('serverresponse').innerHTML = result;
    } else {
    alert('There was a problem with the request.'
    +http_request.responseText +' '+http_request.status);
    document.getElementById('serverresponse').innerHTML = http_request.responseText;
    function postApproveForm() {
    var poststr = stautsXml ;
    alert('Sending XML to server:\n'+poststr);
    makePOSTRequest('POST', endpointURL , poststr);
    "/>
    <trh:html id="h2">
    <trh:head title="ApproveAlerts" id="h1">
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    <link type="text/css" rel="stylesheet" href="css/iPhone.css"/>
    </trh:head>
    <trh:body id="b1">
    <!-- <jsp:useBean id="IdBean" class="oracle.application.IdBean" scope="application"/> -->
    <af:messages id="m1"/>
    <trh:body styleClass="body" id="b2">
    <!-- <td><input type="button" name="Approve" value="Approve" onclick="javascript:approveAlert();"></td> -->
    <td>
    <input type="button" name="Approve" value="Approve" onclick="postApproveform();" </input>
    </td>
    <af:outputText id="ot1" value='"#{requestScope.myId}"'/>
    </trh:body>
    </trh:body>
    </trh:html>
    </f:view>
    Do i need to add some taglib or something to make it work ?
    Regards
    Sishant
    Edited by: user784337 on May 24, 2010 3:37 AM

    Because :
    Session.getAtrribute is java-code that can only run on the server
    and
    var y = session.getAttribute is javascript-code run on the client.

  • Javascript error in BEx after system database copy

    Hello,
    we made a database copy of our BW 3.1 system on another hardware. After having done everything described in the How-To-Guide "Enable SAP BW Web functionality", we called the BEx via URL. The login screen displays and also the Report menu, but there occur JavaScript errors on the page, that didn't occur in the copy master. E.g.
    "SAPBWSSgdo is null or not an object" or
    "SAPBWItemCatalog undefined".
    These errors prevent the choice menu for BW report value options to be displayed, which is quite annoying. Does anybody know where the error might come from? Are there any components required by BEx which weren't copied with the database copy?
    Thanks for your help in advance,
    Volker Hofmann

    Hi Beat,
    thanks you're helping me! The MIME-Repository objects like JS-Files, stylesheets and images can be read. The strange thing is:
    The J2EE engine is hosted by a provider. When they're calling the BEx web reports, they're displayed correctly. But when we call them (via proxy!), the error occurs. Even the application management doesn't know where the error comes from, after having checked if the proxy caches old data. The error is still not resolved...
    Do you have another idea?
    Regards,
    Volker

  • JavaScript errors after v4 upgrade

    Hi,
    we are currently in the process of upgrading our APEX from v2 to v4.
    We have copied all of the application over and are currently testing them.
    One thing we have noticed is that there are JavaScript errors on the pages which are not present in v2.
    e.g Line: 2
    Char: 61979
    Error: 'length' is null or not an object
    The application still works despite this error message. Was wondering if anyone has had similar problems in APEX 4?
    Thanks
    Edited by: Cashy on 23-Nov-2010 03:22

    I removed all report regions from the page, then run it and the errors disappeared. I then put the regions back one by one and the error didnt come back.
    Quite confusing and not quite sure what was wrong but it works OK now.
    The version we are upgrading to is Application Express 4.0.0.00.46 and the templates we are using is template12.
    Thanks for your time
    Chris
    Edited by: Cashy on 23-Nov-2010 05:15

  • Netui javascript errors in portal

    The following code works in a webapp. It generates javascript errors in portal
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0" prefix="netui-data"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
    <%@taglib tagdir="/WEB-INF/tags" prefix="dst" %>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <netui:html>
    <head>
    <netui:base/>
    <script language="JavaScript" type="text/JavaScript">
    function dstcheck(tagname)
    alert(document[lookupIdByTagId("sampleForm", this)][lookupIdByTagId("textID", this)].value);
    </script>
    </head>
    <netui:body>
    <netui:form action="begin" tagId="sampleForm">
              <netui:textBox dataSource="pageFlow.textValue" tagId="textID" onBlur="dstcheck('textID')"></netui:textBox>
              <netui:anchor action="begin" formSubmit="true">first link</netui:anchor>
    <dst:sample/>
         </netui:form>
    </netui:body>
    </netui:html>

    Can you attach the javascript errors you were getting?
    Thanks
    Subbu
    Srinivas Surapaneni wrote:
    The following code works in a webapp. It generates javascript errors in portal
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0" prefix="netui-data"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
    <%@taglib tagdir="/WEB-INF/tags" prefix="dst" %>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <netui:html>
    <head>
    <netui:base/>
    <script language="JavaScript" type="text/JavaScript">
    function dstcheck(tagname)
    alert(document[lookupIdByTagId("sampleForm", this)][lookupIdByTagId("textID", this)].value);
    </script>
    </head>
    <netui:body>
    <netui:form action="begin" tagId="sampleForm">
              <netui:textBox dataSource="pageFlow.textValue" tagId="textID" onBlur="dstcheck('textID')"></netui:textBox>
              <netui:anchor action="begin" formSubmit="true">first link</netui:anchor>
    <dst:sample/>
         </netui:form>
    </netui:body>
    </netui:html>

  • Dreamweaver CS4 Javascript Errors

    Dreamweaver cs4 on one of my computers displays javascript errors everytime any page that includes server behaviors is opened.  Other computer has same version of software, opening the same pages, and it doesn't happen.  How can I fix this problem?

    12. Recreate the Dreamweaver user configuration folder.Windows:
    For Dreamweaver CS3, see "How to re-create the Dreamweaver user configuration folder (CS3 on Windows XP, Vista)" (TechNote kb401118).
    For Dreamweaver 8, see "Re-creating the Dreamweaver user configuration folder on Windows" (TechNote 36bda422)
    Macintosh:
    Quit Dreamweaver
    In the Mac Finder, browse to the following folder:
    Dreamweaver CS3:
    Mac HD/Users/[user]/Library/Application Support/Adobe/Dreamweaver 9/Configuration
    Dreamweaver 8:
    Mac HD/Users/[user]/Library/Application Support/Macromedia/Dreamweaver 8/Configuration
    Rename the folder to "Configuration Old"
    Restart Dreamweaver and see if the problem persists.

  • Spry Menu Bar Javascript Error - items[i].getElements..."a")[0] is undefined

    I have used a spry menu bar on several websites now, and It works very well.
    However, I get a javascript error everytime a page loads. Like I said the menu bar works, but i would like my page to run error free.
    The error is this  items[i].getElements..."a")[0] is undefined
    and it occurs in the following block of code from the spry js file.
    // safari doesn't support tabindex
        if (Spry.is.safari)
            this.enableKeyboardNavigation = false;
        if(this.element)
            this.currMenu = this.element;
            var items = this.element.getElementsByTagName('li');
            for(var i=0; i<items.length; i++)
                if (i > 0 && this.enableKeyboardNavigation)
                    items[i].getElementsByTagName('a')[0].tabIndex='-1';
                this.initialize(items[i], element);
                if(Spry.is.ie)
                    this.addClassName(items[i], this.isieClass);
                    items[i].style.position = "static";

    Hi,
    The problem could be in your HTML-code or even in your modified style sheet.
    So that we do not have to guess, please give us these code, preferably by supplying an online URL.
    Ben

  • Javascript Error after insert a Webpart into Page

    Hi everone, have you ever experienced getting error just after inserting a Webpart into page? I'm using Sharepoint Server 2013. These steps what I did:
    1. Create new page
    2. Click 'Add Webpart'
    3. Choose the webpart and click OK
    4. Webpart showed on page (simple table form)
    5. All ribbon controls are disable and there is javascript error on browser's console with message:
    SCRIPT1004: Expected ';' 
    Picture: http://i(dot)imgur(dot)com/UBM91b3(dot)png
    That line is not from my codes, it's automatically added by sharepoint after inserting webpart. Thanks for anyone who has workaround for this..
    <%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
    <%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
    <%@ Import Namespace="Microsoft.SharePoint" %>
    <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ContractReviewWP.ascx.cs" Inherits="Mitrais.SP2013.ContractManagement.WebParts.ContractReviewWP.ContractReviewWP" %>
    <script type="text/javascript">
    $(function () {
    Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(function (evt, args) {
    //datepicker
    $(".datePicker").datepicker();
    </script>
    <div id="divMain">
    <asp:UpdatePanel ID="upContract" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
    <asp:HiddenField ID="currentStage" runat="server" />
    <h1>
    <asp:Label ID="lblFormTitle" runat="server" Text="Request"></asp:Label>
    Contract Review/Approval
    </h1>
    <div class="divControl">
    <table>
    <tr>
    <td>
    <asp:Label ID="lblTitle" runat="server" Text="Title"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:TextBox ID="txtTitle" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="requiredValidatorTitle" runat="server" ErrorMessage="*" ControlToValidate="txtTitle" ValidationGroup="SubmitValidation"></asp:RequiredFieldValidator>
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label ID="lblRequestType" runat="server" Text="Request Type"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:DropDownList ID="ddlRequestType" runat="server" CssClass="dropdownRequestType" OnSelectedIndexChanged="ddlRequestType_SelectedIndexChanged" AutoPostBack="true">
    </asp:DropDownList>
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label ID="lblDocumentType" runat="server" Text="Document Type"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:DropDownList ID="ddlDocumentType" runat="server">
    </asp:DropDownList>
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label ID="lblRequestedBy" runat="server" Text="Requested By"></asp:Label>
    </td>
    <td>:</td>
    <td class="tdPeoplePick">
    <SharePoint:PeopleEditor Enabled="false" ID="pplRequestedBy" runat="server" AllowEmpty="false" MultiSelect="false" SelectionSet="User" />
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label ID="lblRequiredDate" runat="server" Text="Required Date"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:TextBox ID="dtRequiredDate" runat="server" CssClass="datePicker"></asp:TextBox>
    <asp:RequiredFieldValidator ID="requiredValidatorRequiredDate" runat="server" ControlToValidate="dtRequiredDate" ErrorMessage="*" ValidationGroup="SubmitValidation"></asp:RequiredFieldValidator>
    </td>
    </tr>
    <asp:Panel ID="pnlRequestedDate" runat="server">
    <tr>
    <td>
    <asp:Label ID="lblRequestedDate" runat="server" Text="Requested Date"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:TextBox ID="dtRequestedDate" runat="server" CssClass="datePicker"></asp:TextBox>
    </td>
    </tr>
    </asp:Panel>
    <tr>
    <td>
    <asp:Label ID="lblDescription" runat="server" Text="Description"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:TextBox ID="txtDescription" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredValidatorDescription" runat="server" ControlToValidate="txtDescription" ErrorMessage="*" ValidationGroup="SubmitValidation"></asp:RequiredFieldValidator>
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label ID="lblClientCode" runat="server" Text="Client Code"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:TextBox ID="txtClientCode" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="requiredValidatorClientCode" runat="server" ControlToValidate="txtClientCode" ErrorMessage="*" ValidationGroup="SubmitValidation"></asp:RequiredFieldValidator>
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label ID="lblSSOCode" runat="server" Text="SSO Code"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:TextBox ID="txtSSOCode" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="requiredValidatorSSOCode" runat="server" ControlToValidate="txtSSOCode" ErrorMessage="*" ValidationGroup="SubmitValidation"></asp:RequiredFieldValidator>
    </td>
    </tr>
    <asp:Panel ID="panelCPC" runat="server">
    <tr>
    <td>
    <asp:Label ID="lblCPC" runat="server" Text="CPC"></asp:Label></td>
    <td>:</td>
    <td><asp:TextBox ID="txtCPC" runat="server"></asp:TextBox></td>
    <asp:CustomValidator ID="customValidatorCPC" runat="server" ControlToValidate="txtCPC" ErrorMessage="*" ValidationGroup="SubmitValidation"></asp:CustomValidator>
    </tr>
    </asp:Panel>
    <tr>
    <td>
    <asp:Label ID="lblValue" runat="server" Text="Value (US$)"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:DropDownList ID="ddlValue" runat="server"></asp:DropDownList>
    </td>
    </tr>
    <asp:Panel ID="panelCRM" runat="server">
    <tr>
    <td><asp:Label ID="lblCRMUpdated" runat="server" Text="CRM Updated"></asp:Label></td>
    <td>:</td>
    <td>
    <asp:CheckBox ID="checkBoxCRMUpdated" runat="server" />
    </td>
    </tr>
    </asp:Panel>
    <tr>
    <td>
    <asp:Label ID="lblAgreement" runat="server" Text="Agreement Authorisation Level"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:DropDownList ID="ddlAgreement" runat="server"></asp:DropDownList>
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label ID="lblAssignedTo" runat="server" Text="Assigned To"></asp:Label>
    </td>
    <td>:</td>
    <td class="tdPeoplePick">
    <SharePoint:PeopleEditor ID="pplAssignedTo" runat="server" AllowEmpty="true" MultiSelect="false" SelectionSet="User" />
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label ID="lblStatus" runat="server" Text="Status"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:DropDownList ID="ddlStatus" runat="server" CssClass="dropdownStatus"></asp:DropDownList>
    </td>
    </tr>
    <asp:Panel ID="panelStartDate" runat="server">
    <tr>
    <td>
    <asp:Label ID="lblStartDate" runat="server" Text="Start Date"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:TextBox ID="txtStartDate" runat="server" CssClass="datePicker"></asp:TextBox>
    </td>
    </tr>
    </asp:Panel>
    <asp:Panel ID="panelEndDate" runat="server">
    <tr>
    <td>
    <asp:Label ID="lblEndDate" runat="server" Text="End Date"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:TextBox ID="txtEndDate" runat="server" CssClass="datePicker"></asp:TextBox>
    </td>
    </tr>
    </asp:Panel>
    <asp:Panel ID="pnlTemplate" runat="server">
    <tr id="rowTemplate">
    <td>Selected Template</td>
    <td>:</td>
    <td>
    <span id="selectedTemplateSpan"></span>
    <asp:HiddenField ID="hdnSelectedTemplate" runat="server" />
    <asp:Button ID="buttonLookupTemplate" runat="server" Text="Choose Template" CssClass="buttonTemplate" /></td>
    </tr>
    </asp:Panel>
    <tr>
    <td>
    <asp:Label ID="lblLatestDocument" runat="server" Text="Latest Document"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:HyperLink ID="linkLatestDocument" runat="server"></asp:HyperLink>
    <asp:FileUpload ID="fuLatestDocument" runat="server" />
    <asp:CustomValidator ControlToValidate="fuLatestDocument" OnServerValidate="LatestDocument_ServerValidate"
    ErrorMessage="The document with same name already exist, please use different name." SetFocusOnError="true" runat="server" ForeColor="Red" />
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label ID="lblTaggedPerson" runat="server" Text="Person Tagged">
    </asp:Label>
    </td>
    <td>:</td>
    <td class="tdPeoplePick">
    <SharePoint:PeopleEditor ID="peopleTaggedPerson" runat="server" MultiSelect="true" AllowEmpty="true" SelectionSet="User" />
    </td>
    </tr>
    </table>
    </div>
    <div>
    <table class="tbButton">
    <tr>
    <td></td>
    <td>
    <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" OnClientClick="PreSubmit();" ValidationGroup="SubmitValidation"/>
    </td>
    <td>
    <asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClick="btnCancel_Click"/>
    </td>
    <asp:TextBox ID="txtCheck" runat="server" Text="Add" Visible="false"></asp:TextBox>
    <asp:TextBox ID="txtTempID" runat="server" Style="visibility: hidden;"></asp:TextBox>
    <asp:TextBox ID="txtIsAddNew" runat="server" Text="true" Visible="false"></asp:TextBox>
    </tr>
    </table>
    </div>
    <div id="tabContainer">
    <div class="tabs">
    <ul>
    <li id="tabHeader_1">Comment</li>
    <li id="tabHeader_2">Document Template History</li>
    </ul>
    </div>
    <div class="tabscontent">
    <div class="tabpage" id="tabpage_1">
    <div id="phComment" runat="server"></div>
    </div>
    <div class="tabpage" id="tabpage_2">
    <div id="phDocHistory" runat="server" />
    </div>
    </div>
    </div>
    </ContentTemplate>
    <Triggers>
    <asp:PostBackTrigger ControlID="btnSubmit" />
    </Triggers>
    </asp:UpdatePanel>
    <asp:HiddenField ID="hfComment" runat="server" />
    </div>
    <script type="text/javascript">
    $("#<%= upContract.ClientID %>").ready(function () {
    setTimeout(MitraisCM.contract(), 5000);
    </script>

    Hi,                                                             
    Per my knowledge, such error might occurred when we modify the HTML code of the page, through SharePoint Designer or Content Editor Web Part.
    What web part you added into the page?
    What if you create another new page and insert a list into it, will the error occurs?
    Feel free to reply with the test result if the issue still exists.
    Best regards
    Patrick Liang
    TechNet Community Support

  • Sharepoint throw a javascript error while adding items to sharepoint list

    sharepoint throw javascript error when adding item to list
    error called:  this._registeredValidators[validatorIdx].Validate is not a function
    any help please

    Hi,
    If you want to validatelist column, there is out of the box way to accomplish this with SharePoint
    There's a great blog that covers how to validate Strict Text Formats:
    http://sharepointsolutions.com/sharepoint-help/blog/2011/12/how-to-validate-strict-text-formats-in-sharepoint-2010/
    In addition, we can use JavaScript to validate column. Please make sure you use the code correctly.
    More information:
    http://chrisstahl.wordpress.com/2011/02/06/validate-a-sharepoint-list-column-with-regular-expression/
    http://blog.tallan.com/2013/09/16/how-to-add-custom-validation-logic-to-validate-a-phone-field-in-sharepoint/
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Skillbuilder modal page 2.0 causes a javascript error in APEX 4.2

    After installing the Skillbuilder's modal page 2.0 plugin in APEX 4.2, the following javascript error is shown.
    Line: 194
    Error: Object doesn't support this property or method
    Using IE8 debugger the following code seems to be at fault.
    function(){apex.jQuery(document).apex_modal_page({
       "transition":"fade",
       "draggable":true,
       "initialHeight":100,
       "initialWidth":300,
       "overlayOpacity":.5,
       "scrolling":true,
       "loadingImageSrc":""
    (function(){apex.da.initDaEventList();})();
    (function(){apex.da.init();})();
    The modal page work flawlessly in APEX 4.1.
    Any help will be greatly appreciated.
    Thank you,
    Del

    Check your popup page. You probably have an after-processing branch defined which will redirect to your original page. That is not necessarily bad, although i usually set it to redirect to the same page when using a popup. What will probably not work for you is the success message selector. If you defined "#success-message" as the auto-close selector, this means that the plugin will look for an element on the page in the popup for an element which matches this selector.
    - What did you define for auto-close selector
    - And on the page you redirect to after-processing of the form, how is the success message defined there
    If (IF) you have set #success-message as the auto-close selector, and the popup is not closing, then this would mean that the popup message on the page does not match this selector!

  • Create Shopping Page gives Javascript Error - Sun JVM in a DMZ?

    Hi SDN
    We are running on SRM 5.0, with server at 5.5 and we have just implemented SP 11.  Since then, our users running IE with the Sun JVM 1.4.2_10 are getting a JavaScript  error everytime an applet loads on their page (in this case, it is the applet within the Document & Attachments section).  Moreover, our portal is being hosted on an SSL secured server within our DMZ, in conjunction with a Provencia IDS System, Blue Coat hardarware, RadWare, ...etc.
    The only way we can make that page work, is by disabling the Sun JVM and use the MS Version of the JVM.  At that point, no issue with the applet on our SSL Secured Portal.  Even funnier, is that when I'm calling directly the Portal Server (without the SSL proxy), even if i run the Sun JVM, I'm not getting the error. Since we have over 1000 users, it woulde be aimpossible to have all of them making that change... We need to make that work.
    Have you ever experienced something like that?  If yes, what have you done to fix it? Any suggestion, OSS notes
    Thanks in advance
    Eric L.

    I am having almost the same issue.  This is what my java console throws "load: class com.sapportals.portal.epcf.EPCMfactory not found."

Maybe you are looking for

  • How do I get separate iCloud accounts for each family members device and still share iTunes?

    how do I get separate iCloud's for each family members iPhone, iPod and iPad and still share iTunes?

  • OBIEE authentication

    Hi All, we are planning to implement external database authentication in OBIEE. Can we use OBIEE database(warehouse) for external database authentication. Thanks, Raji

  • PC User-Prints Strange Text in Word

    Hi All, I am using Pages-iwork08 and exported a resume to a Word file. I have sent the file to a friend possibly using XP or Vista but when they print the document....instead of fonts...they are all music notes....lol. Now it seems like they are havi

  • Invalid Column name during export

    When a FULL or USER level export is taken after the export is completed the following error appears. ORA-00904 Invalid Column name When I take table level export it complets successfully. I had run catalog.sql, catproc.sql and catexp.sql. Mohan null

  • A J2EE problem from an International Bank EJB-RDB remapping problem

    Background Information: We are going to deploy a J2EE project with DB2 V7.1 as the backend database server. However, the project is developed using WSED and initially assumed DB2 V.8 will be used as the database server. The inconsistency of DB2 versi