Results 1 to 7 of 7

Thread: add new flag to each record of Sugar

  1. #1
    pravin.agham is offline Senior Member
    Join Date
    Sep 2010
    Posts
    64

    Default add new flag to each record of Sugar

    Hi All,


    I want alert system or Flag system like email application , on sugar dashlets so Admin can know which record is New or unread and which record is old or read.

    In simple way the record which is Unread will be display in BOLD and those record which is Read will displayed in normal font.

    Hope you understand my problem

    Can anybody help me on this


    Regards,
    Pravin

  2. #2
    kinshibuya's Avatar
    kinshibuya is offline A Sugar Hero
    Join Date
    Jul 2008
    Location
    brasil
    Posts
    521

    Default Re: add new flag to each record of Sugar

    Quote Originally Posted by pravin.agham View Post
    Hi All,


    I want alert system or Flag system like email application , on sugar dashlets so Admin can know which record is New or unread and which record is old or read.

    In simple way the record which is Unread will be display in BOLD and those record which is Read will displayed in normal font.

    Hope you understand my problem

    Can anybody help me on this


    Regards,
    Pravin
    Hi there,

    how do u plan to set a recod read or unread? using track module?
    And would that be for each user?
    i guess u can accomplish that using a controller for listview (will also extend to dashlet view)
    Priscila Kin Yamamoto Joranhezon
    Phone: +55 61 32010000
    priscila.joranhezon@nct.com.br
    NCT Informática Ltda

  3. #3
    pravin.agham is offline Senior Member
    Join Date
    Sep 2010
    Posts
    64

    Default Re: add new flag to each record of Sugar

    Quote Originally Posted by kinshibuya View Post
    Hi there,

    how do u plan to set a recod read or unread? using track module?
    And would that be for each user?
    i guess u can accomplish that using a controller for listview (will also extend to dashlet view)

    Hi,

    Thanks for reply.

    Yes. That is for each user.
    Each user can login and see unread records in Bold font and read record in normal Font.

    I dont know about Tracking module. can you give me some idea how i accomplish this with the help of track module or other way..


    Regards,
    Pravin

  4. #4
    kinshibuya's Avatar
    kinshibuya is offline A Sugar Hero
    Join Date
    Jul 2008
    Location
    brasil
    Posts
    521

    Default Re: add new flag to each record of Sugar

    i believe the easiest way would be this:
    1. creating an custom field (checkbox, via studio)to determine if the record was read or not.
    2. creating and logickhook after_retrieve (this logic hook would be called when the user accessed the detailview of the record) to update the record and set the customfield = read.
    3 update the get_list_view_data function to put one or more fields bold. (i just know how to accomplish it by changing 1 column, to change the hole row will require template customization)

    If anyone has another idea plz share.
    Priscila Kin Yamamoto Joranhezon
    Phone: +55 61 32010000
    priscila.joranhezon@nct.com.br
    NCT Informática Ltda

  5. #5
    pravin.agham is offline Senior Member
    Join Date
    Sep 2010
    Posts
    64

    Default Re: add new flag to each record of Sugar

    but how could I manage it for all individual user,Is I have to create an table in which I store user id and record Id with status as read or unread?

    I comes to know the Tracking table in Sugar Database in which it store the userId,Module name and record Id.

    we can write a code to looks up the Record id against UserId in this table. If the match found then it means the record is read and if not means the record is unread.

    How is comes up?

    Any guess....

    Regards,
    Pravin

  6. #6
    kinshibuya's Avatar
    kinshibuya is offline A Sugar Hero
    Join Date
    Jul 2008
    Location
    brasil
    Posts
    521

    Default Re: add new flag to each record of Sugar

    i believe you could also accomplish it that way, im not a big fan of working with traking table,
    but it can work. you can also use get_list_view_data to accomplish this
    Priscila Kin Yamamoto Joranhezon
    Phone: +55 61 32010000
    priscila.joranhezon@nct.com.br
    NCT Informática Ltda

  7. #7
    pravin.agham is offline Senior Member
    Join Date
    Sep 2010
    Posts
    64

    Default Re: add new flag to each record of Sugar

    Please give me any solution!!!

    Help me out from this!!

    Pravin

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Active flag
    By nanduruchi in forum Developer Help
    Replies: 1
    Last Post: 2010-08-19, 08:25 AM
  2. Check Flag every Second
    By ardn0001 in forum Developer Help
    Replies: 3
    Last Post: 2010-05-30, 07:54 AM
  3. How to flag leads with attachments in them
    By ryanlumley in forum Help
    Replies: 2
    Last Post: 2010-05-03, 12:04 PM
  4. Gelöscht Flag?
    By c5003153 in forum Deutsche
    Replies: 1
    Last Post: 2007-08-06, 01:28 PM
  5. How to add a new record or update a record in Sugar
    By Arpan_Biswas in forum Developer Help
    Replies: 0
    Last Post: 2006-02-08, 10:47 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
  •