Results 1 to 5 of 5

Thread: Unique field

  1. #1
    leowolff is offline Sugar Community Member
    Join Date
    Apr 2009
    Posts
    126

    Default Unique field

    Hello, I am using Sugar 5.2CE with oqc addon and portuguese package, and taking my first step into customizing Sugar.

    What I want to do is to force a field to not allowed duplicate info. I mean, in the product custom module I have a field called "name", I want that the system warn the user that he is imputing a register that alredy exist. What I tried:

    On: custom\Extension\modules\oqc_Product\Ext\Vardefs I created a file and put this line:

    <?php
    $dictionary['oqc_Product']['fields']['name'] = array (
    'type' => 'unique',
    );

    ?>

    but it didnt work, any tips?

  2. #2
    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: Unique field

    Hi Leo

    The last version of DevToolKit implements such feature.

    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.

  3. #3
    dekleinemedia is offline A Prolific Poster
    Join Date
    May 2009
    Location
    Netherlands
    Posts
    241

    Default Re: Unique field

    Quote Originally Posted by andopes View Post
    Hi Leo

    The last version of DevToolKit implements such feature.

    Cheers
    Hi André,

    I have downloaded the devtoolkit, because I want to make a project # a unique field, but when i want to upload and install this devtoolkit_0.5.zip through ModuleBuilder it says that .zip file is missing manifest.php file. I have the samen problem with Contacts_0.5.zip. Any idea how to solve this?
    I can install the devtoolkit_0.3.zip though

    Thankss
    Last edited by dekleinemedia; 2009-07-15 at 10:20 AM.
    Kind regards,

    De Kleine Media


    SugarCRM CE v.5.2.0h
    Windows platform
    MySQL v.5.1
    phpMyAdmin - 2.11.2.2
    Apache Server v.2.0

  4. #4
    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: Unique field

    Did you try to install it from Module Builder or Module Loader?

    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.

  5. #5
    dekleinemedia is offline A Prolific Poster
    Join Date
    May 2009
    Location
    Netherlands
    Posts
    241

    Default Re: Unique field

    Sorry, I meant ModuleLoader
    Kind regards,

    De Kleine Media


    SugarCRM CE v.5.2.0h
    Windows platform
    MySQL v.5.1
    phpMyAdmin - 2.11.2.2
    Apache Server v.2.0

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Unique Field
    By genius786 in forum Developer Help
    Replies: 8
    Last Post: 2009-03-18, 03:42 PM
  2. Custom unique field
    By waverider in forum Developer Help
    Replies: 5
    Last Post: 2008-04-04, 12:45 AM
  3. How to make a custom field unique
    By sawan in forum General Discussion
    Replies: 1
    Last Post: 2008-03-03, 11:41 PM
  4. How to make a custom field unique
    By sawan in forum Developer Help
    Replies: 2
    Last Post: 2008-03-01, 12: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
  •