Preset default value of DropDown based on Content Type selection in the SharePoint 2010 library

Hi,
I have three site content types (Admin, Technical & Well) derived from base content type "Base" and added this content types to "Documents" library. I also have one site column "Category"(Dropdown) with values (Admin, Technical
& Well) which is available in all the content types.
Now, when i try to create a document based on "Admin" content type then "Category" value should be preset to "Admin", similarly when i select "Technical" content type then "Category" should be preset to "Technical"
and same with "well".
Can some one provide me how i can achieve this?
I am working in the SharePoint 2010 environment.
Regards,                                                                      
                                      Chakradhar

My understanding is that , you have to display the category in all the content types.
So in that case create a content type like
Create a base content type -- with column category.
Create a Admin content type based on base content type as parent. By default ,the category column is available in admin content.
Create a Technical content type based on base content type as parent. By default ,the category column is available in Technical content type.
Create a Well content type based on base content type as parent. By default ,the category column is available in Well content type.
Do you want to create using sharepoint ui or code(visual studio)?

Similar Messages

  • Set default value for people picker only when user checks a checkbox (Sharepoint 2010)

    The javescript in below link works for me.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/2b130f64-3db2-484a-9a53-ccbe18d2c5de/set-default-value-for-people-picker-in-list-template-current-user?forum=sharepointgenerallegacy
    However, I'd like to set default user for people picker only when user checks a checkbox. 
    I am new to  development. Could you please help me on this requirement ?
    Thank you very much. 

    Hello,
    Use this link to to validate checkbox value, if true then set the person or group value (i.e. as posted in your link).
    http://geekswithblogs.net/haniamr/archive/2011/03/10/validate-that-a-checkbox-is-checked-using-javascript.aspx
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Content parsing of the sharepoint 2010 doc library documents

    Can we parse the content of document(word,excel, ppt, pdf) which is uploaded to the SharePoint 2010 library.
    My requirement is to check that if there is any word (which is sensitive) and matches to my regexp should be blocked while adding the item or updating the item in the library.
    Is there any out of the box feature available to parse the content or how can we do it pro-grammatically.

    Hi,
    According to your post, my understanding is that you want to check the document content when item adding or updating.
    We can create an Event Receiver for the document library and we can use Open XML framework to read documents in
    ItemAdding and ItemUpdating methods. 
    http://msdn.microsoft.com/en-us/library/office/bb448854(v=office.14).aspx
    More information:
    http://khdraft.blogspot.com/2011/04/getting-file-content-from-itemadding.html
    Best Regards
    Dennis Guo
    TechNet Community Support

  • InfoPath 2010 - How to connect to another content type form from the current form with a click of a button?

    I have two different form library forms for each different content type published to the same Form Library.  I like to know if by a click of a button, if I could close the current form and jump to the next and vice versa? If so, what steps
    would I need to take using OOB technology?
    Thank you,
    SRAEngineer

    Hi Guru:
    Thanks.  However, the Views do not work in my case, as one form has different required fields than the other and set of fields also changes a bit for each form.
    However, researching more I have been able to find the solution since I posted this request.
    I will try to describe the Solution:
    First I deployed both the forms to a SharePoint Form Library. Then I opened the template from the advanced settings and copied the URL from the top search box of IE.
    Went back to the design view of the form, highlighted the writings/title of the form and right clicked to paste the hyperlink.
    Quick published it again and now the hyperlink is working active/live in the deployed form as well and doing its job to get to the next form. I repeated the process to the other form to do a toggle.
    Thank you for your input though.
    Regards,
    SRA
    SRAEngineer

  • Default value of prompt based on another request

    Hello:
    I have a requirement where I need to set default values of prompts based on another request.
    The prompt is a Date Prompt.
    I tried it using presentation variable, and writing sql query, where is says " WHERE promo_id= @{variable}"
    but it is still not working.
    Please let me know the workaround for this issue.
    Thank you.
    - Vinay

    How is the End Date determined for your BETWEEN operator? I would assume that is variable. Also, is the second report on another dashboard page or on the same page? Assuming both reports are on the same page, do the below. If not, you can use the same prompts on the second dashboard page. Set the scope to "dashboard" and the selection the user makes carries to the second page.
    The easiest way is to have 3 Dashboard prompts: Promo_ID, Start_Dt, and End_Date. Set these prompts to PVs: pvPromoID, pvStartDate, and pvEndDate, respectively.
    Filter report one on pvPromoID and pvStartDate.
    Filter the second report on pvPromoID and use pvStartDate in the filter of the Date column of report two. Assuming the BETWEEN values are variable, then you can write the following on the Date column of your second report:
    "Table Name"."Date ColumnName" <= '@{pvStartDate}' AND Table name"."Date Column Name" <='{EndDate}'
    And on your Promo column, use the filter "Table Name".Promo = '@{pvPromoID}'
    When the user selects the Promo ID, Start Date and End Date from the prompts, both the first and second reports will be filtered accordingly.

  • Set Default value in dropdown box.

    I used selection= "Default Value" in dropdown box to do this functionality.But when i selected other value it is
    selecting the default value and saving also.but i want that page initiated the default value should be there and user can select other values and save.
    Please give me solution for that as soon as possible.
    Thnks in advance.

    Actually i m using the following code and it is fetching value from a table.Can u understand this code n provide me solution for default value.
    <htmlb:gridLayoutCell columnIndex       = "5"
                                  rowIndex          = "2"
                                  colSpan           = "1"
                                  wrapping          = "FALSE"
                                  verticalAlignment = "TOP" >
              <htmlb:dropdownListBox id                = "unitDropdownListBox"
                                     table             = "<%= IT_MSEHI %>"
                                     nameOfKeyColumn   = "MSEHI"
                                     nameOfValueColumn = "ZMSEHI"
                                     onSelect          = "setunitValue"
                                     disabled          = "<%= LV_MODEITEM %>"
                                 selection         = "<%= it_item-unit %>" />

  • How to make default value for region based on city?

    Dear Experts,
    When city is selected in TRIP or PR05, how to make the default value of city based on region?
    The standard search help givenfot citydoesnt contain any enhancement point?
    Pls suggest how to resolve this!!!
    Thanks In Advance
    Rgrds,
    Sravan

    Hello Sahil
    Account and CC/PC are 2 different entity types. For PC and CC there is dependency. First you have to load Cost centers and then load PC.
    For CC - load CC master data first. Then load hierarchy file then group file and finally assignment file.
    Follow same process for PC.
    GL you can load independently but you have first load group GL then operational GL and then GL at company code level,
    Kiran

  • From SharePoint Content Database, Using SQL-Server Query how to fetch the 'Document GUID' based on 'Content Type'

    I want to get all the documents based on content type using SQL Server Query. I know that, querying the content database without using API is not advisable, but still i want to perform this action through SQL Server Query. Can someone assist ?

    You're right, it's not advisable, may result in corruption of your databases and might impact performance and stability. But assuming you're happy to do that then it is possible.
    Before you go down that route, have you considered using something more safe like PowerShell? I've seen a script exactly like the one you describe and it would take far less time to do it through PS than it would through SQL.

  • Assign new default forms to list causes other content types forms to fail.

    I have a list with multiple content types and I want to modify the forms.   I've created new forms but when I assign them as default and go back to the new item menu, no matter which item I select I get the new default form.  If I set the
    NewForm.aspx back as default everything works.
    How can I modify for one content type and ensure the forms are not affected?
    By modify I mean I want to put a hyperlink on one of the forms but not the other.

    Form libraries can be very painful if you can't foresee the direction that the form will be evolving over time.  I've run into times when users have been using a form for months - years, and then a sudden change is needed (such as a change in calculations)
    that they want to show ONLY in new forms, and the old calculations (for the same calculated fields) to show up in the old form, and you can't have 2 different versions of the same form working on a library unless you use content types. 
    You also, however, need to plan for columns and column types because of limitations around the number of Int columns or date/time columns, etc... that are allowed in a list.  If you plan on using content types, I would say use a base content type (if
    the content types will have the same fields) and then the fewer fields are different, the fewer columns are required on the library.  In different content types, you can use different forms, and then you can make different calculations within the forms
    for the same field (if that is ever a requirement). 
    Its best to plan this out ahead of time, because switching strategy after running for a while can create monstrous headaches.

  • Choose which content type to use in sharepoint 2013 list using InfoPath 2013

    So, in my head it seems pretty simple and a feature that might be standard to InfoPath so much in fact I can't find anything on it... My goal is to a have one list where you can do a drop down or buttons to choose which content type to use.
    I will be royally disappointed if this is not possible. =(
    So, c'mon you giants of MS Support. Give me a happy answer.

    Hi Lincoln,
    According to your description, my understanding is that you want to use multiple content types in a list.
    For achieving it, you can do as the followings:
    Open the list.
    Go to List Settings->Advanced Settings.
    Under ‘Allow management of content type’, select ‘Yes’, click OK.
    In the Content Types section, click ‘Add from existing site content types’
    Then add the content types that you want to add, click OK
    Go back to the list, click ITEMS->New Item, then all content types are displayed in the drop-down list
    When you click an item, you can select the new item is created based on one of these content types
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to update content types enheriting from the System Page Content type

    After importing a design package I found out that my content types was missing some columns. I could add the missing columns to my "page" and "Article Page" site content type. When adding the exisiting columns I could choose to update
    everything that inherits from this type:
    This is working. However I still miss 2 columns in the "Page" Content type:
    1. Rollup Image
    2. Hide physical URLs from search
    If I roll back my dev environment I can see that these are inherited from the "System Page" content type which is not editable. The columns are in the "System Page" content type but They are gone in "Page" content type that
    should inherit the columns.
    So how do I update these?
    Thanks

    Hi Alex,
    Thank you for replying. I totally agree with you regarding not to modify the OOB content types. The content types I have created/modified is also my own "new" content types.
    However the designpackage import messed up the OOB content types somehow so I'm only trying to get back to the state before the import. The only thing I see is still missing is the two previously mentioned columns in the "page" content type.
    Do you have any other suggestions in how to get back to the "OOB State"?
    Thank you
    Update: this is my page content type. It's not set to read only so it should update the last two missing columns from its parent (system page content type) right?

  • How to set a default value in dropdown list in Wendynpro ABAP? Help!

    Hi Experts,
           I have Webdynpro for ABAP application that shows a DropdownwithKey UI element.
    1. I am able to populate the dropdown list. But by default the list is not showing any value. Only when I select a value from the list then it shows it.
    So how to set the default value to the first value in the list? Any code sample will be really helpfull.
    I have written the following code:
    method WDDOINIT .
      DATA:
        node_category TYPE REF TO if_wd_context_node_info.
      node_category = WD_CONTEXT->GET_NODE_INFO( ).
      node_category = node_category->GET_CHILD_NODE( 'CATEGORY' ).
      data:    LT_VALUESET type WDR_CONTEXT_ATTR_VALUE_LIST,
               L_VALUE type WDR_CONTEXT_ATTR_VALUE.
    L_VALUE-VALUE      = 'V1'.
    L_VALUE-TEXT    = 'yesterday'.
    INSERT L_VALUE into table LT_VALUESET.
    L_VALUE-VALUE      = 'V2'.
    L_VALUE-TEXT    = 'today'.
    INSERT L_VALUE into table LT_VALUESET.
    L_VALUE-VALUE      = 'V3'.
    L_VALUE-TEXT    = 'tomorrow'.
    INSERT L_VALUE into table LT_VALUESET.
    node_category->SET_ATTRIBUTE_VALUE_SET(
                 NAME = 'CAT_VALUE'
                 VALUE_SET = LT_VALUESET ).
    endmethod.
    Note that: I am using webdynpro for ABAP.
    Thanks
    Gopal

    I am not sure how it works in Web Dynpro for ABAP, but in Web Dynpro for Java to set default drop down value you will have to set the value for particular attribute (which is linked to the dropdown element)  in the context
    like
    wdContext.currentContext<nodeName>Element.set<FieldName>(<defalut value>)
    This generally done in Initialization method of the controller.

  • Default value in dropdown field for FPM form in HCM Processes and forms

    Hi Experts,
    I am developing HCM Processes and forms using FPM forms and I had a dropdown list contains ten values. So, every time while opening the form first time, my dropdown field should be defaulted with fifth value from the list. How can we achieve this in dropdown field related to FPM Form.
    Please guide me.
    Regards,
    Nayani.

    You would have to assign the default value to one your custom generic services.
    Regards.
    PS: There are posts which talk about generic services , make yourself comfortable with the concept of generic services.

  • Map default values in Header based on multiple values in the line item

    Hi
    I have a scenario in which the Header field of an IDOC should be populated with some default values based on some mixed mvt types in the line items.
    eg:
    Header -
    > Delivery type -
    > needs to be mapped to A (for X of line item 1)or B (for Y of line item 2) or C (for Z of line item 3 )
    based on line items field
    line item1---> mvt type---> X
    line item 2-->mvt type----->Y
    line item 3 -
    > mvt type -
    > Z
    mvt types doesnt necessarily have to come in that order and even the same mvt type can repeat in multiple line items.
    Can we achieve this logic in XI ?

    I think if you include removeContext, Sort, SplitByValue (on Value Change), CollapseContext to mvt type in all line items and then use ifelse condition to achieve your result.
    I will give an example of line Item1
    mvt type --->RemoveContext ->Sort>SplitByValue(on value change) --> CollapseContext
    Use the above mapping to IF function and check if it is having X, Y or Z then map the appropriate value to target field.
    Do the same for rest of the line items.

  • How to Set default value to dropdown list in oracle ADF

    hi,
    I need to set default value in the drop down list in oracle ADF.
    If you take in HTML :
    <select>
    <option value="">Select Value </option>
    <option value="saab">Saab</option>
    <option value="mercedes">Mercedes</option>
    <option value="audi">Audi</option>
    </select>
    Like this i need to set default value in drop down llist in oracle ADF.
    Thanks and Regards,
    M. Ramu.

    Hi Ramu,
    Please be more clear on ur post whts ur Jdev version and wht type of dropdown u r using model driven or static list..?????
    Its hard to help u without proper info..
    Just have a look into this before u post a thread...
    https://forums.oracle.com/forums/ann.jspa?annID=56
    Regards,
    Suganth.G

Maybe you are looking for

  • MyDAQ, connect sensors with multiplexer in labview

    I am quite new to labview so hope someone can help. What  I am doing is to use NImyDAQ to connect 8 different sensors and show the output on labview. Since the myDAQ does not have enough input for 8 sensors, so I am using two 8 bits multiplexers to s

  • Printing permission cancelled after transfer to new computer

    I had to transfer my library to a different computer shortly after purchasing some books for which I had the right to print them exactly once. I activated ADE, transferred the files and although I had not printed any of the material I cannot do so no

  • IPad 4 Volume drops really low a few seconds, then back to normal.

    Hi All, I am having an issue with the Volume on my iPad 4.  I had one replaced 3 days before the warranty, but The replacement started doing the same thing.  I realized it had to be an app causing it.  I had been playing the RoboCop game for a bit an

  • How to emulate middle mouse button in Lion on MBAir?

    I've installed a couple apps via MacPorts and found that features in them require clicking a middle mouse button.  But I can't find anything in System Preferences-->Trackpad about configuring a gesture or key+click that emulates a middle mouse button

  • Layer mask in PSE9

    I just discovered that 9 has (at last!) the layer mask button.  However, whenever I create one it always comes up white....Can it come up as black? thanks...