Update list definition schema.xml after deployment

I was wondering if anyone here has any experience with updating the schema.xml file after deployment.  I have a solution that I will outline in this post, but I feel like it is a delicately balanced hack instead of a real solution.  Any Information
that you can provide is greatly appreciated!
To begin, I am trying to create a new taxonomy site column, use this new site column in place of an old one in an existing content type, and update the list definition (and all existing lists) to show the new site column instead of the old.
The content type was originally deployed via an elements.xml file.  From what I understand, once deployed this file should never be modified.  So, via code I define my new site column, add the site column to the content type, and delete the old
site column from the content type.  I perform an update(true) on the content type so that the change is pushed to all list instances.  At this point, I can go to any list and the new/edit form for each of those lists does not show the old site column
but does show the new.  So far so good!
There are two problems at this point.  If I try to create a new list from the definition, I get a list that contains the site column that I deleted AND the new site column.  Also, the deleted site column name still appears in the default view. 
I tried removing the old and adding my new site column to the schema.xml, but this breaks all existing lists that were made from this schema.xml (specifically, it is a taxonomy field and none of the taxonomy fields work after updating).  I can create
a new list from the list definition that works fine, but I still need existing lists to work. 
The solution that I ended up on was JUST removing the no-longer-necessary field from the schema.xml, and then adding my new field to the ViewFields list in the schema.xml.  If I do this, everything is happy even though the only mention of the new field
in the schema.xml is in the ViewFields section.
So, with all of that said... does this make sense?  Am I doing this the correct way, or does this just work for now... and it will blow up later?
Thanks in advance!

I am sorry if I have caused confusion.  I am not doing what you think that I am doing :)
All of my issues that I reference above are encountered when I deploy via WSP/Powershell.  I am not changing any files directly in SharePoint.  When I mentioned changing the elements.xml and schema.xml files above, I am talking about in Visual
Studio prior to packaging everything in WSP and redeploying.  I will re-word my previous post to better emphasize my questions:
Isn't changing the elements.xml via Visual Studio and deploying the same as changing it directly? I have tried numerous times to change a content type elements.xml
file in Visual Studio, Deactivate/Retract/Remove/Install/Deploy/Activate the new version via WSP,
and then perform a content type update(true) in the feature activated
to push the changes to all child content types... and it doesn't change the lists version of the content type.  This is why I thought that guidance of "don't change the definition file" applied to elements.xml altogether after deploying. 
Either way, my code approach for getting these fields updated is working, so I can probably just proceed with that approach.
This is where it gets very strange.  I see everyone indicate that a schema.xmlchange does not affect existing lists that were made from a list definition
when updating the package in Visual Studio, Deactivating/Retracting/Removing/Installing/Deploying/Activating the new version via WSP.  I am 100% seeing the opposite of this.  When I update the schema.xml file
in Visual Studio and then deploy via WSP/Powershell, my views (in existing lists) change to match the new schema.xml as soon as I deploy the changes.  I don't know if this is working differently in 2013 than it did before.
Hopefully this better indicates the situation.  My apologies!
Thanks again!
Hi,
Do you have a solution for case 2)?
I just confirmed for case 2), you are right. This happened for both SP2010 and SP2013.
I've tried to add more column in the schema.xml, then re-deploy solution. After that, all existed lists are effected the new schema.xml. However, by the work as design of SharePoint OOTB, it could not be effected because after creating a list, all schema.xml
is copied to database and it will work on the separate space. It's so strange.
if you have a solution to fix or found out something else, please share it.
Thanks
/hai
Visit my blog: My Blog | Visit my forum:
SharePoint Community for Vietnamese |
Bamboo Solution Corporation

