Results 1 to 7 of 7

Thread: How do i add / default show "Only my items"

  1. #1
    Join Date
    Aug 2008
    Posts
    17

    Default How do i add / default show "Only my items"

    What i am trying to do is on the accounts tab is to make sugar ONLY show that users accounts.
    I cannot seem to find a way to do this.

    Also when trying to customize the layout i removed the "Only my items" field. but now i cannot add it back in.

    and finally. is there a way to have sugar clear the search resaults everytime the page is reloaded? instead of having to click on "clear"?

    Thank You.

  2. #2
    ptemplin7 is offline Sugar Community Member
    Join Date
    Jun 2007
    Location
    Puget Sound Washington
    Posts
    380

    Default Re: How do i add / default show "Only my items"

    <code>
    What i am trying to do is on the accounts tab is to make sugar ONLY show that users accounts.
    I cannot seem to find a way to do this.
    </code>

    You could set up a logic hook to do this. Its going to take some programming and DB knowledge though. The logic hook allows you to change the data that is loaded before it is displayed. I do this with my phone number fields. You would need to use the user table (user id) and compare it to the assigned user field in the data that was loaded. You might end up creating a custom module to actually display the data. Have fun. Do not test with a production box!

    <code> Also when trying to customize the layout i removed the "Only my items" field. but now i cannot add it back in.</code>
    Yeah thats a general problem in sugar with some of the default fields. I possible reinstall sugar or restore from a backup to before you deleted it. Otherwise look through the forum. I remember this coming up several times before, don't remember the fix.

    On clearing search results. I think there is a flag to reset. You should also be able to do this with a logic hook. I would seaqrch the forums and see if it has come up before. Might be an easy fix.

    Good luck, Paris

  3. #3
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: How do i add / default show "Only my items"

    1. Use roles and set List to Owner for Accounts.
    2. It should be in the list in Studio
    3. Set 'save_query' => 'no', in your config.php file...even better in your config_override.php file.

  4. #4
    sugarcane is offline Sugar Community Member
    Join Date
    Apr 2005
    Location
    Chicago, IL
    Posts
    1,207

    Default Re: How do i add / default show "Only my items"

    Hello phoenixfire,

    In order to have users only see their accounts, all you need to do is set up a role in the admin section under 'Role Management'. Create a role, and then in the 'Accounts' row, set the Edit, List, View, and Export to 'Owner'. This means that users will only be able to see the records that are assigned to them in the List view, Detail view, edit view, and export only records assigned to them.

    Once you save the role, add the users you want to apply this to in the 'Users' submodule.
    Intelestream has a great deal of experience hosting and customizing the SugarCRM application. Our company is made up by former employees of SugarCRM, and together we have over 50 years of experience working with the application. To learn more about us, please visit our website at www.intelestream.net or contact us directly at 800-391-4055 or by email at info@intelestream.net

  5. #5
    Join Date
    Aug 2008
    Posts
    17

    Default Re: How do i add / default show "Only my items"

    Quote Originally Posted by sugarcane
    Hello phoenixfire,

    In order to have users only see their accounts, all you need to do is set up a role in the admin section under 'Role Management'. Create a role, and then in the 'Accounts' row, set the Edit, List, View, and Export to 'Owner'. This means that users will only be able to see the records that are assigned to them in the List view, Detail view, edit view, and export only records assigned to them.

    Once you save the role, add the users you want to apply this to in the 'Users' submodule.
    THANK YOU!!!
    That was what i was looking for! that worked great.

    Now does anyone know how to have the search resault clear evertime you enter the accounts module?

  6. #6
    Join Date
    Aug 2008
    Posts
    17

    Default Re: How do i add / default show "Only my items"

    Quote Originally Posted by eggsurplus
    1. Use roles and set List to Owner for Accounts.
    2. It should be in the list in Studio
    3. Set 'save_query' => 'no', in your config.php file...even better in your config_override.php file.
    Im not sure how to get to this i looked in the config_override.php file and did not find 'save_query'

  7. #7
    Join Date
    Aug 2008
    Posts
    17

    Default Re: How do i add / default show "Only my items"

    Quote Originally Posted by phoenixfire425
    Im not sure how to get to this i looked in the config_override.php file and did not find 'save_query'
    ok i found it. it was in the config.php file. and it worked thanks again!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. List View Population
    By atin in forum Help
    Replies: 5
    Last Post: 2008-04-24, 05:57 AM
  2. Replies: 3
    Last Post: 2006-10-18, 12:47 AM
  3. SugarCrm 4.0 Patch
    By mgamboa in forum General Discussion
    Replies: 0
    Last Post: 2005-12-21, 04:14 PM

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
  •