Custom field type vs user controls

hi,
I saw one example for creating page layouts. In that they are adding the controls to page layout using custom fields . we can use user controls for same right ? when we need custom field types and when we need user controls. 
Thanks,

You can use user controls in pagelayouts, but they won't store/retrieve the information from the underlying metadata like the field controls will.
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem.

Similar Messages

  • Custom field type - get column name in code

    All,
    I have a custom field type. In the code, I would like to get the column name that the user input. For example, user creates a new column called "Customer" with my custom field type. How can I get the name "Customer" that the user has
    just input?
    Thanks.

    Greetings,
    1) Is it possible to map datatypes? i.e.
    java.util.Date to the sql timestampThe deploytool creates the mapping based on its introspection of your bean. If your bean is coded to 1.1 then it will create the mapping based on your public field types. If coded to 2.0 then it will be based on your abstract accessors (which should conform to JavaBean conventions). Also, it is better to use java.sql.Timestamp to map to SQL timestamps since most DBEs typically store such data in nanosecond precision which java.util.Date is not equipped to handle. :)
    2) Is it possible to map entity bean names and cmp
    fields to the exact database tables and column names?Yes. After you assemble your bean in the wizard, return to the 'Entity' tab and click on 'Deployment Settings' (the SDK deploytool exemplifies the distinction between Application Assembler and Deployer roles... ;). In the resulting dialog you can: specify the datasource for your bean ('Database Settings...'); edit the EJB QL for your finder/select methods ('Edit...') if not done so during assembly; and generate ('Generate Default SQL...') and edit the SQL for your particular resource. Letting the tool generate the ("default") SQL is not really very useful if your database schema is already created but it may help save some typing ':) To edit the SQL click on the method for which to edit and you can then edit (for it) in the 'SQL Query:' TextArea.
    So far I have seen no evidence of either.I hope this helps.
    Many thanks,
    TimRegards,
    Tony "Vee Schade" Cook
    PS... I know this is only meant for development
    testing but these features are fairly standard on theActually, that's the RI's secondary purpose; its primary purpose is to provide a reference for spec implementors to compare their product(s) against. ;)
    main appservers out there and I wouldn't have thought
    it is too difficult to implement in the reference
    implementation. And, indeed, so it is implemented...

  • Custom fields for FV50 table control

    Hello,
    The customer has a requirement to add 3 text fields to the table control in Transaction FV50. These fields are currently not available in the table control at all (I checked the Table settings Administrator). Further, no Screen/Transaction Variant has been implemented either to prevent these fields from being displayed. Which is why I'd like to find a way to add these custom fields to this table control. These fields are the text descrptions for the numeric fields Cost Center, Fund and Business Area.
    I've read many posts on this forum regarding potential solutions including the link below which details the SAP std solution. Only problem is this approach adds these fields to the data dictionary tables underlying the screen. The customer says about 1 million records are being generated a month so they would rather not have all that extra data at the line item level.
    Custom column for FB60
    If anybody has done this sort of thing via a user exit I'd much appreciate your input.
    Thanks,
    Tarun

    Hi Rob,
    Yes, I checked IMG configuration and found that Txn OXK3 allows us to extend the underlying tables and customize the generic fields in the table control. However, the client  has nearly 1 million postings to table BSEG each month and I'm guessing this approach will entail adding the custom fields to table BSEG, which won't work for them. I haven't actually tried this approach because the SAP documentation has some dire warnings about proceeding. But if you have any insight as to whether this can be achieved without extending BSEG (possibly just extend VBSEGS??) that would be very valuable.
    Thanks,
    Tarun

  • Custom field type - SPFieldLookup

    All,
    I am creating a custom field type based on the SPFieldLookup. 
    public class CustomAutoComplete : SPFieldLookup
    public CustomAutoComplete(SPFieldCollection fields, string fieldName)
    : base(fields, fieldName)
    public CustomAutoComplete(SPFieldCollection fields, string typeName, string displayName)
    : base(fields, typeName, displayName)
    public override BaseFieldControl FieldRenderingControl
    get
    BaseFieldControl fieldControl = new AutoComplete();
    fieldControl.FieldName = this.InternalName;
    return fieldControl;
    After creating the item of Lookup field, it gives me as following
    <a onclick="OpenPopUpPage('http://spserver/sites/restaff/_layouts/15/listform.aspx?PageType=4&ListId={f4c841e5-7226-4615-9f6c-3a5cdb95ee74}&ID=1&RootFolder=*',
    RefreshPage); return false;" href="http://spserver/sites/restaff/_layouts/15/listform.aspx?PageType=4&ListId={f4c841e5-7226-4615-9f6c-3a5cdb95ee74}&ID=1&RootFolder=*">Anh Nguyen</a>
    What I need is the link to the lookup item.
    Please help.
    Thanks,

    So far it give me the link by adding following code 
    public override string JSLink
    get
    if (CurrentControlMode == SPControlMode.Invalid || CurrentControlMode == SPControlMode.Display)
    return "clienttemplates.js";
    return base.JSLink;
    set
    base.JSLink = value;
    However, I have issue when join two lists together by using this new column which I just created. Please help!

  • Add columns with custom fields in the table control of MIGO

    Hi,
    I have to add custom fields in the table control view of item in the MIGO.  I have added the fields in the GOITEM structure and i am able to display it in the item details tab.  I want the same fields to be visible as columns in the table control view of the items.
    I found that TV_GOITEM is the control in SAPLMIGO program referring to the table control of items but it is referring only to the standard fields available in Screen 200.
    Please let me know if there is any screen exit or option to add the custom fields in the control TV_GOITEM.
    Thanks.

    Hi,
    Thanks for your reply.  I have added the custom fields in the item detail.  But the customer wants the custom fields in the table view also.
    Is there any screen exit available to modify the table control of MIGO?
    Thanks.

  • Add customer field on operation user data. Tr IA05 - IA06

    Hello,
    I would add customer field on operation user data on transactions IA05 - IA06. All user fields aren't available because used.
    Is there an enhancement for this on screen "operation user data" ? or can we active a custom screen ?
    Thanks all.
    Best regards

    Hi,
       Welcome To SDN!!
    Check the following user exits .
    CPAU0001
    CPDO0001
    XCZD0004 .
    Regards
    Kiran Sure

  • Unable to locate the xml-definition for FieldName with FieldId '1f8a351c-965d-4927-9c22-8772b7089f55' when trying to activate feature with references a custom field type

    I´ve a solution which contains a custom field type (found somewhere on the net, the custom field type maps a choice field to managed metadata). There is a second solution which contains site column and site content type definitions using the custom field
    type definition from field type solution.
    On my developement environment, there is no problem with this two solutions. When field type solution is deployed, i can deploy the content type solution and activate the feature and everything is fine.
    However if i give the two solutions to our adminstrator to deploy them into our staging environment, content type feature activation fails. Deploying the field type solution makes no problems. The field type is then available and i can manually creates
    columns with this new field type. However activating the content type solution fails with the error shown in the title of this message. The FieldID from the message is not part of my content type project. Searching the net doens´t show any results for that
    id. So i think it´s not some of the standard field id´s from sharepoint.
    Can anyone help?

     Stack Trace
    Unable to locate the xml-definition for FieldName with FieldId '1f8a351c-965d-4927-9c22-8772b7089f55', exception: Microsoft.SharePoint.SPException: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) ---> System.Runtime.InteropServices.COMException (0x8000FFFF): Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
    at Microsoft.SharePoint.Library.SPRequestInternalClass.GetGlobalContentTypeXml(String bstrUrl, Int32 type, UInt32 lcid, Object varIdBytes)
    at Microsoft.SharePoint.Library.SPRequest.GetGlobalContentTypeXml(String bstrUrl, Int32 type, UInt32 lcid, Object varIdBytes) -
    -- End of inner exception stack trace ---
    at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)
    at Microsoft.SharePoint.Library.SPRequest.GetGlobalContentTypeXml(String bstrUrl, Int32 type, UInt32 lcid, Object varIdBytes)
    at Microsoft.SharePoint.SPFieldCollection.FetchFieldsFromWeb()

  • Read only custom field for particular user

    Hi,
    I have requirement to few enterprise custom field should be edited by only top management,Project manager and team member can only read the same field.
    Like i have one custom enterprise  baseline finish date,which need to update by only IT GM,and other staff can see only as read mode.
    Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Sharepoint and EPM Consultant,TCS
    |
    | Twitter

    Hasan,
    You have few options, based on the route you want to take"
    1) You could control the "Visbility" of the fields, via using a feature like
    Target Audiences .
    However,this may not  control the same custom field on the page based on user permissions.
    2) Use JavaScript: https://badalratra.wordpress.com/2013/05/04/how-to-disable-pdp-custom-fields-using-javascript/
    3) Jquery: http://epmainc.com/blog/locking-custom-fields-pdp-project-server-2013-using-jquery
    4) Customization: https://epmxperts.wordpress.com/2014/01/20/secure-pdp-pages-as-per-project-server-security/
    5) You could look into a third part product, by Fluent Pro: https://help.fluentpro.com/pdp_manager/start
    I realize these may not be exactly what you need, but with some effort, I am sure you could modify the code and reuse.
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

  • Custom fields in migo table control not updating

    hi ,
    This is to have your valuable suggestion , wrt , following issue..
    In transaction MIGO , i have to add two fields uebto and untto in table control .
    I am able to add them in table control, but some how not able to pick data for these fields .
    error coming is :
    " System error: Incorrect Customizing for field
    ZZUEBTO".
    if any face such type of issue , answer me .
    Thanx,
    jeet

    Hi,
    Thanks for your reply.  I have added the custom fields in the item detail.  But the customer wants the custom fields in the table view also.
    Is there any screen exit available to modify the table control of MIGO?
    Thanks.

  • OIM 11g r1 custom field in simple user search result

    Good morning,
    i need to visualize a custom field in the OIM simple user search result table. At the moment, when a simple user search is performed, the returned attribute is only the "Display Name".
    For the advanced user search result table, is possible to add other fields modifying the Search Results table configuration in Advanced->User configuration->Search Configuration.
    How can i do the same the for simple user search result?
    Thank you.

    Yes, i tried to add my custom attribute to both Simple and Adv search result table, but without luck. Only Display Name column attribute is shown when a simple search is performed.

  • Adding custom fields to standard table control in IW51

    Hi,
    I have added 4 custom fields to the standard table QMEL through the structure CI_QMEL .
    In transaction IW51 there is a table control as show in the screenshot below.
    The 4 custom fields which i have added in the standard table should also be added to this table control.
    Can this achieved by making adjustments in SPRO settings or can it be acheived technically by using some exit?
    Thanks in advance.
    Regards,
    Vignesh Sunkasi.K

    Hi Vignesh,
    Adding new fields is not possible, but custom subscreens can be added.
    Check enhancements QQMA0001 (subscreen for notification header) and QQMA0008 (subscreen for additional data).
    It might help you.
    Thanks & Regards,
    Swati

  • Which web part allows me to insert Enterprise Custom Fields for the user to fill out?

    I've seen this done but Im having a hard time finding the correct web part type that would allow me to do this.
    Editing the web part looks like this: http://i.imgur.com/MnVd9bO.png

    Hi,
    The name of the webpart is Basic Info and can be found under Project Web App category
    Hope this helps
    Paul

  • Adding custom fields in table control of PO

    Hi Everyone,
    I have a requirement which i need to display the custom fields in the Table Control(Item Overview) of PO. Since our Version is 4.6C there is no badi's avilable to do the changes. Please let me know how can we solve this problem.
    Mentors: Forgive me if it is repeated Post...
    Edited by: subas  Bose on Feb 5, 2010 12:10 AM

    Hi,
    Search for user exit...either screen or field exit..this will solve your problem.
    Small help on how to find a exit;
    1. find out the package
    2. go to se84 with the help of package in the cutom exit tab look for all the exit.
    3.put the brek point and tack where you can get the solution.
    Pooja

  • How to unghost Field Control and Field Type

    We have created a custom field type and field control. As we know once we deployed field control and field type, it will keep some file like (Control file , XML file) in the file system (Hive).
    Due to business need, I just want to remove the dependency from file system and want to store every thing in database. means I want to un-ghost Field Type and Field Control. How can I achieve this.
    Please provide me some guidance on this.

    I don't think that's possible. Type definitions such as Features, Site Definitions, Field Type need to reside in the system hive. Only instances would be stored in the database.
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • How to hide custom fields in Shopping cart depening on user role

    Hi,
    We have some custom fields in shopping cart for basic view. Every thing works fine. Now client is asking to hide all the custom fields based on user role.
    I found some function module to fund roles. now my main problem is unable to find the cusotm filed screen field name.
    When I tryed to find the screen field name using BBPSC02/03, its giving 'GT_DISPLAY_100-FIELD'. If I try to use this field, its not working.
    Could you pls tell me how to find custom screen filed name to hide in shopping cart.
    Thanks,
    Ram

    Hi Ram,
    As Laurent suggested,to hide the custom fields based on the user role,you need to implement the logic in BADi "BBP_CUF_BADI_2".
    You have the importing parameter IV_USER in this BADI.
    Pass this parameter to tables AGR_USERS and AGR_USERT  to get the user role
    OR
    Use FM: BAPI_USER_GET_DETAIL
    with USERNAME= user id and can retrieve Table: ACTIVITYGROUPS Field:AGR_NAME
    if you want the otherway around
    you can also use FM: RSRA_USERS_OF_AGR_GET
    with I_AGR_NAME= role and you can retieve Table: ACTIVITY_GROUPS_USERS Field: UNAME(usr Id)
    Then check the value for the User role as obtained using the above steps and accordingly set the property for the custom fields to hide them.
    BR,
    Deepti.

Maybe you are looking for

  • How to connect macbook pro to tv

    How do I connect my macbook pro (2 -3 years old) to a tv?  Bought an apple HDMI connecter, bought cable to connect to it and to tv, connected them but nothing happens.

  • Best way to add mass unorganized mp3 library to iTunes to stream on AppleTV

    Ok so I have a fairly large mp3 collection(well over 100 GB).  It is somewhat organized.  It is all on an external HDD under the folder music then from there there are subfolders for genres, then bands, then albums.  I am not sure I want to add all o

  • File System in Folder Level Script

    Is it possible to access the File System in a Folder Level Script. For example I want to check if a certain file exists in the folder containing active document & load info from that file in a dialog box. Thanks in advance

  • Aperture to Photoshop

    Hello, I cant seem to send out the changes I have made in aperture to photoshop. For example, I will make adjustements to my original image and afterwards select "Edit with photoshop CS3" but only the original picture without the adjustments appears

  • Replacing SSD in MacBook Pro Retina- HELP PLEASE.

    I just ordered a new OWC 480gb SSD for my MBPR mid 2012 15".  I am replacing the original SSD which failed.  I have a few questions about how to go about using the new SSD, once installed. here is some background. 1) the drive will be blank and unfor