Similar Messages

  • How to add a calculated field in a list definition (schema.xml)?

    Hello,
    I'm currently trying to add a calculated field to a list definition (schema.xml).
    I have put the following code at the end of the schema.xml for the list I want to create. But when I deploy and activate the feature for the list, it doesn't appear in the list field.
    <Field ID="{EE20EC4B-4216-4259-A84F-C478CE42B70F}" Name="EC_EventsMgmt_CalculatedTime" StaticName="EC_EventsMgmt_CalculatedTime" Group="EC_EventsMgmt" Type="Calculated" DisplayName="Calculated Time" Required="TRUE" Hidden="FALSE" ReadOnly="FALSE" Format="DateTime"> <Formula>=DATE(2009,1,1)+TIME(EC_EventsMgmt_ScheduleHour,EC_EventsMgmt_ScheduleMinute,0)</Formula> <FieldRefs> <FieldRef Name="EC_EventsMgmt_ScheduleHour"/> <FieldRef Name="EC_EventsMgmt_ScheduleMinute"/> </FieldRefs> </Field>
    Could you please give me some help and explain me why it is not working?
    Thanks a lot.

    Hi there.
    If I understand correctly, you create this list within the same feature?
    If so, the list isn't available during the propagation, and therefore the calculated field can't be added.
    If this is the case, then you could work around this by adding a feature activated event handler to your feature and add the calculated field programmatically in that event.
    Hope this helps.
    Regards,
    Magnus
    My blog: InsomniacGeek.com

  • IOS 7 app store update list does not clear after updates have been installed

    iOS 7 app store update list does not clear after updates have been installed

    Rifles wrote:
    Good point, we will have to wait and see, it's a pity Apple has not produce an IOS7 PDF
    You mean like this one?
    http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf
    Best of luck.

  • Changing faces-config.xml after deploying ear file

    Hi,
    What would be the steps to follow if we want to change contenets of web application configuration files (for example, faces-config.xml) after app.ear file has been deployed?
    The app.ear file contains the faces-config.xml, and we are using Oracle AS 10.1.3.
    Thanks,
    Jean

    see my answer at
    Change web app config file of deployed app

  • "Person or Group" Field in List instance (Schema.xml)

    hi all,
    I created new List instance and I added new Field Employee to the list instance. The Employee field  in the Schema.xml is like:
    <Field Name="Person" ID="{f3c1416f-69dd-4172-b05f-5df45c86ee56}" DisplayName="Person" Type="UserMulti" Mult="TRUE" /></Fields>
    and this work fine.
    But I cant see the EntityEditor like below pic:
    they are disapear.
    Can anyone maybe help me?
    P.S.  I created one column via UI on the same list and in the SharePoint Manager 2013.
    Its the same I dont see the EntityEditor and here is the Schema.xml for the test column:
    <Field Type="UserMulti" DisplayName="test444" List="UserInfo" Required="FALSE" EnforceUniqueValues="FALSE" ShowField="ImnName" UserSelectionMode="PeopleAndGroups" UserSelectionScope="0"
    Mult="TRUE" Sortable="FALSE" ID="{aefd55b0-3d3e-44ba-a649-82391061ca38}" SourceID="{93681c67-ca5f-4598-a412-3efee82a18d6}" StaticName="test444" Name="test444" ColName="int3" RowOrdinal="0"
    />
    thank you in advance
    BR
    Ahmad

    Hallo Mr. Sabir,
    sorry I was sick and I couldn't answer you before :-(.
    I use SP 2013 (and not SP 2010, maybe I must Active a feature!) and in my Schema.xml I have exacly the Schema:
     <Field Name="Person"
                 ID="{f3c1416f-69dd-4172-b05f-5df45c86ee56}"
                 DisplayName="Person"
                 Type="User"
                 Required="FALSE"
                 ShowField="ImnName"
                 UserSelectionMode="1"
                 UserSelectionScope="0"
                 Group="Custom Columns"
                 StaticName="MyUserColumn"
                 />
    srv206/Lists/CustomList/NewForm.aspx
    when I open the above URL  I get like below picture:
    if you or other one here have/has an advice or other idea thanks in advance
    BR
    Ahmad
    SP 2013 & SPD 2013 & VS 2013 & MSSQL 2012

  • How to use Meta Data in List Definition

    Hi there, In Custom List , I could create a Meta Data Column by UI, but don't know how to create a Meta Data column in my list definition by programming anyone has experiense? -Regards, Chi

    Yeah, it's tricky creating a metadata column in CAML. You can do it, but it still requires a bit of code to wire up the column during feature activation. 
    Basically, you need to define your taxonomy field (and a hidden field for the label), include the taxonomy catchall fields (in your list definition), add an event handler to the list definition (that will update the taxonomy catch all fields when items are
    added and updated), and then wire up your taxonomy field during feature activation (this is when you would check if the termset has been created, and assign the termset id to the field, etc).
    Here's an example from a test project I created (with help from others). I've posted the whole project up to the TechNet Gallery, here:
    http://gallery.technet.microsoft.com/Declaratively-Adding-c4dc6c81.
    Column Markup:
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Field
    ID="{14c4e3ff-5d11-4412-a7ae-287f187d5eef}" Name="inceAnimal" DisplayName="Animal" StaticName="inceAnimal" Type="TaxonomyFieldType"
    Required="FALSE" Group="Ince Managed Fields" SourceID="http://schemas.microsoft.com/sharepoint/v3" ShowField="Term1033">
    <Customization>
    <ArrayOfProperty>
    <Property>
    <Name>TextField</Name>
    <Value xmlns:q6="http://www.w3.org/2001/XMLSchema" p4:type="q6:string" xmlns:p4="http://www.w3.org/2001/XMLSchema-instance">{24c4e3ff-5d11-4412-a7ae-287f187d5fff}</Value>
    </Property>
    </ArrayOfProperty>
    </Customization>
    </Field>
    <Field Type="Note" ID="{24c4e3ff-5d11-4412-a7ae-287f187d5fff}" Name="inceAnimalTaxHTField0" DisplayName="Animal_0" StaticName="inceAnimalTaxHTField0" ShowInViewForms="FALSE" Hidden="TRUE"
    RowOrdinal="0"/>
    </Elements>
    Content Type:
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <!-- Parent ContentType: Item (0x01) -->
    <ContentType ID="0x01001D68D1E8F73D4ED5BF5259CF2BCF5209" Name="Animal" Group="Ince Content Types" Description="A content type for storing information on animals." Inherits="TRUE" Version="0">
    <FieldRefs>
    <FieldRef ID="{14c4e3ff-5d11-4412-a7ae-287f187d5eef}" DisplayName="Animal" Required="FALSE" Name="inceAnimal" />
    <FieldRef ID="{24c4e3ff-5d11-4412-a7ae-287f187d5fff}" DisplayName="Animal_0" Hidden="TRUE" Name="inceAnimalTaxHTField0" />
    <FieldRef ID="{f3b0adf9-c1a2-4b02-920d-943fba4b3611}" Name="TaxCatchAll"/>
    <FieldRef ID="{8f6b6dd8-9357-4019-8172-966fcd502ed2}" Name="TaxCatchAllLabel"/>
    </FieldRefs>
    </ContentType>
    </Elements>
    List Definition (Elements.xml):
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <!-- Do not change the value of the Name attribute below. If it does not match the folder name of the List project item, an error will occur when the project is run. -->
    <ListTemplate
    Name="ldAnimal"
    Type="14000"
    BaseType="0"
    OnQuickLaunch="TRUE"
    SecurityBits="11"
    Sequence="410"
    DisplayName="Animals"
    Description="List for recording animals"
    Image="/_layouts/images/itgen.png"/>
    </Elements>
    List Definition (Schema.xml)
    <?xml version="1.0" encoding="utf-8"?>
    <List xmlns:ows="Microsoft SharePoint" Title="ldAnimal" FolderCreation="FALSE" Direction="$Resources:Direction;" Url="Lists/ldAnimal" BaseType="0" xmlns="http://schemas.microsoft.com/sharepoint/" EnableContentTypes="TRUE">
    <MetaData>
    <ContentTypes>
    <ContentType ID="0x01001D68D1E8F73D4ED5BF5259CF2BCF5209" Name="Animal" Group="Ince Content Types" Description="A content type for storing information on animals." Inherits="TRUE" Version="0">
    <FieldRefs>
    <FieldRef ID="{14c4e3ff-5d11-4412-a7ae-287f187d5eef}" DisplayName="Animal" Required="FALSE" Name="inceAnimal" />
    <FieldRef ID="{24c4e3ff-5d11-4412-a7ae-287f187d5fff}" DisplayName="Animal_0" Hidden="TRUE" Name="inceAnimalTaxHTField0" />
    <FieldRef ID="{f3b0adf9-c1a2-4b02-920d-943fba4b3611}" Name="TaxCatchAll"/>
    <FieldRef ID="{8f6b6dd8-9357-4019-8172-966fcd502ed2}" Name="TaxCatchAllLabel"/>
    </FieldRefs>
    </ContentType>
    </ContentTypes>
    <Fields>
    <Field ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Type="Text" Name="Title" DisplayName="$Resources:core,Title;" Required="TRUE" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="Title" MaxLength="255" />
    <Field ID="{14c4e3ff-5d11-4412-a7ae-287f187d5eef}" Name="inceAnimal" DisplayName="Animal" StaticName="inceAnimal" Type="TaxonomyFieldType" Required="FALSE" Group="Ince Managed Fields" SourceID="http://schemas.microsoft.com/sharepoint/v3">
    <Customization>
    <ArrayOfProperty>
    <Property>
    <Name>TextField</Name>
    <Value xmlns:q6="http://www.w3.org/2001/XMLSchema" p4:type="q6:string" xmlns:p4="http://www.w3.org/2001/XMLSchema-instance">{24c4e3ff-5d11-4412-a7ae-287f187d5fff}</Value>
    </Property>
    </ArrayOfProperty>
    </Customization>
    </Field>
    <Field Type="Note" ID="{24c4e3ff-5d11-4412-a7ae-287f187d5fff}" Name="inceAnimalTaxHTField0" DisplayName="Animal_0" StaticName="inceAnimalTaxHTField0" ShowInViewForms="FALSE" Hidden="TRUE" RowOrdinal="0"/>
    </Fields>
    <Views>
    <View BaseViewID="0" Type="HTML" MobileView="TRUE" TabularView="FALSE">
    <Toolbar Type="Standard" />
    <XslLink Default="TRUE">main.xsl</XslLink>
    <RowLimit Paged="TRUE">30</RowLimit>
    <ViewFields>
    <FieldRef Name="LinkTitleNoMenu"></FieldRef>
    </ViewFields>
    <Query>
    <OrderBy>
    <FieldRef Name="Modified" Ascending="FALSE"></FieldRef>
    </OrderBy>
    </Query>
    <ParameterBindings>
    <ParameterBinding Name="AddNewAnnouncement" Location="Resource(wss,addnewitem)" />
    <ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
    <ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_ONET_HOME)" />
    </ParameterBindings>
    </View>
    <View BaseViewID="1" Type="HTML" WebPartZoneID="Main" DisplayName="$Resources:core,objectiv_schema_mwsidcamlidC24;" DefaultView="TRUE" MobileView="TRUE" MobileDefaultView="TRUE" SetupPath="pages\viewpage.aspx" ImageUrl="/_layouts/images/generic.png" Url="AllItems.aspx">
    <Toolbar Type="Standard" />
    <XslLink Default="TRUE">main.xsl</XslLink>
    <RowLimit Paged="TRUE">30</RowLimit>
    <ViewFields>
    <FieldRef Name="Attachments"></FieldRef>
    <FieldRef Name="LinkTitle"></FieldRef>
    <FieldRef Name="inceAnimal" />
    </ViewFields>
    <Query>
    <OrderBy>
    <FieldRef Name="ID"></FieldRef>
    </OrderBy>
    </Query>
    <ParameterBindings>
    <ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
    <ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" />
    </ParameterBindings>
    </View>
    </Views>
    <Forms>
    <Form Type="DisplayForm" Url="DispForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
    <Form Type="EditForm" Url="EditForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
    <Form Type="NewForm" Url="NewForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
    </Forms>
    </MetaData>
    </List>
    Taxonomy List Event Receiver Markup:
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Receivers ListTemplateId="14000" ListUrl="Lists/ldAnimal">
    <Receiver>
    <Name>TaxonomyItemSynchronousAddedEventReceiver</Name>
    <Type>ItemAdding</Type>
    <Assembly>Microsoft.SharePoint.Taxonomy, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
    <Class>Microsoft.SharePoint.Taxonomy.TaxonomyItemEventReceiver</Class>
    <Synchronization>Synchronous</Synchronization>
    <SequenceNumber>10000</SequenceNumber>
    </Receiver>
    <Receiver>
    <Name>TaxonomyItemUpdatingEventReceiver</Name>
    <Type>ItemUpdating</Type>
    <Assembly>Microsoft.SharePoint.Taxonomy, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
    <Class>Microsoft.SharePoint.Taxonomy.TaxonomyItemEventReceiver</Class>
    <Synchronization>Synchronous</Synchronization>
    <SequenceNumber>10000</SequenceNumber>
    </Receiver>
    </Receivers>
    </Elements>
    Feature Activation Code:
    [Guid("8b0a27ee-22dd-4a4e-940e-9cce3a596c49")]
    public class AnimalFieldsandContentTypeEventReceiver : SPFeatureReceiver
    private const String TermGroupName = "Zoology";
    private const String TermSetName = "Animals";
    private readonly Guid _termSetId = new Guid("{8CC56BE3-93A0-4007-81AF-30EB39A42959}");
    private readonly Guid _animalFiedId = new Guid("{14c4e3ff-5d11-4412-a7ae-287f187d5eef}");
    private const String ClassName = "AnimalFieldsandContentTypeEventReceiver";
    public override void FeatureActivated(SPFeatureReceiverProperties properties)
    try
    Logging.Log(String.Format("{0}.FeatureActivated", ClassName), String.Format("Activating feature."), LogType.Information);
    var site = properties.Feature.Parent as SPSite;
    if (site == null)
    Logging.Log(ClassName, "The Site is null. Feature not activated.", LogType.Error);
    throw new NullReferenceException("The Site is null. Couldn't activate the feature.");
    var termStore = Taxonomy.GetDefaultTermStore(site);
    if (termStore == null)
    Logging.Log(ClassName, "The Taxonomy Termstore is null. Feature not activated.", LogType.Error);
    throw new NullReferenceException("The Taxonomy Termstore is null. Feature not activated.");
    var termGroup = Taxonomy.GetTermGroup(termStore, TermGroupName, true);
    var termSet = Taxonomy.GetTermSet(termGroup, TermSetName, _termSetId, true);
    Taxonomy.ConnectTaxonomyTerm(site, termSet, termGroup, _animalFiedId);
    Logging.Log(String.Format("{0}.FeatureActivated", ClassName), String.Format("Successfully activated feature."), LogType.Information);
    catch (Exception e)
    Logging.Log(String.Format("{0}.FeatureActivated", ClassName), String.Format("Unexpected error activating the feature. Error: {0}", e.Message), LogType.Error);
    throw;
    Taxonomy Helper Class:
    namespace TaxonomyTesting
    public class Taxonomy
    private const String ClassName = "Taxonomy";
    public static TermStore GetDefaultTermStore(SPSite site)
    var taxonomySession = new TaxonomySession(site);
    var termStore = taxonomySession.DefaultSiteCollectionTermStore;
    if (termStore != null) return termStore;
    return taxonomySession.TermStores.Count == 0 ? null : taxonomySession.TermStores[0];
    public static TermSet GetTermSet(Group group, String termsetName, Guid termsetId, Boolean createIfMissing)
    try
    foreach (var termSet in @group.TermSets.Where(set => set.Name.ToLower().Equals(termsetName.ToLower())))
    return termSet;
    if (createIfMissing)
    Logging.Log(String.Format("{0}.GetTermSet", ClassName), String.Format("Termset does not exist. Creating termset: {0}", termsetName), LogType.Information);
    var termSet = group.CreateTermSet(termsetName, termsetId, 1033);
    group.TermStore.CommitAll();
    Logging.Log(String.Format("{0}.GetTermSet", ClassName), String.Format("Successfully create termset: {0}", termsetName), LogType.Information);
    return termSet;
    return null;
    catch (Exception e)
    Logging.Log(String.Format("{0}.GetTermSet", ClassName), String.Format("Unexpected error getting a termset. Error: {0}", e.Message), LogType.Error);
    throw new Exception("[GetTermSet] Exception getting term set.");
    public static Group GetTermGroup(TermStore store, String groupName, Boolean createIfMissing)
    try
    foreach (var termGroup in @store.Groups.Where(termGroup => termGroup.Name.ToLower().Equals(groupName.ToLower())))
    return termGroup;
    if(createIfMissing)
    Logging.Log(String.Format("{0}.GetTermGroup", ClassName), String.Format("Termgroup does not exist. Creating term store group: {0}", groupName), LogType.Information);
    store.CreateGroup(groupName);
    store.CommitAll();
    Logging.Log(String.Format("{0}.GetTermGroup", ClassName), String.Format("Successfully create term store group: {0}", groupName), LogType.Information);
    return store.Groups[groupName];
    return null;
    catch (Exception e)
    Logging.Log(String.Format("{0}.GetTermGroup", ClassName), String.Format("Unexpected error getting a term store group. Error: {0}", e.Message), LogType.Error);
    throw new Exception("[GetTermGroup] Exception getting term store group.");
    public static void ConnectTaxonomyTerm(SPWeb web, TermSet termSet, Group termGroup, Guid taxonomyFieldId)
    if (web.Fields.Contains(taxonomyFieldId))
    var field = web.Fields[taxonomyFieldId] as TaxonomyField;
    if (field == null)
    throw new ArgumentException(String.Format("The field with id {0} is not a TaxonomyField.",taxonomyFieldId));
    field.SspId = termSet.TermStore.Id;
    field.TermSetId = termSet.Id;
    field.TargetTemplate = String.Empty;
    field.AnchorId = Guid.Empty;
    field.Update(true);
    return;
    throw new ArgumentException(String.Format("The field with id {0} could not be found on the current web, {1}", taxonomyFieldId, web.Url));
    public static void ConnectTaxonomyTerm(SPSite site, TermSet termSet, Group termGroup, Guid taxonomyFieldId)
    ConnectTaxonomyTerm(site.RootWeb, termSet, termGroup, taxonomyFieldId);
    Logging class (just a helper class, that isn't required if you don't want to log to the ULS)
    namespace TaxonomyTesting
    public static class Logging
    private const String SolutionName = "TaxonomyTesting";
    public static void Log(String callingClass, String message, LogType logType)
    switch (logType)
    case LogType.Error:
    SPDiagnosticsService.Local.WriteTrace(0, new SPDiagnosticsCategory(SolutionName, TraceSeverity.Unexpected, EventSeverity.ErrorCritical), TraceSeverity.Unexpected, String.Format("[{0}][{1}] [Error] {2}", SolutionName, callingClass, message), message);
    return;
    case LogType.Warning:
    SPDiagnosticsService.Local.WriteTrace(0, new SPDiagnosticsCategory(SolutionName, TraceSeverity.High, EventSeverity.Warning), TraceSeverity.High, String.Format("[{0}][{1}] [Warning] {2}", SolutionName, callingClass, message), message);
    return;
    case LogType.Information:
    SPDiagnosticsService.Local.WriteTrace(0, new SPDiagnosticsCategory(SolutionName, TraceSeverity.Medium, EventSeverity.Information), TraceSeverity.Medium, String.Format("[{0}][{1}] {2}", SolutionName, callingClass, message), message);
    return;
    public enum LogType
    Information,
    Warning,
    Error
    Regards, Matthew
    MCPD | MCITP
    My Blog
    View
    Matthew Yarlett's profile
    See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

  • Data type change made to schema.xml of comments list which is part of blog site template is not reflecting in the existing site but working fine when new site is created.

    Hi,
    I have created a blog site with the available site template few days back. Now we have the requirement of having the attachments in the body of the comments section. 
    So, I updated the schema.xml of the comments list available under ../templates/blog/lists/comments/schema.xml to have rich text for the Body field.
    With this change, I created a new site and it was working fine. Change is reflected in the new blog site.
    However, this particular change is not reflected in the existing blog site. Any changes made to the schema.xml is not effecting the old blog site.
    Can anyone suggest what can be done for the change to be reflected in the old blog site?
    Thanks in Advance,
    Regards, Keerthi Suryadevara

    Hi,
    According to your post, my understanding is that you wanted to add attachments in the body of the comments section.
    You can add the the Code inside the Default list pages. For more information, you can refer to:
    Enable Attachment in SharePoint Blog post list and display the list Attachments
    In addition, you can add an enhanced rich text field to the comment list and remove the body field. Then you can insert files into comments, too.
    Here is a similar thread for your reference:
    http://sharepoint.stackexchange.com/questions/77194/how-to-add-attachments-for-comments-list-in-sharepoint-blog-2010
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Application Error while activating the feature - for creating list content type, list definition and list instance

    Dear all,
    I am getting application error while enabling the feature. if any body can point out the issue - that will be helpful.
    content type
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Field ID="{4C1B0A21-FCE0-4CFE-8742-A250672AFE4F}" Type="Note" Name="CourseDesc" DisplayName="Course Description" Required="TRUE" Group="Training Site Columns"/>
    <!-- Parent ContentType: Item (0x01) -->
    <ContentType ID="0x0100d57ecc53fde34177b096abd0ec90a8f9"
    Name="TrainingCourses"
    Group="Training Content Types"
    Description="Defines a Course"
    Inherits="TRUE"
    Version="0">
    <FieldRefs>
    <FieldRef ID="{4C1B0A21-FCE0-4CFE-8742-A250672AFE4F}" Name="CourseDesc" DisplayName="Course Description" Required="TRUE"/>
    </FieldRefs>
    </ContentType>
    </Elements>
    List definition
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <!-- Do not change the value of the Name attribute below. If it does not match the folder name of the List Definition project item, an error will occur when the project is run. -->
    <ListTemplate
    Name="TrainingCourses"
    Type="10100"
    BaseType="0"
    OnQuickLaunch="TRUE"
    SecurityBits="11"
    Sequence="410"
    DisplayName="TrainingCourses"
    Description="Training Courses List Definition"
    Image="/_layouts/images/itgen.png"/>
    </Elements>
    List instance
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <ListInstance Title="TrainingCourses"
    OnQuickLaunch="TRUE"
    TemplateType="10100"
    Url="Lists/TrainingCourses"
    Description="Training Course List Instance">
    </ListInstance>
    </Elements>
    schema
    <?xml version="1.0" encoding="utf-8"?>
    <List xmlns:ows="Microsoft SharePoint" Title="TrainingCourses" FolderCreation="FALSE" Direction="$Resources:Direction;" Url="Lists/TrainingCourses-LD_TrainingCourses" BaseType="0" xmlns="http://schemas.microsoft.com/sharepoint/">
    <MetaData>
    <ContentTypes>
    <ContentType ID="0x0100d57ecc53fde34177b096abd0ec90a8f9" Name="TrainingCourses" Group="Training Content Types" Description="Defines a Course" Inherits="TRUE" Version="0">
    <FieldRefs>
    <FieldRef ID="{4C1B0A21-FCE0-4CFE-8742-A250672AFE4F}" Name="CourseDesc" DisplayName="Course Description" Required="TRUE" />
    </FieldRefs>
    </ContentType>
    </ContentTypes>
    <Fields>
    <Field ID="{4c1b0a21-fce0-4cfe-8742-a250672afe4f}" Type="Note" Name="CourseDesc" DisplayName="Course Description" Required="TRUE" Group="Training Site Columns" />
    </Fields>
    <Views>
    <View BaseViewID="0" Type="HTML" MobileView="TRUE" TabularView="FALSE">
    <Toolbar Type="Standard" />
    <XslLink Default="TRUE">main.xsl</XslLink>
    <RowLimit Paged="TRUE">30</RowLimit>
    <ViewFields>
    <FieldRef Name="LinkTitleNoMenu">
    </FieldRef>
    <FieldRef Name="CourseDesc">
    </FieldRef>
    </ViewFields>
    <Query>
    <OrderBy>
    <FieldRef Name="Modified" Ascending="FALSE">
    </FieldRef>
    </OrderBy>
    </Query>
    <ParameterBindings>
    <ParameterBinding Name="AddNewAnnouncement" Location="Resource(wss,addnewitem)" />
    <ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
    <ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_ONET_HOME)" />
    </ParameterBindings>
    </View>
    <View BaseViewID="1" Type="HTML" WebPartZoneID="Main" DisplayName="$Resources:core,objectiv_schema_mwsidcamlidC24;" DefaultView="TRUE" MobileView="TRUE" MobileDefaultView="TRUE" SetupPath="pages\viewpage.aspx" ImageUrl="/_layouts/images/generic.png" Url="AllItems.aspx">
    <Toolbar Type="Standard" />
    <XslLink Default="TRUE">main.xsl</XslLink>
    <RowLimit Paged="TRUE">30</RowLimit>
    <ViewFields>
    <FieldRef Name="Attachments">
    </FieldRef>
    <FieldRef Name="LinkTitle">
    </FieldRef>
    <FieldRef Name="CourseDesc">
    </FieldRef>
    </ViewFields>
    <Query>
    <OrderBy>
    <FieldRef Name="ID">
    </FieldRef>
    </OrderBy>
    </Query>
    <ParameterBindings>
    <ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
    <ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" />
    </ParameterBindings>
    </View>
    </Views>
    <Forms>
    <Form Type="DisplayForm" Url="DispForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
    <Form Type="EditForm" Url="EditForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
    <Form Type="NewForm" Url="NewForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
    </Forms>
    </MetaData>
    </List>
    I am applying the feature to SPWeb level.
    cheers
    Sathya

    redeployed a new solution; since I was getting this error. I would have done typo errors etc.
    https://naveengopisetty.wordpress.com/2011/09/10/error-occurred-in-deployment-step-activate-features-invalid-file-name-the-file-name-you-specified-could-not-be-used-it-may-be-the-name-of-an-existing-file-or-directory-or-you-may-not-have-pe/
    Cheers
    Sathya

  • How to change SessionTimeOut value after deployed war file in SunAPP Server

    Hi Guys,
    Any one can help and give some guidence How i can change the session time out value in web.xml after deployed the file on sun one application server.This is the code given below which i have to change the time of session from 5 minutes to 1 minute.
    <session-config>
         <session-timeout>5</session-timeout>
    </session-config>
    Regards,
    Suresh.Babu.Ramagani.

    For SunOne session configuration is in the sun-web.xml.
    http://docs.sun.com/app/docs/doc/820-2207/abxcz?a=view
    -steve

  • Collect data from User workflow error updating list item

    Hi, can someone please help me with WSS 3 workflows?!
    I'll keep it simple - I have a workflow step "Collect data from user" that will fail with Unknown Error when attempting to update list item (this is after the user has clicked Complete Task). The workflow does not continue past this step and I have
    to terminate the workflow.
    What is odd, is that if I do another Collect data from User in the same step but following the 1st collect, both will work!! How can this be?? This proves the 1st collect is OK so why won't it run without another Collect data after it?! Doesn't make sense to
    me.
    I was just trying the second Collect to troubleshoot the issue. I've tried other actions there but having another Collect does seem to be the action that kicks things into life. Is there a clue here?
    Any clues would be much appreciated as I'm not able to turn much up when I Google.
    Thanks

    Well, surprise, surprise, this has come back (thought it might!). The trace logs show it's a task locked error but I can't see how. Can anyone please provide me with some clues??
    03/14/2014 12:30:25.11     w3wp.exe (0x7698)                           0x5EA4    Windows SharePoint
    Services       Web Controls                      88wy    Medium      SPDataSourceView.ExecuteSelect()
    - selectArguments: IsEmpty=True, MaximumRows=0, RetrieveTotalRowCount=False, SortExpression=, StartRowIndex=0, TotalRowCount=-1    
    03/14/2014 12:30:28.39     w3wp.exe (0x7698)                           0x6C4C    Windows SharePoint Services 
         Web Controls                      88wy    Medium      SPDataSourceView.ExecuteSelect() - selectArguments:
    IsEmpty=True, MaximumRows=0, RetrieveTotalRowCount=False, SortExpression=, StartRowIndex=0, TotalRowCount=-1    
    03/14/2014 12:30:28.47     w3wp.exe (0x7698)                           0x6C4C    Windows SharePoint Services 
         Web Controls                      88wy    Medium      SPDataSourceView.ExecuteSelect() - selectArguments:
    IsEmpty=True, MaximumRows=0, RetrieveTotalRowCount=False, SortExpression=, StartRowIndex=0, TotalRowCount=-1    
    03/14/2014 12:30:29.86     w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           72er    Medium      Microsoft.SharePoint.SPException: This task is currently locked by a running workflow and cannot
    be edited.     at Microsoft.SharePoint.SPListItem.PrepareItemForUpdate(Guid newGuidOnAdd, SPWeb web, Boolean bMigration, Boolean& bAdd, Boolean& bPublish, Object& objAttachmentNames, Object& objAttachmentContents, Int32&
    parentFolderId)     at Microsoft.SharePoint.SPListItem.UpdateInternal(Boolean bSystem, Boolean bPreserveItemVersion, Guid newGuidOnAdd, Boolean bMigration, Boolean bPublish, Boolean bNoVersion, Boolean bCheckOut, Boolean bCheckin, Boolean
    suppressAfterEvents)     at Microsoft.SharePoint.SPListItem.Update()     at Microsoft.SharePoint.Workflow.SPWinOEWSSService.CommitUpdateListItem(Transaction txn, Object[] transData)    
    03/14/2014 12:30:29.86     w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           72fe    High        Error in commiting pending workflow batch items: Microsoft.SharePoint.SPException: This
    task is currently locked by a running workflow and cannot be edited.     at Microsoft.SharePoint.SPListItem.PrepareItemForUpdate(Guid newGuidOnAdd, SPWeb web, Boolean bMigration, Boolean& bAdd, Boolean& bPublish, Object& objAttachmentNames,
    Object& objAttachmentContents, Int32& parentFolderId)     at Microsoft.SharePoint.SPListItem.UpdateInternal(Boolean bSystem, Boolean bPreserveItemVersion, Guid newGuidOnAdd, Boolean bMigration, Boolean bPublish, Boolean bNoVersion,
    Boolean bCheckOut, Boolean bCheckin, Boolean suppressAfterEvents)     at Microsoft.SharePoint.SPListItem.Update()     at Microsoft.SharePoint.Workflow.SPWinOEWSSService.CommitUpdateListItem(Transaction txn, Object[]
    transData)     at Micro...    
    03/14/2014 12:30:29.86*    w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           72fe    High        ...soft.SharePoint.Workflow.SPPendingWork.PerformWorkNow(Transaction txn)    
    at Microsoft.SharePoint.Workflow.SPPendingWorkBatch.Commit(Transaction transaction, ICollection items)    
    03/14/2014 12:30:30.05     w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           88xr    Unexpected    WinWF Internal Error, terminating workflow Id# 2dc6002d-9f9d-474f-84cf-329025347ec5    
    03/14/2014 12:30:30.05     w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           98d4    Unexpected    System.Workflow.Runtime.Hosting.PersistenceException: This task is currently locked by a running workflow
    and cannot be edited. ---> Microsoft.SharePoint.SPException: This task is currently locked by a running workflow and cannot be edited.     at Microsoft.SharePoint.SPListItem.PrepareItemForUpdate(Guid newGuidOnAdd, SPWeb web, Boolean
    bMigration, Boolean& bAdd, Boolean& bPublish, Object& objAttachmentNames, Object& objAttachmentContents, Int32& parentFolderId)     at Microsoft.SharePoint.SPListItem.UpdateInternal(Boolean bSystem, Boolean bPreserveItemVersion,
    Guid newGuidOnAdd, Boolean bMigration, Boolean bPublish, Boolean bNoVersion, Boolean bCheckOut, Boolean bCheckin, Boolean suppressAfterEvents)     at Microsoft.SharePoint.SPListItem.Update()     at Microsoft.SharePoint.Workflow.SPWi...  
    03/14/2014 12:30:30.05*    w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           98d4    Unexpected    ...nOEWSSService.CommitUpdateListItem(Transaction txn, Object[] transData)     at
    Microsoft.SharePoint.Workflow.SPPendingWork.PerformWorkNow(Transaction txn)     at Microsoft.SharePoint.Workflow.SPPendingWorkBatch.Commit(Transaction transaction, ICollection items)     at System.Workflow.Runtime.WorkBatch.PendingWorkCollection.Commit(Transaction
    transaction)     at System.Workflow.Runtime.WorkBatch.Commit(Transaction transaction)     at System.Workflow.Runtime.Hosting.WorkflowCommitWorkBatchService.CommitWorkBatch(CommitWorkBatchCallback commitWorkBatchCallback)    
    at System.Workflow.Runtime.Hosting.DefaultWorkflowCommitWorkBatchService.CommitWorkBatch(CommitWorkBatchCallback commitWorkBatchCallback)     at System.Workflow.Runtime.WorkflowExecutor.CommitTransaction(Activity activityContext) 
    03/14/2014 12:30:30.05*    w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           98d4    Unexpected    ...   at System.Workflow.Runtime.WorkflowExecutor.Persist(Activity dynamicActivity, Boolean
    unlock, Boolean needsCompensation)     --- End of inner exception stack trace ---     at System.Workflow.Runtime.WorkflowExecutor.Persist(Activity dynamicActivity, Boolean unlock, Boolean needsCompensation)    
    at System.Workflow.Runtime.WorkflowExecutor.System.Workflow.ComponentModel.IWorkflowCoreRuntime.PersistInstanceState(Activity activity)     at System.Workflow.ComponentModel.Activity.MarkClosed()     at System.Workflow.ComponentModel.Activity.ReleaseLockOnStatusChange(IActivityEventListener`1
    eventListener)     at System.Workflow.ComponentModel.FaultAndCancellationHandlingFilter.SafeReleaseLockOnStatusChange(ActivityExecutionContext context)     at System.Workflow.ComponentModel.FaultAndCancella...  
    03/14/2014 12:30:30.05*    w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           98d4    Unexpected    ...tionHandlingFilter.OnEvent(Object sender, ActivityExecutionStatusChangedEventArgs e)    
    at System.Workflow.ComponentModel.ActivityExecutorDelegateInfo`1.ActivityExecutorDelegateOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)     at System.Workflow.Runtime.Scheduler.Run()    
    03/14/2014 12:30:30.38     w3wp.exe (0x7698)                           0x6C9C    Windows SharePoint Services 
         General                           0    Unexpected    ERROR: request not found
    in the TrackedRequests. We might be creating and closing webs on different threads. ThreadId = 59, Free call stack =    at Microsoft.SharePoint.SPRequestManager.Release(SPRequest request)     at Microsoft.SharePoint.SPWeb.Invalidate()    
    at Microsoft.SharePoint.SPWeb.Close()     at Microsoft.SharePoint.SPSite.Close()     at Microsoft.SharePoint.SPSite.Dispose()     at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflow(SPWorkflow
    workflow, Collection`1 events, SPRunWorkflowOptions runOptions)     at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflow(SPWorkflow workflow, Collection`1 events)     at Microsoft.SharePoint.Workflow.SPWinOEItemEventReceiver.RouteWorkflowEvent(SPItemEventProperties
    properties, SPWeb web, SPListItem item, Boolean fNeedTas...    
    03/14/2014 12:30:30.38*    w3wp.exe (0x7698)                           0x6C9C    Windows SharePoint Services 
         General                           0    Unexpected    ...kReset)    
    at Microsoft.SharePoint.Workflow.SPWinOEItemEventReceiver.ItemUpdated(SPItemEventProperties properties)     at Microsoft.SharePoint.SPEventManager.RunItemEventReceiver(SPItemEventReceiver receiver, SPItemEventProperties properties, SPEventContext
    context, String receiverData)     at Microsoft.SharePoint.SPEventManager.RunItemEventReceiverHelper(Object receiver, Object properties, SPEventContext context, String receiverData)     at Microsoft.SharePoint.SPEventManager.<>c__DisplayClass8`1.<InvokeEventReceivers>b__0()    
    at Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state)     at Microsoft.SharePoint.SPSecurity.RunAsUser(SPUserToken userToken, Boolean bResetContext, WaitCallback code, Object param)     at Microsoft.SharePoint.SPSecurity.RunAsUser(SPUserToken
    03/14/2014 12:30:30.38*    w3wp.exe (0x7698)                           0x6C9C    Windows SharePoint Services 
         General                           0    Unexpected    ...userToken, CodeToRunElevated
    code)     at Microsoft.SharePoint.SPEventManager.InvokeEventReceivers[ReceiverType](SPUserToken userToken, RunEventReceiver runEventReceiver, Object receivers, Object properties, Boolean checkCancel)     at Microsoft.SharePoint.SPEventManager.InvokeEventReceivers[ReceiverType](Byte[]
    userTokenBytes, RunEventReceiver runEventReceiver, Object receivers, Object properties, Boolean checkCancel)     at Microsoft.SharePoint.SPEventManager.HandleEventCallback[ReceiverType,PropertiesType](Object callbackData)    
    at Microsoft.SharePoint.Utilities.SPThreadPool.WaitCallbackWrapper(Object state)     at System.Threading.ExecutionContext.runTryCode(Object userData)     at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode
    code, CleanupCo...    
    03/14/2014 12:30:30.38*    w3wp.exe (0x7698)                           0x6C9C    Windows SharePoint Services 
         General                           0    Unexpected    ...de backoutCode, Object
    userData)     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)     at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback
    tpWaitCallBack)     at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)  , Allocation call stack (if present) null    

  • List Schema.XML

    Hey,
    I have to write with a custom list definition. The list definition must also include a
    content type. 
    But the problem is I cannot reference the content type by guid. The list definition must
    run in different site collection and the content type was build manually. The only constant is the content type name.
    How can I reference the content type by name in the list schema.xml?
    Thanks for your help
    Regards
    Stefan

    Hi,
    According to your description, my understanding is that you want to reference the content type in a custom list definition.
    I have something to confirm. Did the content type is located at the different site collection from the list ?
    If yes, you need to use content type hub to publish the content type to the other site collection firstly and then reference it in the schema.
    If No, then in the list schema, if you need to reference the content type, you need to know the content type ID firstly, it is necessary in the schema.
    You can use the PowerShell command to get the all content type details like the command below:
    $site = Get-SPSite http://yoursiteurl
    $web = $site.RootWeb
    ForEach($ctype in $web.ContentTypes){write-host $ctype.Name": "$ctype.ID}
    More information:
    How to: Add a Content Type to a SharePoint List
    Publish a content type from a content publishing hub
    Understanding Content Type Hub (CTH) in SharePoint 2013
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Java Update - After deployed install and settings

    Hi there,
    In our managed Windows 2000 environment with Windows XP Pro clienst (SP2) we use Active directory to deploy software packages.
    We are currently trying to install J2SE Runtime Environment 5.0 Update 5, which works perfectly. We have made a transform file for giving answers to the MSI file of the Runtime Environment.
    In the tranform file we have specified as wel that "Java Update" will be disabled after installation. This works well, too. After deploying the package, however, we notice that when a user logs on onto the workstation, a message is diplayed on screen, asking the user whether or not he want to re-enable the Java Update mechanism.
    Is there a way (e.g. by a registry key, or another MST adaptation) to prevent this message?
    Another question: is it possible to set the "Temporary Files", "Jar compression" level and several security settings like "Warn if certificate authority can not be verified" via registry keys or within a transform file?
    Any help would be kindly appreciated.
    Regards,
    Sander.

    I don't know what happened, but AFAICT, you did the job wrongly. I suggest redoing it this way (TM help files) and not worrying about fixing the mucked up system:
    +*To revert to a previous version of Mac OS X:*+
    +1. Insert the Mac OS X installation disc in your computer’s optical drive (or an optical drive connected to your computer).+
    +2. Double-click on Install Mac OS X+
    +3. When the Language Chooser appears, select your language, and then click the Continue button (looks like an arrow).+
    +4. Choose Utilities->Restore System From Backup.+
    +5. In the Restore Your System dialog, click Continue.+
    +6. Select your Time Machine backup disk.+
    +7. Select the Time Machine backup you want to restore. To restore your computer to the state it was in before you erased it, choose the most recent backup.+
    +8. Follow the onscreen instructions.+
    Alternatively, if the SuperDuper! backup was a bootable one of your previous installation, restore it. That's better and faster than mucking with the TM restoration procedure above.

  • Interactive Gantt chart - how to receive updated XML after user changes

    Hello,
    I failed to receive changed XML after user updates.
    I've constructed following example:
    Created context attribute of type XSTRING, binded it to the "dataSource" property of the Gantt chart control.
    I pass following XML to the control:
    <?xml version="1.0" encoding="iso-8859-5" ?>
    <SAPJNetData version="1.0">
    <Application type="GANTT" version="1.0" />
    <TypeRepository version="1.0" href="/SAP/BC/WebDynpro/SAP/ZT_INV_WDR_TEST_GANTT/gantPR02P00086_3_tr.xml" />
    <UserInterface version="1.0" href="/SAP/BC/WebDynpro/SAP/ZT_INV_WDR_TEST_GANTT/gantPR02P00086_3_ui.xml" />
    <Graph type="Gantt.Graph" version="1.0">
    <rows>
      <row id="001" />
      <row id="002" />
      <row id="003" />
      </rows>
    <dates timeZone="GEurope/Berlin" locale="de_DE" format="dd.MM.yyyy" dateEnd="20.01.2010">
      <section date="01.01.2010" unit="DAY" unitSize="20" />
    <calendarItem id="Cal.1stDayInMonth">
      <repetition unit="MONTH" />
      </calendarItem>
    <calendarItem id="Cal.1stDayInWeek">
      <repetition unit="WEEK" />
      </calendarItem>
      </dates>
    <view>
      <viewpos date="01.01.2010" />
      </view>
    <chart id="Dummy">
    <timeScale>
    <section index="0">
      <ribbon type="Gantt.CProjects.Ribbon.Month" />
      <ribbon type="Gantt.CProjects.Ribbon.3Days" />
      </section>
      </timeScale>
      <grid type="Grid.CProjects.Gantt.TimeLine" calendarIDs="Cal.1stDayInWeek" />
    <table type="Gantt.Table" id="CProj-Table">
      <defaults typeCell="L.Table" typeHeader="L.Table" />
      <tree showRootIcons="TRUE" />
    <cols showInitially="4">
      <ids>TREE,ID2,ID3</ids>
      </cols>
    <header>
      <header width="30" />
      <label colid="TREE" width="250">Этап</label>
      <label colid="ID2">Дата с</label>
      <label colid="ID3">Дата по</label>
      </header>
    <rows>
      <ids>001,002,003</ids>
      </rows>
    <row>
      <header>1</header>
      <tree>Top Item</tree>
      <label>01.01.2010</label>
      <label>20.01.2010</label>
      </row>
    <row>
      <header>2</header>
      <tree parentRow="001">Subitem 1</tree>
      <label>01.01.2010</label>
      <label>10.01.2010</label>
      </row>
    <row>
      <header>3</header>
      <tree parentRow="001">Subitem 2</tree>
      <label>11.01.2010</label>
      <label>20.01.2010</label>
      </row>
      </table>
    <graph>
    <view>
      <backColor type="White" />
      </view>
    <node id="001" type="Gantt.CProjects.SummaryNode" rowID="001">
    <dates>
      <date>01.01.2010</date>
      <date>20.01.2010</date>
      </dates>
      </node>
    <node id="002" type="Gantt.CProjects.Node" rowID="002">
    <dates>
      <date>01.01.2010</date>
      <date>10.01.2010</date>
      </dates>
      </node>
    <node id="003" type="Gantt.CProjects.Node" rowID="003">
    <dates>
      <date>11.01.2010</date>
      <date>20.01.2010</date>
      </dates>
      </node>
      </graph>
      </chart>
      </Graph>
      </SAPJNetData>
    Then I run my example application, press standard "Save" button in Gantt chart control.
    After that my XML in context changes, but it's incorrect. There is no <graph> tag at all - this tag should contain all significant parameters of the chart.
    The resulting XML below:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <SAPJNetData build="9295" date="04-Aug-2010 10:19:13" host="localhost" version="1.1247">
    <Application type="GANTT" version="1.0"/>
    <TypeRepository href="/SAP/BC/WebDynpro/SAP/ZT_INV_WDR_TEST_GANTT/gantPR02P00086_3_tr.xml" version="1.0"/>
    <UserInterface href="/SAP/BC/WebDynpro/SAP/ZT_INV_WDR_TEST_GANTT/gantPR02P00086_3_ui.xml" version="1.0"/>
    <GraphGantt version="1.1247"/>
    </SAPJNetData>
    All the chart in fact has completely disappeared. There is nothing left but file header.
    The question: How to get XML with all user changes back from the Gantt chart control?

    Long time, hah..
    Anyways thanks to behave like a responsible person on SCN and taking care of your threads..
    Liked.

  • How to update the value in xml file using transformer after setNodeValue

    Hi,
    This is my code
    I want to set update the values in xml file using transformer..
    Any one can help me
    This is my Xml file
    <?xml version="1.0" encoding="UTF-8"?>
    <place>
    <name>chennai</name>
    </place>
    Jsp Page
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@ page import="javax.xml.parsers.DocumentBuilderFactory,
    javax.xml.parsers.DocumentBuilder,org.w3c.dom.*,org.w3c.dom.Element"
    %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <% String str="";
    String str1="";
    try
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    DocumentBuilder db = dbf.newDocumentBuilder();
    Document doc = db.parse("http://localhost:8084/XmlApplication1/sss.xml");
    out.println("Before change");
    NodeList n11 = doc.getElementsByTagName("name");
    Node n22= n11.item(0).getFirstChild();
    str1 = n22.getNodeValue();
    out.println(str1);
    out.println("After change");
    String name = "Banglore";
    NodeList nlst = doc.getElementsByTagName("name");
    Node node= nlst.item(0).getFirstChild();
    node.setNodeValue(name);
    NodeList n1 = doc.getElementsByTagName("name");
    Node n2= n1.item(0).getFirstChild();
    str = n2.getNodeValue();
    out.println(str);
    catch(Exception e)
    out.println(e) ;
    %>
    <h1><%=str%></h1>
    <%--
    This example uses JSTL, uncomment the taglib directive above.
    To test, display the page like this: index.jsp?sayHello=true&name=Murphy
    --%>
    <%--
    <c:if test="${param.sayHello}">
    <!-- Let's welcome the user ${param.name} -->
    Hello ${param.name}!
    </c:if>
    --%>
    </body>
    </html>

    hi check this exit...
    IWO10012

  • Software Updates - Compliance Report Discrepency - Updates Listed in Report that aren't part of the deployment

    I will try to explain this as clearly as I can.  I've been unsuccessful in trying to search for this exact problem.  I've not yet called support on this as it's not critical.
    I recently began to see a problem in that our compliance reports showed two servers as compliance status unknown for an extended period of time.  I made sure they had the most current version of
    the WUA, I re-installed the SCCM agent, I manually applied patches using windows update directly on the machine.  I've tried running the "RefreshSererComplinaceState" vbscript.  However, the same issue persisted.  I also noticed that
    the number of servers listing as compliant and non-compliant remained relatively the same between deployments of
    windows updates.
    I began to research the compliance report "Compliance 1 - Overall Compliance".  I began to see that there were updates listed in the report which do not correspond to updates which are
    members of the deployment.
    Example, The following patch "Update for Windows Server 2008 R2 x64 Edition (KB2800095)" I currently don't have as a member of any of my deployment packages.  It's not a member of any
    of my update groups.  Yet, it's consistently being reported in the list of updates in that update group.  That's one of several like that.  It's not something I've encountered before.
    Is there a way to reset my updates list on the server side the next time I get ready to do updates?

    Hi,
    Here is a good blog discussed the issue:
    http://damatisystemcenter.com/2013/07/21/sccm-client-unknown-status-what-could-be/
    In the meantime, please check UpdatesHandler.log on the client which status show unknown.

Maybe you are looking for

  • Editing animated gif

    I made an animated gif in CS4. I have to make some changes, I tried editing it in CS3. It woould be easier to start from scratch, but when I deleted the animation and clicked on a layer, all I see is the bottom layer no matter what layer I click on.

  • MRP indicator in Goods Receipt

    Hi All, MRP indicator when we post the Goods Receipt for excise material. And when we ticked the MRP indicator tab then your GR/IR amount is not equivalent to po net price. So I need that MRP indicator should be GREY out for plant secific, so that no

  • Reader 9.3.1 not working with FormCalc in LiveCycle 8 forms

    My agency has recently upgraded to Adobe Reader 9.3.1. I have a fillable form I created using Livecycle Designer 8 in Acrobat Professional 8 and distributed to agency staff using the "distribute" function in Acrobat Professional 8. The form includes

  • How to view the List of statements executed in Oracle 11G database

    Hi , I have this Application which internally updates and writes to the tables in my database. Is there a way that i can make oracle 11g to log all the statements that are executed in it so that ill be able to see the statements?. Plz explain me how

  • Setting double value precision

    Is there any way to set the precision on a double. Example: double = 25.00016000207654 precision = 4 decimal places (or some value 'x') So I am looking for 25.0002 (this value will then be converted to a string and then displayed).