Results 1 to 5 of 5

Thread: Help with a detail-view link/button in a subpanel

  1. #1
    stevec is offline Sugar Community Member
    Join Date
    Oct 2005
    Location
    London
    Posts
    1,101

    Default Help with a detail-view link/button in a subpanel

    Hi,

    I've created a relationship module between two others - to effectivly create a many:many relationship with related fields.

    It is called event-attendance and sits between contacts and a custom 'events' module.

    All works fine except for the event-attendance name. Effectly, it doesn't need one. So I can do away with it in the detail and edit views and set name as a calculated field (as it cannot be null). Currently, I'm setting it as a 'now' datetime as I'm using V6.1 and calculated fields cannot refer to parent ralationships (as otherwise I would concatonate contact name with event name.

    Anyway, This is fine except for the event-attendance subpanels under contacts and events.

    I want to remove the event-attendance name from the subpanel rows (as they make no sense to users) but if I do this, there is no way to get to the record's detail view. I can get to the edit view using the 'edit' button, but I'm after a 'detail' button or some other was to get to the detail view.

    Any suggestions?

    Cheers,
    Steve
    Last edited by stevec; 2012-01-23 at 01:26 PM. Reason: typo

  2. #2
    rafael.q.g@hotmail.com's Avatar
    rafael.q.g@hotmail.com is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Florianópolis - Brazil
    Posts
    782

    Default Re: Help with a detail-view link/button in a subpanel

    This can be solved by programming.
    You have to create a new sugar widget on /include/generics/sugarwidgets/.
    Then on new widget you could render the link to detail view instead of edit view.
    Rafael Queiroz Gonçalves
    Advanced OMG UML Certified Professional
    Sun Certified Enterprise Architect for the Java Platform
    Sun Certified Programmer for the Java 2 Platform
    IBM Certified Advanced Application Developer - Lotus Notes and Domino
    IBM Certified Application Developer - IBM WebSphere Portlet Factory
    Computer Science Mastering / UFSC - PPGCC

  3. #3
    stevec is offline Sugar Community Member
    Join Date
    Oct 2005
    Location
    London
    Posts
    1,101

    Default Re: Help with a detail-view link/button in a subpanel

    Great - thanks.

    Is it possible to add widgets into the custom directories rather than straight into the standard include folders? I know that your suggestion is pretty much upgrade safe as there's not much chance of sugar ever creating an identically named file in that location - but I'm just being a bit perfectionist

    Thanks,
    Steve

  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: Help with a detail-view link/button in a subpanel

    Quote Originally Posted by stevec View Post
    Great - thanks.

    Is it possible to add widgets into the custom directories rather than straight into the standard include folders? I know that your suggestion is pretty much upgrade safe as there's not much chance of sugar ever creating an identically named file in that location - but I'm just being a bit perfectionist

    Thanks,
    Steve
    Yes, new versions of SugarCRM supports custom widgets on custom folder.

    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
    stevec is offline Sugar Community Member
    Join Date
    Oct 2005
    Location
    London
    Posts
    1,101

    Default Re: Help with a detail-view link/button in a subpanel

    Quote Originally Posted by andopes View Post
    Yes, new versions of SugarCRM supports custom widgets on custom folder.

    Cheers
    Thanks - is the location

    custom//include/generic/SugarWidgets?

    Thanks

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Add a link/button to the contacts detail view
    By djibey in forum Developer Help
    Replies: 1
    Last Post: 2011-02-08, 05:31 PM
  2. Replies: 4
    Last Post: 2010-01-13, 09:34 AM
  3. link to detail view from list view in the custom module problem
    By shamimwilson in forum Developer Help
    Replies: 10
    Last Post: 2009-12-24, 10:47 AM
  4. Replies: 0
    Last Post: 2006-07-11, 10:05 PM
  5. Replies: 0
    Last Post: 2006-05-04, 01:27 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
  •