Results 1 to 5 of 5

Thread: Displaying Field_A from Module_A as read-only in Module_B

  1. #1
    hadoob024's Avatar
    hadoob024 is offline Sugar Community Member
    Join Date
    Mar 2010
    Posts
    137

    Default Displaying Field_A from Module_A as read-only in Module_B

    Not exactly sure how to do this. In Module_A, I have Field_A. I need to display Field_A as read-only in the editviewdefs.php in Module_B. How do I do this (I have a few ideas in mind but am looking for a preferred method)? Thanks!
    -hadoob024-


    Windows 7 SP1
    PHP 5.2.17
    SQL Server 2008 R2
    IIS 7.5
    Sugar Professional Version 5.5.1

  2. #2
    eitrix's Avatar
    eitrix is offline Sugar Community Member
    Join Date
    Aug 2010
    Location
    Serbia
    Posts
    396

    Default Re: Displaying Field_A from Module_A as read-only in Module_B

    make in module_b a non-db field, put it on editviewdefs and then use logic_hook to fetch data from module_a into that field before showing it on editview
    CRM Software Engineer
    Eontek - www.eontek.rs

  3. #3
    hadoob024's Avatar
    hadoob024 is offline Sugar Community Member
    Join Date
    Mar 2010
    Posts
    137

    Default Re: Displaying Field_A from Module_A as read-only in Module_B

    Got it. Makes sense. So it would be a "relate" type, correct?
    -hadoob024-


    Windows 7 SP1
    PHP 5.2.17
    SQL Server 2008 R2
    IIS 7.5
    Sugar Professional Version 5.5.1

  4. #4
    eitrix's Avatar
    eitrix is offline Sugar Community Member
    Join Date
    Aug 2010
    Location
    Serbia
    Posts
    396

    Default Re: Displaying Field_A from Module_A as read-only in Module_B

    Well since you are showing this field as read-only and value for it is filled from logic hook, make it a simple text field
    CRM Software Engineer
    Eontek - www.eontek.rs

  5. #5
    hadoob024's Avatar
    hadoob024 is offline Sugar Community Member
    Join Date
    Mar 2010
    Posts
    137

    Default Re: Displaying Field_A from Module_A as read-only in Module_B

    Got it. That makes sense. I wasn't aware you could create non-db fields that can be of any type. I thought that they had to be either "relate" or "link". Thanks for clearing that up!
    -hadoob024-


    Windows 7 SP1
    PHP 5.2.17
    SQL Server 2008 R2
    IIS 7.5
    Sugar Professional Version 5.5.1

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Read Only
    By bhc92 in forum Help
    Replies: 2
    Last Post: 2010-05-26, 08:23 AM
  2. read only access
    By junk7478 in forum General Discussion
    Replies: 3
    Last Post: 2008-04-10, 11:57 AM
  3. Threads being marked as 'read' before I read them...
    By tbivans in forum Site feedback
    Replies: 0
    Last Post: 2008-03-17, 02:51 PM
  4. Mails can read everybody
    By olwolff in forum Help
    Replies: 2
    Last Post: 2007-06-11, 04:21 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
  •