Results 1 to 6 of 6

Thread: Problems with assigned to field

  1. #1
    kasperd is offline Senior Member
    Join Date
    Nov 2008
    Posts
    38

    Default Problems with assigned to field

    I noticed that when user hase owner rigths to the module and he creates the record there are two cases:


    one when assigned to field is hidden in edit layout then the user can not access the record as the assigned to is empty and i can not see the items in list

    second when assigned to field is on edit layout then everything is ok

    How to make not showing the assigned to field but make default value for user who creates record?

    I have security teams installed but i think it is a problem of sugar itself

  2. #2
    anvaruz is offline Senior Member
    Join Date
    Jul 2008
    Location
    United Kingdom
    Posts
    26

    Default Re: Problems with assigned to field

    have the same issue
    basicaly i dont want user to be able to change "assigned to " filed
    i was trying to hide the field from edit view, but then the record assignes to no one

  3. #3
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Problems with assigned to field

    You can create a logic_hook before_save for your modules.
    The logic_hook function needs to check if the record is a new one, if yes so it needs to fill in $focus->assigned_user_id the $current_user->id.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  4. #4
    anvaruz is offline Senior Member
    Join Date
    Jul 2008
    Location
    United Kingdom
    Posts
    26

    Default Re: Problems with assigned to field

    Quote Originally Posted by andopes View Post
    You can create a logic_hook before_save for your modules.
    The logic_hook function needs to check if the record is a new one, if yes so it needs to fill in $focus->assigned_user_id the $current_user->id.

    Cheers
    this is beyond my programming skills
    i can only follow cut and paste instructions )
    but thanks anyway

  5. #5
    christianknoll's Avatar
    christianknoll is offline Sugar Community Member
    Join Date
    Nov 2008
    Location
    Vienna
    Posts
    939

    Default Re: Problems with assigned to field

    we are happy to provide you cut&paste instructions. Please send a personal email for a quote with ourstandard daily/hourly rates.

    christian.

    PS: I think it is funny to expect to get free consulting here.

    Quote Originally Posted by anvaruz View Post
    this is beyond my programming skills
    i can only follow cut and paste instructions )
    but thanks anyway

  6. #6
    anvaruz is offline Senior Member
    Join Date
    Jul 2008
    Location
    United Kingdom
    Posts
    26

    Default Re: Problems with assigned to field

    Last edited by anvaruz; 2009-08-09 at 09:18 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Hide Assigned To field
    By vijay9948 in forum Developer Help
    Replies: 5
    Last Post: 2010-07-30, 08:21 PM
  2. Assigned to field not choosable
    By kasperd in forum Developer Help
    Replies: 1
    Last Post: 2009-02-19, 03:18 PM
  3. Display name in assigned to field
    By mmisra in forum Developer Help
    Replies: 11
    Last Post: 2008-09-29, 08:59 AM
  4. How to add Custom Field similar to Assigned to?
    By mmisra in forum Developer Help
    Replies: 1
    Last Post: 2008-08-28, 12:26 PM
  5. Set the 'Assigned to' field to a Required Field
    By MIConsultancy in forum Help
    Replies: 1
    Last Post: 2007-07-05, 08:22 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •