locked
Assign a site ID number to a default value in a list. RRS feed

  • Question

  • Hello.

    When i create a new Project site the template automatically sets up two lists called "mail in" & "mail out"

    At the moment i then need to go into each of these lists settings and change the "Job Number" default value to whatever the project number is ie the sharepoint assigned ID number... so that when people put new mail in or mail our entrys the "Project Number" field is already populated with the correct number...

    Is there a way to make sharepoint go fetch this number as soon as the new project is created and poplulate the default project number field each time???

    thank you,


    Andy Walker
    • Moved by Mike Walsh FIN Monday, July 11, 2011 4:41 PM Unclear as to whther this is wf; programming or even admin. (From:SharePoint - Workflow (pre-SharePoint 2010))
    Monday, July 11, 2011 12:50 PM

All replies

  • Hi,

    I suggest you to create your own list definition and associate a workflow with it. 

    Via code of workflow you can do this conversion.

    I hope this will help.

    Thanks,

    Rahul Rashu

    Tuesday, July 12, 2011 8:59 AM
  • thank you very much for your reply.

    im sorry for my complete ignorance but could you please elaborate.

    Im very new to this and im unsure what you mean.

     

    thanks


    Andy Walker
    Tuesday, July 12, 2011 9:03 AM
  • Hi,

    I suggest you to refer this link

    http://msdn.microsoft.com/en-us/library/ms466023(v=office.12).aspx

     

    I hope this will help you out.

    Thanks,

    Rahul Rashu

    Tuesday, July 12, 2011 11:27 AM
  • i already have a custom list defiinition.

    im wondering what the workflow steps are in order to populate a "default field" in my list with the sites ID number.

     

    thanks


    Andy Walker
    Tuesday, July 12, 2011 11:34 AM
  • Hi Andy,

    To know more about workflows and steps required refer this link:

    http://msdn.microsoft.com/en-us/library/aa830816(v=office.12).aspx

    I hope this will help you out.

    Thanks,

    Rahul Rashu

    Sunday, July 17, 2011 6:38 AM
  • actually without being rude, no its not really any help.

    On both occasions i have asked a question you have replied pointing me away to look somewhere else at a general introduction to list definitions or workflows.

    I know what these things are.... i had already searched for the answer to my questions using google and such like. Unfortunatly i could not find how exactly to use a workflow to populate "default values".

    So i posted a question here, hoping someone with experience doing this may be able to steer me in the right direction.

    Tuesday, July 19, 2011 2:11 PM
  • I am unable to understand your exact requirement. Can you Please elaborate more. If you want to populate a certain field with default value, you can use lookp field. Please elaborate your question so that i can help you in this regard.

     

     

     

    thanks


    Jayant Sharma
    Friday, July 22, 2011 3:36 PM
  • thank you.

    basically as it stand just now. As soon as i create a new site for a new project two "registers" are automatically set up called IN & OUT.... when a user comes into this register they click "new" to add a new entry and fill in some fields.....

     i want one of these fields to show the ID number of the new project site by default

    thanks


    Andy Walker
    Friday, July 22, 2011 3:41 PM
  • thank you.

    basically as it stand just now. As soon as i create a new site for a new project two "registers" are automatically set up called IN & OUT.... when a user comes into this register they click "new" to add a new entry and fill in some fields.....

     i want one of these fields to show the ID number of the new project site by default

    thanks


    Andy Walker

    Which SharePoint version have you installed? Because SharePoint 2010 EE has this functionality
    FabioA
    Tuesday, August 23, 2011 12:38 PM
  • Im using 2007...... thats a shame. thanks for your reply though.
    Andy Walker
    Tuesday, August 23, 2011 12:46 PM