Web Part \ Asynchronous Input Output

Visual Web Part, two controls: textedit and label below.
When textedit is changed label should show smthn.
This should work dynamically, transparently, asynchronously, without loosing textedit input focus. In
other words – without postback.
I am looking for an example of some AJAX driven WebPart.

If you need to persist/search for information server side,  that you'll need a webservice:http://msmvps.com/blogs/windsor/archive/2011/11/04/walkthrough-creating-a-custom-asp-net-asmx-web-service-in-sharepoint-2010.aspx
Then you can use jquery to call it:
http://api.jquery.com/jquery.ajax/

Similar Messages

  • Have JQuery for List View web part, But Full Text Not Visible

    I have a list view web part on a page with which, I've edited the view the way I need which includes grouping.
    Inside IE's Developer tools, I can see the structure (TD and then an anchor tag linking to document) and see the class SharePoint uses for that TD. BUT - when I view the source for the page, none of the actual text in the created view shows up at all!
    What I need to do is to wrap the text inside that TD with more html tags, along with adding a left padding. Adding the padding to the CSS file actually works fine.
    The problem is, that when I add the JQuery to wrap everything in the TD the way I need it, since it technically hasn't been rendered yet, even with a document ready function around it, the JQuery never does what it is supposed to do.
    here's the JQuery:
    $('td.ms-vb').each(function() {
    $(this).find( 'a' ).wrap(
    $('<ul style="padding:0px;margin:0px;;">
    <li style="list-style-type:disc;color:white"></li></ul>') );
    I know the JQuery code works because I've tried it on a plain HTML page. The problem is the way the List View web part renders the output. since it's not available on the screen, the JQuery does not work.
    I really need to do this without any programming, since this type of interface appears many times throughout the site.
    Any ideas on how to accomplish this (get the HTML to show in 'view source' so I can apply the JQuery)?

    (bump)
    anyone?

  • How can I use today's date as default value in query string filter web part in SharePoint

    I have a query string filter on my web part page. I am trying to figure out how I can set it's default value to Today? I can't find anything online...

    Hi,
    Per my understanding, you might want to set a default value to the Query String Filter Web Part.
    It would not be able to set default value to the Query String Filter Web Part with the OOTB features available.
    By default, with a Query String Filter Web Part in the current page, we can filter other web part in the same page by adding parameters and values in the address bar
    of browser.
    If setting the “Query String Parameter Name” of a Query String Filter Web Part as “t”, then we can filter the corresponding connected web part by inputting such an
    URL into the address bar:
    http://sharepoint/SitePages/Page1.aspx?t=value1
    Suppose you want to filter the list view with a value dynamically when user opens this page, as a workaround, we can generate an URL with the parameters needed when
    page loaded, then redirect user to this URL afterwards. This can be achieved using JavaScript.
    About how to redirect user to other page with an URL:
    http://www.tizag.com/javascriptT/javascriptredirect.php
    How to get today’s date using JavaScript:
    http://www.w3schools.com/js/js_dates.asp
    Best regards      
    Patrick Liang
    TechNet Community Support

  • SharePoint 2013 RSS Viewer not loading when other Custom web part using Update Panel or Ajax Timer control

    Hi,
    SharePoint 2013 RSS
    Viewer web part failing to complete loading when the page loads.
    This happens when having RSS Viewer and then adding a Custom webpart with an updatepanel and timer control.
    I  had used Ajax update panel and timer control to load the web part asynchronously after the main page is fully loaded.
    The RSS-Viewer web part hangs in loading state while the custom webpart loads just fine.
    The issue occurs when an like button click or Timer Tick event fires after the page
    is loaded.
    Haven't been able to track the issue.
    Couple of workaround I tried to call a server side button click event from the custom web part after the page gets fully loaded using JQuery shown below did not work out either.
     $(document).ready(function () {
                $('#<%= netButton2.ClientID %>').click();
    And 
    document.onreadystatechange = function () {
                if (document.readyState == "complete") {
                    $('#<%= netButton2.ClientID %>').click();
    Please let me know how to resolve this issue.
    Thanks,
    Franklin

    Hi Johan,
    The assignment of this user on the given task might be corrupted. Try to remove the resource from the task, publish the project, assign the resource again and publish again the project. If it is not working, try to unpublish the task (column "publish")
    and publih it again.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • How to bind complex input/output types in web service data control

    Hi,
    I have created data control using external web service for simple input & output data type and its working fine.
    But I don't know how it can be done for complex data types.
    My external Web services have complex input & output types. Such as java object which contains another java object again it contains another java object or arry or java collection etc.
    Each my service has one complex input data type and for this no user input is require so how I can do it without using any component for it.
    I want to bind my page components with this input & output type.
    What is the best approach to do this and how to bind screen component.
    Regards,
    Devang

    Hi,
    Thanks frank.
    I already check this link before posting this so if you have any other link then kindly reply.
    Regards,
    Devang

  • How to invoke a web service asynchronously using ws-addressing model?

    Hi Gurus,
    We are invoking an external web service asynchronously using Oracle Work Flow Business events using the following mechanism -
    1)Created a web service invoker event to invoke the web service.
    2)Created a subscription that invokes the web service (provided the wsdl address, operation info).
    3)Defined a subscription parameter WFBES_CALLBACK_EVENT with value pointing to a recieve event.
    4)Created a receive event(parameter value for WFBES_CALLBACK_EVENT) and a subscription that directs the response to a custom PL/SQL function to process response.
    so far so good. We were able to invoke the web service and get and process the response.
    Problem: The external web service can take upto 10 hrs to process the request. A time out of 2 hrs is set on the server hosting the external web service. So when the external web service takes more than 2 hrs to process the request and it times out and we get the following error on EBS side -
    'l_error_message:oracle.apps.fnd.wf.bes.InvokerException: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html; charset=iso-8859-1'
    Now the external web service providers are suggesting that we are not calling their web service asynchronously and we should use ws-addressing model to do so.
    Is there a way to invoke this web service using ws-addressing model using business events or from PL/SQL or OA middle-tier?
    Regards,
    Sunil
    CMRO Development.
    I am providing here the WSDL of the external web service -
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions targetNamespace="http://service.sdk.webservices.enigma.com" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:ax21="http://service.sdk.webservices.enigma.com/xsd" xmlns:ns="http://service.sdk.webservices.enigma.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <wsdl:types>
    <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://service.sdk.webservices.enigma.com/xsd" xmlns:ax22="http://service.sdk.webservices.enigma.com">
    <xs:import namespace="http://service.sdk.webservices.enigma.com"/>
    <xs:complexType name="JCGWebServicesException">
    <xs:complexContent>
    <xs:extension base="ax22:Exception">
    <xs:sequence>
    <xs:element minOccurs="0" name="id" nillable="true" type="xs:string"/>
    <xs:element minOccurs="0" name="message" nillable="true" type="xs:string"/>
    </xs:sequence>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="JCGServiceReply">
    <xs:sequence>
    <xs:element maxOccurs="unbounded" minOccurs="0" name="pdfStatus" nillable="true" type="ax21:PdfStatus"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="PdfStatus">
    <xs:sequence>
    <xs:element minOccurs="0" name="jobCardID" nillable="true" type="xs:string"/>
    <xs:element minOccurs="0" name="pdfPath" nillable="true" type="xs:string"/>
    <xs:element minOccurs="0" name="status" nillable="true" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://service.sdk.webservices.enigma.com" xmlns:ax23="http://service.sdk.webservices.enigma.com/xsd">
    <xs:import namespace="http://service.sdk.webservices.enigma.com/xsd"/>
    <xs:complexType name="Exception">
    <xs:sequence>
    <xs:element minOccurs="0" name="Exception" nillable="true" type="xs:anyType"/>
    </xs:sequence>
    </xs:complexType>
    <xs:element name="JCGWebServicesException">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" name="JCGWebServicesException" nillable="true" type="ax21:JCGWebServicesException"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="runJobCard">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" name="a_WorkpackageFilePath" nillable="true" type="xs:string"/>
    <xs:element minOccurs="0" name="a_userName" nillable="true" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="runJobCardResponse">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" name="return" nillable="true" type="ax21:JCGServiceReply"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    </wsdl:types>
    <wsdl:message name="JCGWebServicesException">
    <wsdl:part name="parameters" element="ns:JCGWebServicesException">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="runJobCardResponse">
    <wsdl:part name="parameters" element="ns:runJobCardResponse">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="runJobCardRequest">
    <wsdl:part name="parameters" element="ns:runJobCard">
    </wsdl:part>
    </wsdl:message>
    <wsdl:portType name="JCGServicePortType">
    <wsdl:operation name="runJobCard">
    <wsdl:input message="ns:runJobCardRequest" wsaw:Action="urn:runJobCard">
    </wsdl:input>
    <wsdl:output message="ns:runJobCardResponse" wsaw:Action="urn:runJobCardResponse">
    </wsdl:output>
    <wsdl:fault name="JCGWebServicesException" message="ns:JCGWebServicesException" wsaw:Action="urn:runJobCardJCGWebServicesException">
    </wsdl:fault>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="JCGServiceSoap11Binding" type="ns:JCGServicePortType">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="runJobCard">
    <soap:operation soapAction="urn:runJobCard" style="document"/>
    <wsdl:input>
    <soap:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    </wsdl:output>
    <wsdl:fault name="JCGWebServicesException">
    <soap:fault name="JCGWebServicesException" use="literal"/>
    </wsdl:fault>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="JCGServiceSoap12Binding" type="ns:JCGServicePortType">
    <soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="runJobCard">
    <soap12:operation soapAction="urn:runJobCard" style="document"/>
    <wsdl:input>
    <soap12:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap12:body use="literal"/>
    </wsdl:output>
    <wsdl:fault name="JCGWebServicesException">
    <soap12:fault name="JCGWebServicesException" use="literal"/>
    </wsdl:fault>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="JCGService">
    <wsdl:port name="JCGServiceHttpSoap12Endpoint" binding="ns:JCGServiceSoap12Binding">
    <soap12:address location="http://localhost:8080/JCG/services/JCGService"/>
    </wsdl:port>
    <wsdl:port name="JCGServiceHttpSoap11Endpoint" binding="ns:JCGServiceSoap11Binding">
    <soap:address location="http://localhost:8080/JCG/services/JCGService"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    Edited by: sikumar on Jun 22, 2010 1:50 PM

    Bharat,
    You dont need a Business Event setup to invoke a BPEL process from PL/SQL unless you have a special case and you need to process the response from the BPEL process in a separate thread (or in background)..
    For a straight call to BPEL process from PL/SQL, here is a sample script -
    function "MYTEST0" return varchar2 AS
    soap_request varchar2(30000);
    soap_respond varchar2(30000);
    http_req utl_http.req;
    http_resp utl_http.resp;
    resp XMLType;
    i integer;
    helpStr varchar2(30000);
    BEGIN
    soap_request:= '<?xml version = ''1.0'' encoding = ''UTF-8''?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ns0="
    http://xmlns.oracle.com/TestWS">
    <env:Body>
    <ns0:TestWSProcessRequest>
    <ns0:input>abc</ns0:input>
    </ns0:TestWSProcessRequest>
    </env:Body>
    </env:Envelope>
    /* the BPEL process name is TestWS */
    http_req:= utl_http.begin_request
    ( 'http://hostname:7777/orabpel/default/TestWS/1.0'
    , 'POST'
    , 'HTTP/1.1'
    utl_http.set_header(http_req, 'Content-Type', 'text/xml');
    utl_http.set_header(http_req, 'Content-Length', length(soap_request));
    utl_http.set_header(http_req, 'SOAPAction', 'process');
    utl_http.write_text(http_req, soap_request);
    http_resp:= utl_http.get_response(http_req);
    utl_http.read_text(http_resp, soap_respond);
    utl_http.end_response(http_resp);
    resp:= XMLType.createXML(soap_respond);
    resp:= resp.extract('/soap:Envelope/soap:Body/child::node()',
    'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"');
    helpStr := '';
    i:=0;
    loop
    helpStr := helpStr || substr(soap_respond,1+ i*255,250);
    i:= i+1;
    if i*250> length(soap_respond)
    then
    exit;
    end if;
    end loop;
    return helpStr;
    END;

  • Specifying input/output schemas

    In 10g, the input/output schemas could be specified via BPEL Project Creation Wizard in JDev; but I don't see a comparable option in 11g (when I create a new app using the "Composite
    from Oracle BPA" template). What am I missing?

    What I meant was there is no option to choose the input/output schemas when I create a composite using the "composite from oracle bpa" template.
    Unlike the case when I use the "composite with bpel" template as seen here ... where I can click on the "browe schema" option for Input and Output.
    (This is 10g, but listed for illustration).
    Creating BPEL Process
    The first step is to use JDeveloper to create an Asynchronous process initiated by a request message with a payload containing an element of type mailMessage (defined in Mail.xsd installed as part of BPEL PM).
    To do this use the BPEL Project Creation wizard to create a BPEL Process in the normal way. After entering the process name and specifying the process template to be asynchronous, select "Next".
    This will take you to the next step in the wizard where you specify the Input and Output Schema Elements, click on the flash light for the input schema and select Mail.xsd (located in <SOA_HOME>\bpel\system\xmllib) as shown in the figure 1 below.
    Edited by: user756777 on Jul 1, 2009 12:45 PM

  • Data lost while moving between Tabs in a web part

    hi,
    We are developing a specific functionality where we have four different tabs...When user press button on first tab it generates a some data which is stored in a list. This list has a ID which is stored in the View State. Now when user presses next button
    it goes to next tab where the same ID is used to retrieve the details from List.similar is the case for multiple tabs. There is a sporadic issues reported in this application. The issue is that sometimes data is not saved in the list first time. Secondly even
    if the data is saved and user moves to second tab all the fields are coming blank. Looks like ID field is blank. Now sure how can the ID field is blank if we are on second tab after saving the data in first tab. This issue only happens once in a blue moon
    for specific users.I can paste the code for button click
    protected void imgSaveandProcedGeneralInfo_Click(object sender, ImageClickEventArgs e)
    //int trackerIds = erossoperationtracker.StartOperation("Save And Proced GeneralInfo Button - imgSaveandProcedGeneralInfo_Click");
    erossoperationtracker.LogToErrorList("Start - imgSaveandProcedGeneralInfo_Click - Save And Proced GeneralInfo Button", erossoperationtracker.currentUser());
    try
    //Check if the requested by field is valid before saving
    //if (peRequestedBy.IsValid && peRequestedBy.ResolvedEntities.Count == 1)
    PrepareSave(true);
    if (ContentType == ContentTypes.ClinicalGrantStartup)
    (Container as StartupROSSUserControl).ShowStartUpTabs(TabIndex.BudgetTemplate, false);
    else if (ContentType == ContentTypes.ClinicalGrantMainWithoutStartup)
    (Container as MainROSSWithoutStartUpUserControl).ShowStartUpTabs(TabIndex.BudgetTemplate, false);
    else if (ContentType == ContentTypes.ClinicalGrantMainWithStartup)
    (Container as MainROSSWithStartUpUserControl).ShowTabs(TabIndex.BudgetTemplate, false);
    else if (ContentType == ContentTypes.ClinicalGrantStartupRevision)
    (Container as StartUpROSSRevisionUserControl).ShowTabs(TabIndex.BudgetTemplate, false);
    else if (ContentType == ContentTypes.ClinicalGrantMainRevision)
    (Container as MainROSSRevisionUserControl).ShowTabs(TabIndex.BudgetTemplate, false);
    else if (ContentType == ContentTypes.DrugSafetyMain)
    (Container as MainROSSUserControl).ShowStartUpTabs(TabIndex.BudgetTemplate, false);
    else if (ContentType == ContentTypes.DrugSafetyMainRevision)
    (Container as DrugMainROSSRevisionUserControl).ShowTabs(TabIndex.BudgetTemplate, false);
    erossoperationtracker.LogToErrorList("End - imgSaveandProcedGeneralInfo_Click - Save And Proced GeneralInfo Button", erossoperationtracker.currentUser());
    //erossoperationtracker.EndProcess();
    catch (Exception ex)
    erossoperationtracker.LogToErrorList("Error - imgSaveandProcedGeneralInfo_Click - " + ex.Message, erossoperationtracker.currentUser());
    LogException(ex);
    private void PrepareSave(bool isSaveAndProceed)
    erossoperationtracker.LogToErrorList("Start - Prepare data for saving(PrepareSave)- Save And Proced GeneralInfo Button", erossoperationtracker.currentUser());
    int Id = erossoperationtracker.StartOperation("PerpareSave to List");
    try
    generalInfo = new GeneralInfoEnt();
    if (WebpartMode == WebpartModes.Edit)
    generalInfo.ROSSId = eRossId;
    //Add mode but user already saved data once
    else if (ViewState["ID"] != null)
    generalInfo.ROSSId = (int)ViewState["ID"];
    else
    generalInfo.ROSSId = default(int);
    generalInfo.ContentType = ContentType;
    generalInfo.RossGroup = RossGroup;
    //Check if statup ross has been changed
    if (!hdnOldStartUpRossNo.Value.Equals(hdnStartUpRossNo.Value, StringComparison.InvariantCultureIgnoreCase))
    generalInfo.IsParentChanged = true;
    hdnOldStartUpRossNo.Value = hdnStartUpRossNo.Value;
    generalInfo.ProtocolName = Convert.ToString(txtProtocolName.Text);
    generalInfo.TherapeuticArea = Convert.ToString(txtTherapueticAreaName.Text);
    generalInfo.PAID = Convert.ToString(txtPaid.Text);
    generalInfo.PAIDName = Convert.ToString(txtPaidName.Text);
    generalInfo.ProjectNumber = Convert.ToString(txtProjectCode.Text);
    generalInfo.ProjectName = Convert.ToString(txtProjectName.Text);
    generalInfo.ProgramName = Convert.ToString(txtProgramName.Text);
    generalInfo.ProgramCode = Convert.ToString(txtProgramCode.Text);
    generalInfo.Status = Convert.ToString(Utility.GetStatus(RossStatus.Draft));
    DateTime requestedDate;
    if (DateTime.TryParse(hdnRequestedDate.Value, out requestedDate))
    generalInfo.RequestDate = requestedDate;
    if (WebpartMode == WebpartModes.Add)
    generalInfo.RequestDate = DateTime.Now;
    generalInfo.TotalEstimatedStudyCost = Utility.ConvertCurrencyToDouble(txtTotalEstimatedCost.Text);
    generalInfo.PrimaryCRO = Convert.ToString(txtPrimaryCROServiceProvider.Text);
    generalInfo.StudyObjective = Convert.ToString(txtObjective.Text);
    generalInfo.StudyDescription = Convert.ToString(txtDescription.Text);
    generalInfo.ProjectType = Convert.ToString(txtProjectType.Text);
    if (peRequestedBy.ResolvedEntities.Count > 0)
    string userAccount = peRequestedBy.CommaSeparatedAccounts.Split(',')[0];
    generalInfo.RequestedByLoginName = userAccount;
    hdnRequestedBy.Value = userAccount;
    switch (ContentType)
    case ContentTypes.ClinicalGrantMainRevision:
    generalInfo.ProtocolNumber = Convert.ToString(txtProtocolCode.Text);
    generalInfo.ROSSStartDate = Utility.GetDateFromDropdown(ddlRevisionStartMonth.SelectedValue, ddlRevisionStartYear.SelectedValue);
    generalInfo.ROSSEndDate = Utility.GetDateFromDropdown(ddlRevisionEndMonth.SelectedValue, ddlRevisionEndYear.SelectedValue);
    generalInfo.RevisionMonth = Utility.GetDateFromDropdown(ddlRevisionMonth.SelectedValue, ddlRevisionYear.SelectedValue);
    if (!string.IsNullOrEmpty(txtLastApprovedStartDate.Text))
    generalInfo.ROSSStartDateLastApproved = Convert.ToDateTime(txtLastApprovedStartDate.Text);
    if (!string.IsNullOrEmpty(txtLastApprovedEndDate.Text))
    generalInfo.ROSSEndDateLastApproved = Convert.ToDateTime(txtLastApprovedEndDate.Text);
    generalInfo.RevisionReason = txtReasonForRevision.Text;
    if (!string.IsNullOrEmpty(hdnStartUpRossNo.Value))
    generalInfo.ROSSNumber = Convert.ToString(hdnStartUpRossNo.Value);
    if (!string.IsNullOrEmpty(hdnParentRossId.Value))
    generalInfo.ParentROSSId = Convert.ToInt32(hdnParentRossId.Value);
    if (!string.IsNullOrEmpty(hdnStartRossLink.Value))
    generalInfo.StartUpRossLink = hdnStartRossLink.Value;
    generalInfo.TotalEstimatedStudyCostLastApproved = Utility.ConvertCurrencyToDouble(hdnTotalEstimatedStudyCostApproved.Value);
    generalInfo.SubTherapeuticArea = Convert.ToString(txtSubTherapeuticArea.Text);//for sub TA
    generalInfo.ResponsibleCostCenter = Convert.ToString(txtResponsibleCostCenter.Text);
    /****eROSS Phase 2 Beginning of change****/
    generalInfo.IIS = Convert.ToString(txtIIS.Text);
    generalInfo.MarketedProduct = Convert.ToString(txtMarketedProduct.Text);
    if (!string.IsNullOrEmpty(generalInfo.MarketedProduct))
    if (generalInfo.MarketedProduct.ToLower() == YesOrNo.Yes.ToString().ToLower())
    generalInfo.CAPAmount = Utility.ConvertCurrencyToDouble(hdnFutureCAPAmount.Value);
    /****eROSS Phase 2 End of change****/
    break;
    case ContentTypes.ClinicalGrantMainWithStartup:
    generalInfo.ROSSStartDate = Utility.GetDateFromDropdown(ddlStartMonthMainROSSWithExistingStartUp.SelectedValue, ddlStartYearMainROSSWithExistingStartUp.SelectedValue);
    generalInfo.ROSSEndDate = Utility.GetDateFromDropdown(ddlEndMonthMainROSSWithExistingStartUp.SelectedValue, ddlEndYearMainROSSWithExistingStartUp.SelectedValue);
    generalInfo.ProtocolNumber = Convert.ToString(txtProtocolCodeMainROSSWithExistingStartUp.Text);
    /****eROSS Phase 2 Beginning of change****/
    generalInfo.IIS = Convert.ToString(txtIIS.Text);
    generalInfo.MarketedProduct = Convert.ToString(txtMarketedProduct.Text);
    /****eROSS Phase 2 End of change****/
    if (!string.IsNullOrEmpty(generalInfo.MarketedProduct))
    if (generalInfo.MarketedProduct.ToLower() == YesOrNo.Yes.ToString().ToLower())
    generalInfo.CAPAmount = Utility.ConvertCurrencyToDouble(txtCAPAmount.Text);
    if (!string.IsNullOrEmpty(hdnStartUpRossNo.Value))
    generalInfo.ROSSNumber = Convert.ToString(hdnStartUpRossNo.Value);
    if (!string.IsNullOrEmpty(hdnParentRossId.Value))
    generalInfo.ParentROSSId = Convert.ToInt32(hdnParentRossId.Value);
    if (!string.IsNullOrEmpty(hdnStartRossLink.Value))
    generalInfo.StartUpRossLink = hdnStartRossLink.Value;
    if (!string.IsNullOrEmpty(generalInfo.ROSSNumber))
    lnkStartUpRossMainROSSWithExistingStartUp.InnerText = generalInfo.ROSSNumber;
    if (!string.IsNullOrEmpty(generalInfo.StartUpRossLink))
    lnkStartUpRossMainROSSWithExistingStartUp.HRef = generalInfo.StartUpRossLink;
    if (!string.IsNullOrEmpty(txtLastApprovedStartDate.Text))
    generalInfo.ROSSStartDateLastApproved = Convert.ToDateTime(txtLastApprovedStartDate.Text);
    if (!string.IsNullOrEmpty(txtLastApprovedEndDate.Text))
    generalInfo.ROSSEndDateLastApproved = Convert.ToDateTime(txtLastApprovedEndDate.Text);
    generalInfo.TotalEstimatedStudyCostLastApproved = Utility.ConvertCurrencyToDouble(hdnTotalEstimatedStudyCostApproved.Value);
    generalInfo.LastApprovedStudyDescription = Convert.ToString(hdnApprovedDescription.Value);
    generalInfo.SubTherapeuticArea = Convert.ToString(txtSubTherapeuticArea.Text);//for sub TA
    generalInfo.ResponsibleCostCenter = Convert.ToString(txtResponsibleCostCenter.Text);
    break;
    case ContentTypes.ClinicalGrantMainWithoutStartup:
    generalInfo.ROSSStartDate = Utility.GetDateFromDropdown(ddlstartMonth.SelectedValue, ddlstartYear.SelectedValue);
    generalInfo.ROSSEndDate = Utility.GetDateFromDropdown(ddlendMonth.SelectedValue, ddlendYear.SelectedValue);
    generalInfo.ProtocolNumber = Convert.ToString(txtProtocolNo.Text);
    generalInfo.SubTherapeuticArea = Convert.ToString(txtSubTherapeuticArea.Text);//for sub TA
    generalInfo.ResponsibleCostCenter = Convert.ToString(txtResponsibleCostCenter.Text);
    /****eROSS Phase 2 Beginning of change****/
    if (ddlIIS.SelectedItem.Text != "-")
    generalInfo.IIS = Convert.ToString(ddlIIS.SelectedItem.Text);
    if (ddlMarketedProduct.SelectedItem.Text != "-")
    generalInfo.MarketedProduct = Convert.ToString(ddlMarketedProduct.SelectedItem.Text);
    if (!string.IsNullOrEmpty(generalInfo.MarketedProduct))
    if (generalInfo.MarketedProduct.ToLower() == YesOrNo.Yes.ToString().ToLower())
    generalInfo.CAPAmount = Utility.ConvertCurrencyToDouble(txtCAPAmount.Text);
    /****eROSS Phase 2 End of change****/
    break;
    case ContentTypes.ClinicalGrantStartup:
    generalInfo.ROSSStartDate = Utility.GetDateFromDropdown(ddlstartMonth.SelectedValue, ddlstartYear.SelectedValue);
    generalInfo.ROSSEndDate = Utility.GetDateFromDropdown(ddlendMonth.SelectedValue, ddlendYear.SelectedValue);
    generalInfo.ProtocolNumber = Convert.ToString(txtProtocolNo.Text);
    generalInfo.SubTherapeuticArea = Convert.ToString(txtSubTherapeuticArea.Text);//for sub TA
    generalInfo.ResponsibleCostCenter = Convert.ToString(txtResponsibleCostCenter.Text);
    /****eROSS Phase 2 Beginning of change****/
    if (ddlIIS.SelectedItem.Text != "-")
    generalInfo.IIS = Convert.ToString(ddlIIS.SelectedItem.Text);
    if (ddlMarketedProduct.SelectedItem.Text != "-")
    generalInfo.MarketedProduct = Convert.ToString(ddlMarketedProduct.SelectedItem.Text);
    /****eROSS Phase 2 End of change****/
    break;
    case ContentTypes.ClinicalGrantStartupRevision:
    generalInfo.ProtocolNumber = Convert.ToString(txtProtocolCode.Text);
    generalInfo.ROSSStartDate = Utility.GetDateFromDropdown(ddlRevisionStartMonth.SelectedValue, ddlRevisionStartYear.SelectedValue);
    generalInfo.ROSSEndDate = Utility.GetDateFromDropdown(ddlRevisionEndMonth.SelectedValue, ddlRevisionEndYear.SelectedValue);
    /****eROSS Phase 2 Beginning of change****/
    generalInfo.IIS = Convert.ToString(txtIIS.Text);
    generalInfo.MarketedProduct = Convert.ToString(txtMarketedProduct.Text);
    /****eROSS Phase 2 End of change****/
    generalInfo.RevisionMonth = Utility.GetDateFromDropdown(ddlRevisionMonth.SelectedValue, ddlRevisionYear.SelectedValue);
    if (!string.IsNullOrEmpty(txtLastApprovedStartDate.Text))
    generalInfo.ROSSStartDateLastApproved = Convert.ToDateTime(txtLastApprovedStartDate.Text);
    if (!string.IsNullOrEmpty(txtLastApprovedEndDate.Text))
    generalInfo.ROSSEndDateLastApproved = Convert.ToDateTime(txtLastApprovedEndDate.Text);
    generalInfo.RevisionReason = txtReasonForRevision.Text;
    if (!string.IsNullOrEmpty(hdnStartUpRossNo.Value))
    generalInfo.ROSSNumber = Convert.ToString(hdnStartUpRossNo.Value);
    if (!string.IsNullOrEmpty(hdnParentRossId.Value))
    generalInfo.ParentROSSId = Convert.ToInt32(hdnParentRossId.Value);
    if (!string.IsNullOrEmpty(hdnStartRossLink.Value))
    generalInfo.StartUpRossLink = hdnStartRossLink.Value;
    generalInfo.TotalEstimatedStudyCostLastApproved = Utility.ConvertCurrencyToDouble(hdnTotalEstimatedStudyCostApproved.Value);
    generalInfo.SubTherapeuticArea = Convert.ToString(txtSubTherapeuticArea.Text);//for sub TA
    generalInfo.ResponsibleCostCenter = Convert.ToString(txtResponsibleCostCenter.Text);
    break;
    case ContentTypes.ClinicalGrantClose:
    /****eROSS Phase 2 Beginning of change****/
    generalInfo.IIS = Convert.ToString(txtIIS.Text);
    generalInfo.MarketedProduct = Convert.ToString(txtMarketedProduct.Text);
    /****eROSS Phase 2 End of change****/
    break;
    case ContentTypes.DrugSafetyMain:
    generalInfo.ROSSStartDate = Utility.GetDateFromDropdown(ddlstartMonth.SelectedValue, ddlstartYear.SelectedValue);
    generalInfo.ROSSEndDate = Utility.GetDateFromDropdown(ddlendMonth.SelectedValue, ddlendYear.SelectedValue);
    generalInfo.ProtocolNumber = Convert.ToString(txtProtocolNo.Text);
    if (!string.IsNullOrEmpty(ddlRossType.SelectedValue) && ddlRossType.Text != "0")
    generalInfo.DrugSafetyROSSType = ddlRossType.SelectedItem.Text;
    generalInfo.ResponsibleCostCenter = ddlRossType.SelectedItem.Value;
    break;
    case ContentTypes.DrugSafetyMainRevision:
    generalInfo.ProtocolNumber = Convert.ToString(txtProtocolCode.Text);
    generalInfo.ROSSStartDate = Utility.GetDateFromDropdown(ddlRevisionStartMonth.SelectedValue, ddlRevisionStartYear.SelectedValue);
    generalInfo.ROSSEndDate = Utility.GetDateFromDropdown(ddlRevisionEndMonth.SelectedValue, ddlRevisionEndYear.SelectedValue);
    generalInfo.RevisionMonth = Utility.GetDateFromDropdown(ddlRevisionMonth.SelectedValue, ddlRevisionYear.SelectedValue);
    if (!string.IsNullOrEmpty(txtLastApprovedStartDate.Text))
    generalInfo.ROSSStartDateLastApproved = Convert.ToDateTime(txtLastApprovedStartDate.Text);
    if (!string.IsNullOrEmpty(txtLastApprovedEndDate.Text))
    generalInfo.ROSSEndDateLastApproved = Convert.ToDateTime(txtLastApprovedEndDate.Text);
    generalInfo.RevisionReason = txtReasonForRevision.Text;
    if (!string.IsNullOrEmpty(hdnStartUpRossNo.Value))
    generalInfo.ROSSNumber = Convert.ToString(hdnStartUpRossNo.Value);
    if (!string.IsNullOrEmpty(hdnParentRossId.Value))
    generalInfo.ParentROSSId = Convert.ToInt32(hdnParentRossId.Value);
    if (!string.IsNullOrEmpty(hdnMainRossLink.Value))
    generalInfo.StartUpRossLink = hdnMainRossLink.Value;
    generalInfo.TotalEstimatedStudyCostLastApproved = Utility.ConvertCurrencyToDouble(hdnTotalEstimatedStudyCostApproved.Value);
    generalInfo.DrugSafetyROSSType = txtRossType.Text;
    generalInfo.ResponsibleCostCenter = txtResponsibleCostCenter.Text;
    break;
    default:
    break;
    if (isSaveAndProceed)
    (Parent as AbstractView).EventName = Constants.GeneralInformation_SaveAndProceed;
    else
    (Parent as AbstractView).EventName = Constants.GeneralInformation_Save;
    (Parent as AbstractView).InvokePresentor();
    erossoperationtracker.LogToErrorList("End - Prepare data for saving(PrepareSave)- Save And Proced GeneralInfo Button", erossoperationtracker.currentUser());
    catch (Exception ex)
    erossoperationtracker.LogToErrorList("Error - Prepare data for saving(PrepareSave)- Save And Proced GeneralInfo Button", erossoperationtracker.currentUser());
    LogException(ex);
    Do you see any issue in the code...We are not able to understand where is the issue.Amazingly this code was working absolutely fine in SharePoint 2010 and never given any problem but after migrating it to SharePoint 2013 it started
    showing this sporadic issue.
    Regards
    Rajaniesh

    Hi,
    Per my understanding, there is a sporadic issue in your custom web part solution.
    As a common practice, I would suggest you debug this web part in Visual Studio and test different data input, as it is a sometimes issue, the most probably cause would
    be an issued entry, debugging would make it easier to be noticed.
    As you said, it “works absolutely fine in SharePoint 2010 environment”, you can repeat the same operations when issue occurs in the SharePoint 2010 environment to
    see if it is we can get more information there.
    Feel free to reply if there any progress.
    Thanks                      
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Patrick Liang
    TechNet Community Support

  • How to add a scrolling text to display in a web part?

    Hi,
    I have 3 files in a doc library that is been referenced by a web part xml viewer in a page. I am referring only  the xml file.
    WarningMessage.xml
    <script type="text/javascript" src="http://icare/sites/IT/tst/XmlWebParts/WarningMessage/WarningMessage.js"></script>
    WarningMessage.js
    <script type="text/javascript">
    <
    //set the marquee parameters
    function init() { rtl_marquee.start(); }
    var rtl_marquee_Text = 'JavaScript scrolling text';
    var rtl_marquee_Direction = 'left';
    var rtl_marquee_Contents='<span style="font-family:Comic Sans MS;font-size:12pt;white-space:nowrap;">' + rtl_marquee_Text + '</span>';
    rtl_marquee = new xbMarquee('rtl_marquee', '19px', '90%', 6, 100, rtl_marquee_Direction, 'scroll', rtl_marquee_Contents);
    window.setTimeout( init, 200);
    </script>
    and
    xbMarquee.js
    document.writeln('<style type="text/css">');
    document.writeln(' div.marqueecenter1 { text-align: center; }');
    document.writeln(' div.marqueecenter2 { margin- margin-right: auto; }');
    document.writeln(' div.marqueeleft1 { text-align: left; }');
    document.writeln(' div.marqueeleft2 { margin- margin-right: auto; }');
    document.writeln(' div.marqueeright1 { text-align: right; }');
    document.writeln(' div.marqueeright2 { margin- margin-right: 0; }');
    document.writeln('</style>');
    function xbMarquee(id, height, width, scrollAmount, scrollDelay, direction, behavior, html)
      this.id            = id;
      this.scrollAmount  = scrollAmount ? scrollAmount : 6;
      this.scrollDelay   = scrollDelay ? scrollDelay : 85;
      this.direction     = direction ? direction.toLowerCase() : 'left';  
      this.behavior      = behavior ? behavior.toLowerCase() : 'scroll';  
    //  this.name          = 'xbMarquee_' + (++xbMarquee._name);
      this.name          = id;
      this.runId         = null;
      this.html          = html;
      this.isHorizontal = ('up,down'.indexOf(this.direction) == -1);
      if (typeof(height) == 'number')
        this.height = height;
        this.heightUnit = 'px';
      else if (typeof(height) == 'string')
        this.height = parseInt('0' + height, 10);
        this.heightUnit = height.toLowerCase().replace(/^[0-9]+/, '');
      else
        this.height = 100;
        this.heightUnit = 'px';
      if (typeof(width) == 'number')
        this.width = width;
        this.widthUnit = 'px';
      else if (typeof(width) == 'string')
        this.width = parseInt('0' + width, 10);
        this.widthUnit = width.toLowerCase().replace(/^[0-9]+/, '');
      else
        this.width = 100;
        this.widthUnit = 'px';
      // xbMarquee UI events
      this.onmouseover   = null;
      this.onmouseout    = null;
      this.onclick       = null;
      // xbMarquee state events
      this.onstart       = null;
      this.onbounce      = null;
      var markup = '';
      if (document.layers)
        markup = '<ilayer id="' + this.id + 'container" name="' + this.id + 'container" ' +
                 'height="' + height + '" ' +
                 'width="' + width + '"  ' +
                 'clip="' + width + ', ' + height + '" ' +
                 '>' + 
                 '<\/ilayer>';            
      else if (document.body && typeof(document.body.innerHTML) != 'string')
        markup = '<div id="' + this.id + 'container" name="' + this.id + 'container" ' +
                 'style=" ' + 
                 'height: ' + this.height + this.heightUnit + '; ' +
                 'width: ' + this.width + this.widthUnit + '; ' +
                 'clip: rect(0px, ' + this.width + this.widthUnit + ', ' + this.height + this.heightUnit + ', 0px); ' +
                 '">' + 
                 '<div id="' + this.id + '" style="' + 
                 (this.isHorizontal ? 'width:0px;' : '') + // if we scroll horizontally, make the text container as small as possible
                 '">' +
                 (this.isHorizontal ? '<nobr>' : '') +
                 this.html +
                 (this.isHorizontal ? '<\/nobr>' : '') +
                 '<\/div>' +
                 '<\/div>';             
      else 
        markup = '<div id="' + this.id + 'container" name="' + 
                 this.id + 'container" ' +
                 'style=" overflowY: visible; ' + 
                 'height: ' + this.height + this.heightUnit + '; ' +
                 'width: ' + this.width + this.widthUnit + '; ' +
                 'clip: rect(0px, ' + this.width + this.widthUnit + ', ' + this.height + this.heightUnit + ', 0px); ' +
                '">' + 
                 '<\/div>';             
      document.write(markup);  
      window[this.name] = this;
    // Class Properties/Methods
    xbMarquee._name = -1;
    xbMarquee._getInnerSize = function(elm, propName)
      var val = 0;
      if (document.layers)
        // navigator 4
        val = elm.document[propName];    
      else if (elm.style && typeof(elm.style[propName]) == 'number')
        // opera
        // bug in Opera 6 width/offsetWidth. Use clientWidth
        if (propName == 'width' && typeof(elm.clientWidth) == 'number')
          val = elm.clientWidth;
        else
          val =  elm.style[propName];
      else
        //mozilla and IE
        switch (propName)
        case 'height':
           if (typeof(elm.offsetHeight) == 'number')
             val =  elm.offsetHeight;
           break;
        case 'width':
           if (typeof(elm.offsetWidth) == 'number')
             val = elm.offsetWidth;                  
           break;
      return val;
    xbMarquee.getElm = function(id)
      var elm = null;
      if (document.getElementById)
        elm = document.getElementById(id);
      else
        elm = document.all[id];
      return elm;
    xbMarquee.dispatchUIEvent = function (event, marqueeName, eventName)
      var marquee = window[marqueeName];
      var eventAttr = 'on' + eventName;
      if (!marquee)
        return false;
      if (!event && window.event)
        event = window.event;
      switch (eventName)
      case 'mouseover':
      case 'mouseout':
      case 'click':
        if (marquee[eventAttr])
          return marquee['on' + eventName](event);
      return false;
    xbMarquee.createDispatchEventAttr = function (marqueeName, eventName)
      return 'on' + eventName + '="xbMarquee.dispatchUIEvent(event, \'' + marqueeName + '\', \'' + eventName + '\')" ';
    // Instance properties/methods
    xbMarquee.prototype.start = function ()
      var markup = '';
      this.stop();
      if (!this.dirsign)
        if (!document.layers)
          this.containerDiv = xbMarquee.getElm(this.id + 'container')
          if (typeof(this.containerDiv.innerHTML) != 'string')
            return;
          // adjust the container size before inner div is filled in
          // so IE will not hork the size of percentage units 
          var parentNode    = null;
          if (this.containerDiv.parentNode)
            parentNode = this.containerDiv.parentNode;
          else if (this.containerDiv.parentElement)
            parentNode = this.containerDiv.parentElement;
          if (parentNode && 
              typeof(parentNode.offsetHeight) == 'number' && 
              typeof(parentNode.offsetWidth) == 'number')
            if (this.heightUnit == '%')
              this.containerDiv.style.height = 
              parentNode.offsetHeight * (this.height/100) + 'px';
            if (this.widthUnit == '%')
              this.containerDiv.style.width = 
              parentNode.offsetWidth * (this.width/100) + 'px';
          markup += '<div id="' + this.id + '" name="' + this.id + '" ' +
            'style=" ' +
            //(this.isHorizontal ? 'width:0px;' : '') + // if we scroll horizontally, make the text container as small as possible
            '" ' +
            xbMarquee.createDispatchEventAttr(this.name, 'mouseover') +
            xbMarquee.createDispatchEventAttr(this.name, 'mouseout') +
            xbMarquee.createDispatchEventAttr(this.name, 'click') +
            '>' +
            (this.isHorizontal ? '<nobr>' : '') +
            this.html +
            (this.isHorizontal ? '<\/nobr>' : '') +
            '<\/div>';
          this.containerDiv.innerHTML = markup;
          this.div                    = xbMarquee.getElm(this.id);
          this.styleObj     = this.div.style;      
        else /* if (document.layers) */
          this.containerDiv = document.layers[this.id + 'container'];
          markup = 
            '<layer id="' + this.id + '" name="' + this.id + '" top="0" left="0" ' +
            xbMarquee.createDispatchEventAttr(this.name, 'mouseover') +
            xbMarquee.createDispatchEventAttr(this.name, 'mouseout') +
            xbMarquee.createDispatchEventAttr(this.name, 'click') +
            '>' +
            (this.isHorizontal ? '<nobr>' : '') + 
            this.html +
            (this.isHorizontal ? '<\/nobr>' : '') +
            '<\/layer>';
          this.containerDiv.document.write(markup);
          this.containerDiv.document.close();
          this.div          = this.containerDiv.document.layers[this.id];
          this.styleObj     = this.div;
        if (this.isHorizontal && this.height < xbMarquee._getInnerSize(this.div, 'height') )
          this.height = xbMarquee._getInnerSize(this.div, 'height')
          this.containerDiv.style.height = this.height + this.heightUnit;
          this.containerDiv.style.clip = 'rect(0px, ' + this.width + this.widthUnit + ', ' + this.height + this.heightUnit + ', 0px)';
        // Start must not run until the page load event has fired
        // due to Internet Explorer not setting the height and width of 
        // the dynamically written content until then
        switch (this.direction)
        case 'down':
          this.dirsign = 1;
          this.startAt = -xbMarquee._getInnerSize(this.div, 'height');
          this._setTop(this.startAt);
          if (this.heightUnit == '%')
            this.stopAt = this.height * xbMarquee._getInnerSize(this.containerDiv, 'height') / 100;
          else
            this.stopAt  = this.height;
          break;
        case 'up':
          this.dirsign = -1;
          if (this.heightUnit == '%')
            this.startAt = this.height * xbMarquee._getInnerSize(this.containerDiv, 'height') / 100;
          else     
            this.startAt = this.height;
          this._setTop(this.startAt);
          this.stopAt  = -xbMarquee._getInnerSize(this.div, 'height');      
          break;
        case 'right':
          this.dirsign = 1;
          this.startAt = -xbMarquee._getInnerSize(this.div, 'width');
          this._setLeft(this.startAt);
          if (this.widthUnit == '%')
            this.stopAt = this.width * xbMarquee._getInnerSize(this.containerDiv, 'width') / 100;
          else    
            this.stopAt  = this.width;
          break;
        case 'left':
        default:
          this.dirsign = -1;
    if (this.widthUnit == '%')
    this.startAt = this.width * xbMarquee._getInnerSize(this.containerDiv, 'width') / 100;
    else  
    this.startAt = this.width        
    this._setLeft(this.startAt);
    // this.stopAt  = -xbMarquee._getInnerSize(this.div,'width')*2;
    // this method does not work very well with FireFox.  offsetWidth property used in this function returns the absolute width of the div container
    // instead of the new offsetWidth when innerHTML is added or when the div becomes wider. To overcome this a new span element is added to 
    // the document body to measure the new offsetwidth and then it is removed.
    var temp_span = document.createElement('span');     
    temp_span.id = 'span_' + this.div.id;
    temp_span.innerHTML = this.html;
    document.body.appendChild(temp_span);                
    this.stopAt = - temp_span.firstChild.firstChild.offsetWidth;
    document.body.removeChild(temp_span);            
          break;
        this.newPosition          = this.startAt;
        this.styleObj.visibility = 'visible'; 
      this.newPosition += this.dirsign * this.scrollAmount;
      if ( (this.dirsign == 1  && this.newPosition > this.stopAt) ||
           (this.dirsign == -1 && this.newPosition < this.stopAt) )
        if (this.behavior == 'alternate')
          if (this.onbounce)
            // fire bounce when alternate changes directions
            this.onbounce();
          this.dirsign = -this.dirsign;
          var temp     = this.stopAt;
          this.stopAt  = this.startAt;
          this.startAt = temp;
        else
          // fire start when position is a start
          if (this.onstart)
            this.onstart();
          this.newPosition = this.startAt;
      switch(this.direction)
        case 'up': 
        case 'down':
          this._setTop(this.newPosition);
          break;
        case 'left': 
        case 'right':
        default:
          this._setLeft(this.newPosition);
          break;
      this.runId = setTimeout(this.name + '.start()', this.scrollDelay);
    xbMarquee.prototype.stop = function ()
      if (this.runId)
        clearTimeout(this.runId);
      this.runId = null;
    xbMarquee.prototype.setInnerHTML = function (html)
      if (typeof(this.div.innerHTML) != 'string')
        return;
      var running = false;
      if (this.runId)
        running = true;
        this.stop();
      this.html = html;
      this.dirsign = null;
      if (running)
        this.start();
    // fixes standards mode in gecko
    // since units are required
    if (document.layers)
      xbMarquee.prototype._setLeft = function (left)
        this.styleObj.left = left;    
      xbMarquee.prototype._setTop = function (top)
        this.styleObj.top = top;    
    else
      xbMarquee.prototype._setLeft = function (left)
        this.styleObj.left = left + 'px';    
      xbMarquee.prototype._setTop = function (top)
        this.styleObj.top = top + 'px';    
    I have nothing displaying in the web-part. How can I make this to work?

    This is how i was able to do it. Edit html source.
    <div align="center"><marquee id='scroll_news4' bgcolor=#ff9966 "><font color="#000000" size="+1" ><strong>Outlook is down! IT is working on it! </strong></font></marquee></div>
    <input type='Button' value='Stop' id ='b1' onClick='button_click()';>
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
    function button_click()
    if(document.getElementById('b1').value=="Start"){
    document.getElementById('b1').value="Stop";
    document.getElementById('scroll_news4').start();
    }else{
    document.getElementById('b1').value="Start";
    document.getElementById('scroll_news4').stop();
    // End -->
    </script>

  • Adding "Filter Criteria" to the XSLT List View Web Part impact on "Export to Excel" functionality within Document Library

    Hi there,
    XSLT List View displaying all the list items within the Document Library. In order to implement the Search functionality within Document library out of box "Text Filter" web part is configured as explained below. The solution is similar to
    the one suggested at
    http://www.wonderlaura.com/Lists/Posts/Post.aspx?ID=77
    "Text Filter" Web Part added to the page.
    Filter Criteria (i.e., XSLT List View columns) added to the XSLT List View where the filter parameters take the input from the "Text Filter" Web Part .
      3. Both Web Parts (XSLT List View and the Text Filter) are connected.
    When the search criteria is entered into the "Text Filter" Web Part, it is passed to the relevant Columns of the XSLT List View and the documents (List Items) that match the search criteria are shown within XSLT List View.
    Search functionality working as expected.
    Query: Selecting the "Export to Excel" icon from the ribbon generates the excel spread sheet with no data except Column Titles from the Document library. In the investigation it is
    found that adding the 'Filter Criteria' on XSLT List View is causing this bug. When the Filter Criteria is removed, then "Export to Excel" functionality is working as expected.
    But it is mandatory to add "Filter Criteria" to implement the search functionality with in the document library.
    Help: Help/input appreciated on the work around to get the "Export to Excel" functionality work when the "Filter Criteria"
    exist on the XSLT List View.
    Regards,

    Once again thanks very much for your help Scott. very much appreciated.
    In the investigation it is found that removing the 'Filter Criteria' on XSLT List View makes the "Export to Excel" functionality work. But the 'Filter Criteria' is mandatory to get the 'Document Search' functionality.
    I think that due to technical limitations it should be concluded that 'only custom development can make all work, no code solutions using the SharePoint Designer can meet all the requirements.
    If you can think of any alternative solution that could help in resolving the current issue or fix the issue without any custom implementation please inform. Otherwise this issue would be marked as resolved with your suggested response.
    Regards,

  • How to display the field name in the tabulated view for a content query web part

    I have added a content query web part changed the web part file to include custom columns imported and reffered itemstyle.xsl
    to include the tabulated view for the content query.
    However the way it is displayed is such that only the content is displayed.
    As i am using a tabular view wto display the data, i want to display their field names as well.

    Hi  ,
    According to your description, my understanding is that you need to display the field in the tabulated view for a content query web part.
    For your issue, please refer to the code as below:
    <xsl:template name="VendorCustomStyle" match="Row[@Style='VendorCustomStyle']" mode="itemstyle">
    <html>
    <table width="100%">
    <xsl:if test="count(preceding-sibling::*)=0">
    <tr>
    <td width="8%" valign="top"><div class="item"><b>Vendor ID</b></div></td>
    <td width="12%" valign="top"><div class="item"><b>Vendor Name</b></div></td>
    <td width="50%" valign="top"><div class="item"><b>Vendor Description</b></div></td>
    <td width="10%" valign="top"><div class="item"><b>Vendor Country</b></div></td>
    <td width="10%" valign="top"><div class="item"><b>Vendor Date</b></div></td>
    <td width="10%" valign="top"><div class="item"><b>Created By</b></div></td>
    </tr>
    </xsl:if>
    <tr>
    <td width="8%" valign="top"><div class="item"><xsl:value-of select="@VendorID" /></div></td>
    <td width="12%" valign="top"><div class="item"><xsl:value-of select="@Title" /></div></td>
    <td width="50%" valign="top"><div class="item"><xsl:value-of select="@Vendor_x005F_x0020_Description" disable-output-escaping="yes" /></div></td>
    <td width="10%" valign="top"><div class="item"><xsl:value-of select="@Vendor_x005F_x0020_Country" /></div></td>
    <td width="10%" valign="top"><div class="item"><xsl:value-of select="@Vendor_x005F_x0020_Date" /></div></td>
    <td width="10%" valign="top"><div class="item"><xsl:value-of select="@Author" /></div></td>
    </tr>
    </table>
    </html>
    </xsl:template>
    For more information, please have a look at the blog:
    http://www.codeproject.com/Articles/756834/Customizing-the-Content-Query-Web-Part-and-Item-St
    http://msdn.microsoft.com/en-us/library/ms497457.aspx
    http://clarksteveb.hubpages.com/hub/Customized-Content-Query-Web-Part-CQWP-in-SharePoint-2007-with-results-Tabbed-Grouped-and-in-an-HTML-Table
    http://blog.sharepointexperience.com/customitemstyle/
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • 10g: Invoking a web service asynchronously from BPEL

    Hello,
    I am trying to figure out a good, generic method for making a previously synchronous web service asynchronous and changing the way in which it is invoked from BPEL. I am using SOA Suite 10g (10.1.3.5)
    As I understand, one possible method to achieve this is to use IDeliveryService.post() to deliver the web service's response to the BPEL process. For this route, the standard practice of correlation seems to be to supply a correlation Id when invoking the web service and returning the same correlation id as a part of the web service's response message. However, I want to avoid this since it would mean that all response messages from the web service (10+) would have to be modified to include a correlationId, which is problematic in the special case of this web service. Including a correlationId in the request message is possible, however.
    I have tried the approach of using the conversation Id directly instead of the correlation Id, by reading the value of ora:getConversationId(), passing this to the web service and setting the property CONVERSATION_ID of the response NormalizedMessage to the same value when returning. However, I cannot seem to get this approach right. Is this possible at all?
    An alternative might be to use WS-Addressing, but I do not know if I can make the web service support this - it is written using the EJB WebService-Annotations feature and runs on OC4J as well.
    Do you have any suggestions on how this problem could be resolved?
    Edited by: 901765 on 12.12.2011 06:01

    I have found the following tutorial that implements something similiar to what I am trying to do: http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/odi/10g/10135/odiscenario_bpelcallback/odiscenario_bpelcallback.htm#t3
    Because of this, I am now confident that the conversation IDs can be used to achieve correlation. I have implemented the pattern by performing
    an invoke activity on the web service, passing the result of ora:getConversationId() as part of the message. The conversation Id returned is of UUID-Form.
    After the invoke activity, I have added a pick activity to receive the response message supplied by the web service through IDeliveryService.post(...). I can see that the message is received correctly by loooking at the contents of DLV_MESSAGE. However, the pick activity times out every time (after 10m). Looking at DLV_SUBSCRIPTION reveals that the conversation_id for the pick/receive activity is set to a value of the form bpel://localhost/default/MyBpelProcessName~1.0/7610001-BpInv0-BpSeq2.7-2. As far as I know, this should instead be set to the UUID that ora:getConversationId() returned before performing the invoke activity. What is going wrong here?
    Thanks for your help!

  • How to set input/output "use" attribute in the WSDL file of BPEL process?

    Hello,
    I have a BPEL process that I want to deploy it as an RPC web service. I want to access it from a Java module (via an automatic generated Java stub from the WSDL file exposed by the BPEL process).
    I wrote manually the corresponding WSDL file for my BPEL process, where I stipulated for the operations exposed by my process ( in <soap:binding> tag) the value of the attribute "style" to "rpc". Also, for each <input> and <output> of the operations (inside the <operation> tag), I set manually the attributes "use" to the values "encoded". Something like this:
    <operation name="getCustomers">
    <soap:operation style="rpc" soapAction="getCustomers"/>
    <input>
    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="Trial"/>
    </input>
    <output>
    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="Trial"/>
    </output>
    </operation>
    The issue is that, when the BPEL process is built and deployed, the WSDL file generated automatically by BPEL (based on the one manually writen) set the values of the "use" attributes to "literal". This is what is generated:
    <operation name="getCustomers">
    <soap:operation style="rpc" soapAction="getCustomers" />
    <input>
    <soap:body use="literal" namespace="http://acm.org/samples" />
    </input>
    <output>
    <soap:body use="literal" namespace="http://acm.org/samples" />
    </output>
    </operation>
    Is there any chance to keep the original values (written by hand) for the "use attributes?
    Many thanks in advance!
    Regards,
    Marinel

    I am not sure I understand your question. If you want all your BPEL service to be rpc still by default, you can change the templates: C:\eclipse\plugins\bpelz_0.9.XXX\templates.
    The BPEL PM engine support both style of invocation.
    I hope this helps. -Edwin

  • Error while executing web part: System.InvalidProgramException: Common Language Runtime detected an invalid program.

    hello,
    we have 3 server sharepoint 2010 farm as a live system and a 1 server for development and test system. I've got a problem with one of our portals that gives correlation ID (in 2 or 3 times a week) on all my dataview web parts (total 8 Dataview
    WP) until i make IIS reset for that portal. (but same portal works like magic on test system over 3 weeks now). there is no custom code in the page other than the customized masterpage and css. and just reseting the IIS solves the problem for a couple
    of days but i need to fix that permanantly. if anyone can help me about that i will be happy. thank you all in advance.
    here is the log for the correlation ID;
    11/08/2011 09:40:11.72  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Logging Correlation Data       xmnv Medium   Name=Request (GET:http://www.efesithelpdesk.com:80/defaulttr.aspx) 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:11.79  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (GetFileAndMetaInfo). Execution Time=63,946744628158 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:11.79  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (GetWebPartPageContent). Execution Time=64,2515319684485 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:11.79  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Logging Correlation Data       xmnv Medium   Site=/ 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:11.79  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (PostResolveRequestCacheHandler). Execution Time=65.3603321092485 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.22  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (EnsureListItemsData). Execution Time=361.680395134018 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.25  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     Error while executing web part: System.InvalidProgramException: Common Language
    Runtime detected an invalid program.     at Execute(XmlQueryRuntime )     at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean
    closeWriter)     at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)     at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable
    input, XsltArgumentList arguments, XmlWriter results)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.ExecuteTransform(XslCompiledTransform xslCompiledTransform, XsltArgumentList xmlArguments, Boolean bDeferExecuteTransform)    
    at Microsoft.SharePoint.WebPar... 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.25* w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     ...tPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform) 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.25  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (DataBinding DataFormWebPart (HelpDesk)). Execution Time=391.723110060077 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.25  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (Activate web part connections). Execution Time=416.389513192319 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.28  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     Error while executing web part: System.InvalidProgramException: Common Language
    Runtime detected an invalid program.     at Execute(XmlQueryRuntime )     at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean
    closeWriter)     at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)     at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable
    input, XsltArgumentList arguments, XmlWriter results)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.ExecuteTransform(XslCompiledTransform xslCompiledTransform, XsltArgumentList xmlArguments, Boolean bDeferExecuteTransform)    
    at Microsoft.SharePoint.WebPar... 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.28* w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     ...tPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform) 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.30  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (EnsureListItemsData). Execution Time=18.8157992147047 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.34  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     Error while executing web part: System.InvalidProgramException: Common Language
    Runtime detected an invalid program.     at Execute(XmlQueryRuntime )     at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean
    closeWriter)     at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)     at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable
    input, XsltArgumentList arguments, XmlWriter results)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.ExecuteTransform(XslCompiledTransform xslCompiledTransform, XsltArgumentList xmlArguments, Boolean bDeferExecuteTransform)    
    at Microsoft.SharePoint.WebPar... 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.34* w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     ...tPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform) 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.34  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (DataBinding DataFormWebPart (Related Items in Approves)).
    Execution Time=56.5768833748423 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.36  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (EnsureListItemsData). Execution Time=16.99475771362 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.41  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     Error while executing web part: System.InvalidProgramException: Common Language
    Runtime detected an invalid program.     at Execute(XmlQueryRuntime )     at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean
    closeWriter)     at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)     at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable
    input, XsltArgumentList arguments, XmlWriter results)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.ExecuteTransform(XslCompiledTransform xslCompiledTransform, XsltArgumentList xmlArguments, Boolean bDeferExecuteTransform)    
    at Microsoft.SharePoint.WebPar... 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.41* w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     ...tPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform) 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.41  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (DataBinding DataFormWebPart (Related Items in Tasks)).
    Execution Time=59.0992011554541 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.43  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (EnsureListItemsData). Execution Time=20.8265994700444 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.44  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     Error while executing web part: System.InvalidProgramException: Common Language
    Runtime detected an invalid program.     at Execute(XmlQueryRuntime )     at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean
    closeWriter)     at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)     at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable
    input, XsltArgumentList arguments, XmlWriter results)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.ExecuteTransform(XslCompiledTransform xslCompiledTransform, XsltArgumentList xmlArguments, Boolean bDeferExecuteTransform)    
    at Microsoft.SharePoint.WebPar... 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.44* w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     ...tPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform) 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.46  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (EnsureListItemsData). Execution Time=18.1539832576487 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.47  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     Error while executing web part: System.InvalidProgramException: Common Language
    Runtime detected an invalid program.     at Execute(XmlQueryRuntime )     at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean
    closeWriter)     at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)     at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable
    input, XsltArgumentList arguments, XmlWriter results)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.ExecuteTransform(XslCompiledTransform xslCompiledTransform, XsltArgumentList xmlArguments, Boolean bDeferExecuteTransform)    
    at Microsoft.SharePoint.WebPar... 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.47* w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     ...tPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform) 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.49  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (EnsureListItemsData). Execution Time=13.4458429772499 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.49  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     Error while executing web part: System.InvalidProgramException: Common Language
    Runtime detected an invalid program.     at Execute(XmlQueryRuntime )     at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean
    closeWriter)     at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)     at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable
    input, XsltArgumentList arguments, XmlWriter results)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.ExecuteTransform(XslCompiledTransform xslCompiledTransform, XsltArgumentList xmlArguments, Boolean bDeferExecuteTransform)    
    at Microsoft.SharePoint.WebPar... 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.49* w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     ...tPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform) 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.52  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (EnsureListItemsData). Execution Time=23.1282886512113 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.53  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     Error while executing web part: System.InvalidProgramException: Common Language
    Runtime detected an invalid program.     at Execute(XmlQueryRuntime )     at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean
    closeWriter)     at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)     at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable
    input, XsltArgumentList arguments, XmlWriter results)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.ExecuteTransform(XslCompiledTransform xslCompiledTransform, XsltArgumentList xmlArguments, Boolean bDeferExecuteTransform)    
    at Microsoft.SharePoint.WebPar... 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.53* w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     ...tPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform) 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.57  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly Medium   Leaving Monitored Scope (Request (GET:http://www.efesithelpdesk.com:80/defaulttr.aspx)). Execution
    Time=845.499567682485 841eadfa-2a71-4cd3-85a4-7b1e3d75355f

    Nicholas Mulder's summary is exactly the issue our server is facing. App pool recycle kicks-off at 2:04am and by 2:06am all our data view web parts are displaying "Unable to display web part ..." I get the same error messages in ULS logs every
    time it recycles, however it is able to correct itself some of the time. The other times which is every few days, the web parts never come back up.
    Here are a few lines from the log leading up to the recycle and a few after.
    -The application domain /LM/W3SVC/1304874868/ROOT-1-130058022909222844 is unloading and going to be recycled.
    -Shutdown Reason: HostingEnvironment initiated shutdown  HostingEnvironment caused shutdown
    -AppDomain shutdown initiated
    -Flushing connection pool 'Data Source=SPSQL;Initial Catalog=SharePoint_Config;Integrated Security=True;Enlist=False;Connect Timeout=15'
    -An application domain named /LM/W3SVC/1304874868/ROOT-1-130058174460198926 has just been loaded.
    -Failed to look up string with key "FSAdmin_SiteSettings_UserContextManagement_ToolTip", keyfile Microsoft.Office.Server.Search.
    -Error initializing Safe control - Assembly:Microsoft.Office.SharePoint.ClientExtensions, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c TypeName: Microsoft.Office.SharePoint.ClientExtensions.Publishing.TakeListOfflineRibbonControl Error:
    -No webtemp*.xml files found for language 1033 and product version 3.
    -No webtemp*.xml files found for language 1033 and product version 2.
    -Failed to find generic XML file at "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\Template\SiteTemplates\STS\xml\stdview.xml"
    -Failed to find generic XML file at "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\Template\SiteTemplates\STS\xml\stdview.xml"
    -Error while executing web part: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    -Error while executing web part: System.ArgumentException: An item with the same key has already been added.   
    -Error while executing web part: System.NullReferenceException: Object reference not set to an instance of an object.  
    -AddWithFile:DfwpXslFilesHashCache=Microsoft.SharePoint.WebPartPages.CloneableHashTable
    -Error while executing web part: System.InvalidProgramException: Common Language Runtime detected an invalid program. 

  • Creation of Web Part page error in SharePoint subsite

    Hi Friends,
     When i was try to create webpart page( in out of the box)SharePoint Subside it throws error.
    I checked logs i finally got error information like
    System.ArgumentException: An entry with the same key already exists.  
     at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)   
     at System.Collections.Generic.SortedList`2.Add(TKey key, TValue value)   
     at ASP._layouts_spcf_aspx.__Render__control42(HtmlTextWriter __w, Control parameterContainer)   
     at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)   
     at ASP._controltemplates_inputformcontrol_ascx.__Render__control1(HtmlTextWriter __w, Control parameterContainer)   
     at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)   
     at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)   
     at ASP._controltemplates_inputformsection_ascx.__Render__control1(HtmlTextWriter __w, Control parameterContainer)   
     at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)   
     at ASP._layouts_spcf_aspx.__Render__control17(HtmlTextWriter __w, Control parameterContainer)   
     at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)   
     at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)   
     at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)   
     at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)   
     at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)   
     at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output)   
     at System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer)   
     at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)   
     at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)   
     at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)   
     at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)   
     at Microsoft.SharePoint.WebControls.UnsecuredLayoutsPageBase.RenderChildren(HtmlTextWriter writer)   
     at System.Web.UI.Page.Render(HtmlTextWriter writer)   
     at Microsoft.SharePoint.WebControls.UnsecuredLayoutsPageBase.Render(HtmlTextWriter writer)   
     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    This issue i faced only in Sub site of the site collection.
    i  am able to create  to  web part page in Root site and other sub sites in same site collection.
    This is challenging issue in SharePoint 2010 .
    Help me.
    Badri

    Hi Badri,
    Are you using any custom master page ?
    Which template you used to create sub site ?
    Let us know your results, thanks
    Regards,
    Pratik Vyas | SharePoint Consultant |
    http://sharepointpratik.blogspot.com
    Posting is provided AS IS with no warranties, and confers no rights
    Please remember to click Mark As Answer if a post solves your problem or
    Vote As Helpful if it was useful.

Maybe you are looking for

  • Loading ITunes problem

    Hi, I'm having problems uploading the Itunes store - any ideas why?. I've tried removing Itunes and re-loading with no joy :-(

  • Displaying startup status in JLabel

    i am trying to display status of the components i start in a JLabel. (eg. 'server is initialising', 'getting data', ... 'start success') i use following code to display message when certain part is accomplished: infoLabel.setText("server is initialis

  • Can't open msg server in console

    When I launch the console, I can see the messaging server, but can't open it. The error message is "Can't set uid and gid". What could be the possible cause? Thanks

  • Suggestions for Inventory Costs Tables - Retail

    Hello All, I am trying to calculate the Econoimic order quantity. I am looking for SAP tables that contains Ordering costs, logistic costs and storage costs. I did find the tables: MARC - Item data MARA -  General material data VFKP - Logistics VFKK

  • How to uninstall an application or delete software...

    Hi everybody, I am trying to un-install applications I have downloaded to my N900 but couldn't find the options, please advise me, much obliged. Solved! Go to Solution.