Automatic set custom field

There're project and its tasks. It's required to add some field and set it when new task is created: I created task
with uid = "eae633db-7b5c-4539-9630-749419c21b07" => field "link"  = "http://serv/data.aspx?uid=eae633db-7b5c-4539-9630-749419c21b07" (it
must be link, viz. click on value in this field => redirect to http://serv/data.aspx?uid=eae633db-7b5c-4539-9630-749419c21b07).

Okay so have you already tried this and having problem, or still under pursuing a solution ?
if still under pursuing solution then, Since you are saying you are creating task / list item programmatically, so for creating list item  you would need to use either sharepoint object model or list item web service , and once you create
the list item store the list item URL in a variable and then use PSI to create a task and add the URL to the hyperlink column, check this PSI code sample to update task level custom field using PSI: http://blogs.msdn.com/b/brismith/archive/2010/08/25/project-server-adding-custom-fields-to-projects-and-tasks-using-the-psi.aspx
Using object model to create List item  : http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitem.aspx  
Let us know if this is what you are looking for or i am missing something
Thanks | Sunil Kr Singh | http://epmxperts.wordpress.com

Similar Messages

  • VBA - Setting Custom Fields For Sub-Projects Using a Master File

    Hello,
    I was wondering if anyone had any experience or could provide some help with a Macro to set the Custom Fields in Sub-Project Files directly from the Macro. I had this macro working in the past with Project 2007, but it has been a couple years and I am struggling
    to resolve an error. I am currently running Project 2010 with SP2. I intend to use this Macro in our Server 2010 environment, however at this time, I'm testing locally on my desktop.
    Scenario.
    I have a Master File with 2 sub-project (Project A, and Project B) inserted. While working in the Master File, I create a custom field title "TEAM Lookup". While in the Master File and without having to individually go and open, edit, save, and
    close each sub-project, push the custom field down to the project files.
    ERROR: Currently, the Macro will run and I can step through the lines of code until line 12 where I'm asking Project to use the organizer to shift the newly created custom field from the Master File to a sub-project. The line appears to
    populate correctly, but instead of continuing through the loop, an error is caught (ID - 1101 - "The File (Master File) was not found")
    Any ideas or suggestions would be greatly appreciated. Thanks
    Sample Code
    1. Sub CopyCustomFieldToSubprojects()
    2. Dim MASTER, custfield, contin, AllDone
    3. Dim SubProj As Subproject
    4. Alerts False
    5. MASTER = ActiveProject.Name
    6. Application.EnableCancelKey = pjInterrupt
    7. custfield = CustomFieldGetName(ActiveCell.FieldID) & ActiveCell.FieldName
    8. On Error GoTo errhand
    9. contin = MsgBox("This macro will copy the field " & "(" & custfield & ")" & " (the currently selected field) to all subprojects in this consolidated schedule." & vbCrLf & vbCrLf & "Be
    patient, it may take more than 70 seconds to run. You will be notified when it's done. Continue?", vbOKCancel)
    10.    If contin = vbCancel Then GoTo done
    11.    For Each SubProj In ActiveProject.Subprojects
    12.    OrganizerMoveItem Type:=pjFields, FileName:=MASTER, ToFileName:=SubProj.SourceProject.Name, Name:=custfield
    13.    Next SubProj
    14.     AllDone = MsgBox("The " & custfield & " field has been copied to all subprojects.", vbOKOnly)
    15. GoTo done
    16. errhand:
    17. ret = err.Description
    18. ret1 = err.Number
    19. done:
    20. End Sub

    SGBlaine,
    Project VBA can get rather fussy about some things so you just have to find out what it wants and then adjust your code accordingly. The following will work:
    Note the tweaks to the custfield variable and to the MASTER and source project names. Also when working with strings in VBA it is a good idea to eliminate at least one little gotcha, the need for exact capitalization. Therefore I always add the Option Compare
    Text statement. In your macro it won't make any difference since you do not directly create a string value, but it's good practice to have the option.
    Option Compare Text
    Sub CopyCustomFieldToSubprojects()
    Dim MASTER, custfield, contin, AllDone
    Dim SubProj As Subproject
    Alerts False
    MASTER = ActiveProject.FullName 'FullName includes the path, now it can find it
    Application.EnableCancelKey = pjInterrupt
    custfield = CustomFieldGetName(ActiveCell.FieldID) & " (" & ActiveCell.FieldName & ")"
    'strings are very fussy, it has to be exact
    On Error GoTo errhand
    contin = MsgBox("This macro will copy the field " & "(" & custfield & ")" & " (the currently selected field) to all subprojects in this consolidated schedule." & vbCrLf & vbCrLf & "Be
    patient, it may take more than 70 seconds to run. You will be notified when it's done. Continue?", vbOKCancel)
    If contin = vbCancel Then GoTo done
    For Each SubProj In ActiveProject.Subprojects
        OrganizerMoveItem Type:=pjFields, FileName:=MASTER, ToFileName:=SubProj.SourceProject.FullName, Name:=custfield
    Next SubProj
    AllDone = MsgBox("The " & custfield & " field has been copied to all subprojects.", vbOKOnly)
    GoTo done
    errhand:
    ret = Err.Description
    ret1 = Err.Number
    done:
    End Sub
    John

  • How to set country field automatically when creating new customer??

    Hi Gurus,
    when customer number is entered in account identification, if there is no matching account, a new one is created. While creating , in the screen there is an country field and I want to set this field to a fixed value of our country. How can I do this??

    Hi everybody,
    I got a simple question. Can I use BADI: BADI_CRM_BP_UIU_DEFAULTS of Enhancement Spot CRM_UIU_BP_ENHANCEMENT
    to make the country 'US' as a default value for component: ICCMP_BP_DETAIL  (NOT: BP_HEAD)?
    Component ICCMP_BP_DETAIL is Interaction Center.
    If not which Badi or way I can use to make country 'US' as default value?
    Best Regards
    Oliver
    Edited by: Oliver Schultze on Dec 9, 2010 4:33 PM

  • Document Library set "Title" field automatically equal to "Name" field

    Hi,
    Is it possible to make Title field in document library automatically fill up with File name field? 

    Three ways you could do this really.
    #1 - Write a custom event receiver using .NET
    #2 - Write Javascript on the list form to update the field
    #3 - Create a custom workflow that kicks in when new items are added or modified and that would set the field
    Nikolas Charlebois-Laprade Microsoft Certified Professional Software Engineer and Senior SharePoint Advisor http://nikcharlebois.com

  • How to set max size for a custom field ucm11g

    Hi,
    I need to set maximum length to a custom field created in ucm11g 11.1.1.6
    The field's data type is Text and for example i want to limit the length to 10 characters
    Any example how to do this ??
    Regards
    Carlos

    Hi ,
    If you are looking to limit the number of characters that can be entered to the field from GUI then a global side effect and rule combination will help you achieve it . It would be something like this :
    This is done by leveraging Side Effects under Rules - Rules Activation Conditions. You also need to set the Rule as Global for this to be effective across the system.
    In there the following has to be set:
    <$dDocTitle:maxLength=80$>
    <$dDocName:maxLength =50$>
    Set the above side effect in the rules and corresponding Profile need to refer it for being able to limit the number of characters that can be entered for Title and Content ID.
    Custom metadata too can be controlled in the same way . For example, if metadata "Version" need to limit the number of characters being entered then "Side Effects" to be set is as follows :
    <$xVersion:maxLength=50$>
    NB - the maxLength parameter is not supported for fields of type Memo. It will only take effect on standard text fields.
    Thanks,
    Srinath

  • How to add a new custom field to one set of employees within one country?

    Hi,
    I am thinking of a scenario where a new custom field is dispayed in PA30 for IT0006
    only for one set of employees in US (such as for a employee group or employee sub group).
    Other employees should not have this custom field.
    All employees in this scenario is for US country only.
    Is this possible? Do we need ABAP for this or only IMG will do?
    Any details on how to implement this etc..
    Thanks for any help.

    Thanks for everyone for the responses.
    I really liked the decoupling infotype solution.
    However, since some work has been done in the old way, I will try to describe the problem in detail.
    Our ABAPer already created a new screen 0200 as a sub-screen in ZP000600 module (I am assuming it is a module pool) using PM01 and assigned to 2010 screen; an alternate screen specified in IMG for country 10 as key (instead of standard screen 2000 for IT0006).
    This new screen 0200 is assigned to 2010 in PM01 transaction.
    These steps displays the 0200 sub-screen with added fields to all the US employees hiring in the respective personal action.
    I want to create a new scenario to suppress these additional fields for some US employees (say company code BKUS)
    I placed a new entry in T588M for module pool as ZP000600 , key is 10, alternate screen as 0200 and hide all the fields
    But, these additional fields are still displayed always for US employees for whom I want to hide.
    Did I miss any thing?
    I do not want to hard code in ABAP whom to display and who not to.
    Is there a IMG way to do this so that I can change the criteria later as we go.
    Thanks

  • How to set a default date for a custom field of Date type in project server 2010.

    hi,
    can somebody help  me.
    How Can i set the default date for a custom field of date type in project server 2010 ?

    Dear Rohan,
    You can set default value to custom field thru Lookup table. Assign lookup table to custom field and set default value to some lookup value (Note: check the “Choose a value to use as a default when adding new item” checkbox).
    Regards,
    Avinash kumar | Blog:http://avigr8.wordpress.com | If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”.

  • Set Parameter for Select Option & Customized field

    Hi All,
    I had 2 questions here:
    1. This field in the report is a customized field and did not have any parameter.
        Is there any way to set the parameter for such fields?
    2. This field is a select option in the report.
        How can i set the parameter for the select option with lower and higher range?

    >
    Sally Teo wrote:
    > Hi All,
    >
    > I had 2 questions here:
    >
    > 1. This field in the report is a customized field and did not have any parameter.
    >     Is there any way to set the parameter for such fields?
    ----> plz ref ur prev.Post.
    >
    > 2. This field is a select option in the report.
    >     How can i set the parameter for the select option with lower and higher range?--->
    i dont think its possible to give High/low values to them, better to write small BDC to pass the data.
    regards
    Prabhu

  • Automatic Repricing in Purchase Order for customer fields

    Hi all,
    Does anybody have a clue how to force repricing a PO when a customer field on item level is changed? I am forced to enter the customer field last by the screen sequence, so when I add the value it is not taken into account by pricing.
    Thanks,
    Stratis Pelekidis

    Hi Charlie,
    Pricing is set up correctly. The user exits for the z-fields to KOMK KOMP work properly and if we look at the pricing analysis it mentions that the price is determined, but hasn't been set. If we press the New Pricing button, we get the right price, but we don't want to do that.
    Thanks,
    Stratis

  • How to set screen properties for Customer fields in PO(Enhanced using BADI)

    Hi All,
    I have added one custom tab with seven fields in the PO item level using the BADI 'ME_GUI_PO_CUST  and ME_PROCESS_PO_CUST'.
    Now i want to change the screen property dynamically. According to some calculation i need to change the customer fields in display mode and change mode. when ever it is in change mode i need to set the fields as mandatory.
    How can i implement this logic using this BADI. Please help in solving this issue.
    Best regards,
    Kannan. B

    Hi,
    Try adding the code in the PBO part of your custom program used for the custom screen which you have created and added inside the BADI.
    Regards,
    Harish

  • Setting lookup custom field using CSOM

    Hi,
    i am trying to use:
    SetCustomFieldValue()
    to update custom fields. It is working perfectly well for text types. However i can't seem to figure out how to setup the value of lookup custom field type. I got to the point where i check if the value i want to set is in the entries of the lookup table.
    But noway to figure how to set this value.
    thx for any help

    Beautifull !!
    i found out what i need in order to set the lookup field following your link which led to this one (another post):
    http://nearbaseline.com.au/blog/2013/08/updating-lookup-table-values-using-jsom/
    "must pass the entry name value(s) in an Array" it is mentionned nowwhere in MSDN ...

  • Loading sets into custom field in BW

    Hello,
    I am trying to load a set from R/3 (built in GS01) into a custom field in BW.  I built the datasource using transaction BW07.  I created the hierarchy infosource/transfer rules in BW but when I try to run the infopackage I do not see the set I need in the list of options.  I do, however, see two other sets. 
    Any suggestions? 
    Thanks,
    Michelle

    Hi,
    Check whether this link is useful
    https://websmp105.sap-ag.de/~sapidb/011000358700001969972008E.pdf
    Regards
    G.Ganesh Kumar

  • MM06E005 - how to set screen attributes for custom fields?

    Hi all,
    I have implemented enhancement MM06E005. I have added my custom fields to CI_EKPODB.  I have created and activated all the dynpros.  I modified subscreen 0111 (items) to contain my new custom fields.  I have activated the function exits (016,017,018) for the item screens.  I am able to save data using the new custom fields on subscreen 0111.
    What I am having trouble with is modifying the screen attributes for the new custom fields that I placed on subscreen 0111. I know it should be in exit 016(PBO) and I need to check the action type.  I tried a "loop at screen" but my fields were not there. 
    How do I modify the screen attributes?  Also, can I change the "Tab" text from "Customer Data" to be something else?
    Any help would be appreciated.
    Thanks, Mark

    Hi,
      In the PBO of the screen 0111, create a module. And in that module you can do LOOP AT SCREEN..where the screen elements will be available..
    Thanks
    Naren

  • Additional Customer Fields in Trans. OVA8 Define Automatic Credit Control

    Hi,
    I must add a customer field in the transaction OVA8 for the credit control but I don't want to make a standard modification.
    There are some alternative possibility ?
    Best regards.

    Many Thanks for your suggestion but with smod i don't find a screen exit for my transaction.. I am mistaking something?
    Thanks

  • Error while adding a custom field with Input help via AET

    Hi All,
    I need to add two custom field under Service orders at Item level in component BT140I_SRVP.
    One field is required to have the input search help f4 and autopopulates the second field
    I am able to add one field(not requiring help) successfully through AET .
    I have created one Zsearch_help in se11 and its successfully running  and Autopopulating seocnd field while I am testing it
    While adding second field through AET,I need to enter following details as -
    field label,search relevant ,serach help etc.
    When I type the name of my 'Zsearch_help' against field search help it gives me following error
    'Search help is not compatible'.
    Secondly,not getting getter and setter methods for the attrributes in BTAdminI.
    Last,please tell me if i create zhelp and activate it,would it automatically appear in the list on AETwhile assiging it to input field?
    Please help me out.Kindly be detailed as I am new to SAP CRM.
    Thanks,
    Shivani

    The question is answered in CRM 7.0 forum:
    Getting error while adding a custom field (with input help) through AET

Maybe you are looking for