Get current module and view javascript

Is there a javascript function to get current action/view (QuickCreate/Create/Edit/Record) and module (i.e "Meetings"). Something like SUGAR.App.getCurrentView() or SUGAR.App.getCurrentACL() ??

I am trying to filter what modules show up as options for the parent relate field type, it currently shows every module, even the ones we don't use, currently I am looking at modifying the _filterModuleList: function(modules) under clients/base/fields/parent/parent.js as it looks like it only filters by ACL access, and you cannot for some reason change it in studio (despite having a dropdown editor?) and i would like it to filter based off different arrays depending on current module

Any help would be appreciated, I'm growing quite frustrated

Parents
  • You can control what modules appear in the Parent Relate dropdown from Dropdown Editor, look for:

    parent_type_display

    For US English this will update: 

    custom/Extension/application/Ext/Language/en_us.sugar_parent_type_display.php

    If you are making changes to the dropdown but they are not being saved, then you probably have an issue with permissions on your file system.

     

    My panacea on Linux is running this from sugar root, it will update recursively all files and dirs:

    sudo chown -R  apache:apache *

    sudo find . -type d -exec chmod 775 {} \;

    sudo find . -type f -exec chmod 664 {} \;

     

    HTH

    FrancescaS

Reply
  • You can control what modules appear in the Parent Relate dropdown from Dropdown Editor, look for:

    parent_type_display

    For US English this will update: 

    custom/Extension/application/Ext/Language/en_us.sugar_parent_type_display.php

    If you are making changes to the dropdown but they are not being saved, then you probably have an issue with permissions on your file system.

     

    My panacea on Linux is running this from sugar root, it will update recursively all files and dirs:

    sudo chown -R  apache:apache *

    sudo find . -type d -exec chmod 775 {} \;

    sudo find . -type f -exec chmod 664 {} \;

     

    HTH

    FrancescaS

Children