Results 1 to 5 of 5

Thread: Related fields and their values ​​managed by admin

  1. #1
    vandelft is offline Junior Member
    Join Date
    Jun 2011
    Posts
    4

    Question Related fields and their values ​​managed by admin

    Hi guys,

    I was chosen by a company, even thou they know i never worked with SugarCRM, to form a Case.

    In this form, three of the fields must be pop-ups and will only be enabled when the first is chosen, and values ​​will be different every second choice and so on.
    ie, a tree that each option has no options.
    the values ​​of these fields must be managed through admim.

    Has anyone done something like that?, Is this possible?

    CAN SOMEONE GIVE ME A LIGHT?



    Thank you.

    vandelft

  2. #2
    ashdwi1's Avatar
    ashdwi1 is offline Sugar Community Member
    Join Date
    May 2008
    Location
    Noida
    Posts
    198

    Default Re: Related fields and their values ​​managed by admin

    Hello,
    can you please elaborate requirement with an example.
    as for as it is looking requirement of No Duplicates with popup fields dependency of another popup field.
    please elaborate more , so that we can understand better.
    thanks
    Almost available at skype or gtalk at ashdwi1.

    SugarForge Project:
    http://www.sugarforge.org/projects/gmapdirection
    Email: ashdwi1@gmail.com
    Mob: +919005468298

    Hire us at Odesk at
    https://www.odesk.com/users/~~b9eff8ff219fd705

    Hire Us at Elance at:
    http://ashdwi1.elance.com

  3. #3
    vandelft is offline Junior Member
    Join Date
    Jun 2011
    Posts
    4

    Default Re: Related fields and their values ​​managed by admin

    Hi ashdwi1, thank you for answering.

    I will try to make myself more clear.


    I have to customize this form on Support -> Cases;

    In this form I must have three pop-up fields:
    - Description of Problem ;
    - Reason of case;
    - Treatment of case;

    for example:
    Product with error: CD-ROM
    Description of Problem: Product didn't pass quality control.
    Reason of case: Reading error.
    Treatment of case: Sent other product to client

    On this form the three last fields must be chosen of an pop-up window just like when choosing a client.

    the first window must have values:
    - desc 1
    - desc 2
    - desc 3
    ...
    - desc n

    if i, for example, chose DESC 1 on the first window, the field "Reason of case" will be enabled to changes
    with values:
    - reason 1,1
    - reason 1,2
    - reason 1,3
    ...
    - reason 1,n

    if i chose DESC 2:
    - reason 2,1
    - reason 2,2
    - reason 2,3
    ....
    - reason 2,n

    And so on

    the same happens when I chose a reason. The "Treatment of case" is enabled and ready to change

    All those values must be managed by a user through the admin panel.

    I really hope I made myself clear.

    Thank you so much

    vandelft

  4. #4
    ashdwi1's Avatar
    ashdwi1 is offline Sugar Community Member
    Join Date
    May 2008
    Location
    Noida
    Posts
    198

    Default Re: Related fields and their values ​​managed by admin

    Yes, that was good elaboration and was clear in thoughts.
    Well , this will going to be good Sugar knowlege as well.

    First you need to create 3 modules ( I am not sure all 3 are needed to dependent relationships between description , reason and treatment , but for 3 different popups , 3 modules are needed)
    i) Description
    ii) Reason
    iii) Treatment

    from studio add a relate field for description , Reason , Treatment.

    now you need to field definitions at editviewdefs.ph at metadata like wise

    'displayParams' =>
    array (
    'initial_filter' => '&user_type_dd_advanced=PM',
    ),

    please change user_type_dd_advanced to reason_name_advance and treatment_name_advanced .

    thanks
    Almost available at skype or gtalk at ashdwi1.

    SugarForge Project:
    http://www.sugarforge.org/projects/gmapdirection
    Email: ashdwi1@gmail.com
    Mob: +919005468298

    Hire us at Odesk at
    https://www.odesk.com/users/~~b9eff8ff219fd705

    Hire Us at Elance at:
    http://ashdwi1.elance.com

  5. #5
    vandelft is offline Junior Member
    Join Date
    Jun 2011
    Posts
    4

    Default Re: Related fields and their values ​​managed by admin

    Hi ashdwi1,

    I want to thank for all your help and the time you spent writing me the answer.

    The part on the relation to the Case work like a charm... I mean, it's where it should be, but I still have some doubts about somethings.

    mainly:

    "now you need to field definitions at editviewdefs.ph at metadata like wise

    'displayParams' =>
    array (
    'initial_filter' => '&user_type_dd_advanced=PM',
    ),

    please change user_type_dd_advanced to reason_name_advance and treatment_name_advanced ."

    what does that do...

    My modules are called:

    Causa_Reclamo
    Dettagli_Reclamo
    Trattamento_Reclamo

    how would that be?

    On the file editviewdefs.php:
    $module_name = 'ath_Causa_Reclamo';



    'displayParams' =>
    array (
    'initial_filter' => '&Causa_Reclamo_name_advanced=PM',
    ),

    //please change user_type_dd_advanced to reason_name_advance and treatment_name_advanced .

    $viewdefs[$module_name]['EditView'] = array(
    'templateMeta' => array('maxColumns' => '2',
    'widths' => array(
    array('label' => '10', 'field' => '30'),
    array('label' => '10', 'field' => '30')
    ),
    ),


    'panels' =>array (
    'default' =>
    array (

    array (
    'name',
    'assigned_user_name',
    ),

    array (
    'description',
    ),
    ),

    ),

    );

    How can I manage the values through the admin panel?

    Thank you so much
    vandelft

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Outputting values based on the values of two fields
    By Koolvin in forum Developer Help
    Replies: 1
    Last Post: 2011-05-25, 07:57 PM
  2. Replies: 0
    Last Post: 2009-12-01, 11:17 AM
  3. problem while getting related values.
    By reddysankarsugarcrm in forum Help
    Replies: 0
    Last Post: 2009-01-06, 10:55 AM
  4. Related to field show objects instead of values
    By jpabellon in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2008-01-10, 09:39 AM
  5. Creating Fields - calculated fields and 'related' field
    By gipps in forum General Discussion
    Replies: 0
    Last Post: 2007-07-21, 10:17 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
  •