Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7843525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:34:12+00:00 2026-06-02T16:34:12+00:00

i am trying to create a lookup inside a Content type. Here is what

  • 0

i am trying to create a lookup inside a Content type.

Here is what i wrote in my column definitions.

<Field ID="{B8AC7868-A34D-4F2E-A259-BE9EA6EA578A}" 
     Name="NewsCategory" 
     Required="FALSE"
     DisplayName="NewsCategory" 
     Type="Lookup" 
     List="ListCategory"
     FieldRef="Title"
     ShowField="Title"
     Group="MyCustomGroup"/>

Here is what i wrote inside the Content Type i want to attach the said column too.

<FieldRef ID="{B8AC7868-A34D-4F2E-A259-BE9EA6EA578A}"
Name="NewsCategory"DisplayName="NewsCategory" Required="FALSE" />

Then i went on the site and created a list called “ListCategory” and it has a Title and thats it.

For some reason i have having alot of trouble deploying, but when i finally get it to deploy i get an error while creating a page with the said content type. Is my definition good ?

Thanks for any help !!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T16:34:13+00:00Added an answer on June 2, 2026 at 4:34 pm

    You need 2 files: VS > SP 2010 project > Add item > Content Type has this code:

        <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
      <!-- Parent ContentType: Todos los Documentos CiaContentTypes\00TodosLosDocumentos) (0x01010038bd2600185840119dfa3fe0c7b8b3d9) -->
      <ContentType ID="0x01010038bd2600185840119dfa3fe0c7b8b3d9005146d39cd2cf4d51b7ee2fc54bbe3215"
                   Name="Archivo Historico"
                   Group="05 Gestión Operativa"
                   Description="Archivo Histórico"
                   Inherits="TRUE"
                   Version="0">
        <FieldRefs>
          <FieldRef ID="{709E337A-3FEF-4C96-8B00-8CF6723C969A}" Name="Empty" DisplayName="Empty"/>
        </FieldRefs>
      </ContentType>
    </Elements>
    

    Second file: Add item > SP 2010 > Empty element has this code:

        <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
      <Field
        Type="Text"
        Description="Breve Descricpción del documento"
        Required="TRUE"
        MaxLength="255"
        Group="Archivo Histórico"
        ID="{709E337A-3FEF-4C96-8B00-8CF6723C969A}"
        StaticName="Empty" Name="Empty" DisplayName="Empty">
      </Field>
    
    </Elements>
    

    Good luck, ALEX

    Create unique GUID

    Content Type IDs

    Creating Content Types for SharePoint 2010 in Visual Studio 2010

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a lookup column that would return the index of the
Ok so I am trying create a login script, here I am using PHP5
I am trying to create an ANI lookup table from 2 separate tables, one
I'm trying to create a lookup table of member functions in my code, but
I am trying to create a draggable grid inside of a Viewport, where the
I'm trying to create an expanding lookup table. I think the cell array is
I'm trying to create a simple bi-directional lookup facility for enums in C++. I
I am trying to lookup elements within a dynamically created element. For some reason
I'm trying create a bot which automatically likes Facebook posts. Using Mechanize I can
I am trying create a delegate representation of constructor by emitting a Dynamic Method,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.