Skip to Main Content

Standard Comments Template

  • Nuno Gomes 6/8/2025
    Hey, what's up?
  • Luis Eduardo 6/9/2025
    I need some help.
  • Luis Eduardo 6/10/2025
    What is my schedule?
  • Nuno Gomes 6/11/2025
    For next week?
  • Luis Eduardo 6/12/2025
    Yes.
  • Luis Eduardo 6/13/2025
    And next month too.
  • Nuno Gomes 6/14/2025
    Give me a minute.

Comments Template Modified

  • Nuno Gomes 6/8/2025
    Hey, what's up?
  • Luis Eduardo 6/9/2025
    I need some help.
  • Luis Eduardo 6/10/2025
    What is my schedule?
  • Nuno Gomes 6/11/2025
    For next week?
  • Luis Eduardo 6/12/2025
    Yes.
  • Luis Eduardo 6/13/2025
    And next month too.
  • Nuno Gomes 6/14/2025
    Give me a minute.

Chat region

  • Gabriel Batistuta 2.9 years ago
    Hey, what's up?
  • Filippo Inzaghi 2.9 years ago
    I need some help.
  • Filippo Inzaghi 2.9 years ago
    What is my schedule?
  • Francesco Totti 2.9 years ago
    For next week?
  • Filippo Inzaghi 2.9 years ago
    Yes.
  • Filippo Inzaghi 2.9 years ago
    And next month too.
  • Gabriel Batistuta 2.9 years ago
    Use the button next to the title to clear the newest chat messages :)
  • Luis Eduardo 4 hours ago
    Hi
  • Luis Eduardo 4 hours ago
    Hello

Put this in your page CSS > Inline section, static CSS file, etc.

/* BEGIN comments/chat region styles */
.t-Chat .t-Chat--own .t-Comments-icon {
  margin-right: 0;
  margin-left: 12px;
}

.t-Chat .t-Chat--own {
  flex-direction: row-reverse;
}

.t-Chat .t-Chat--own .t-Comments-body {
  align-items: flex-end;
}

.t-Chat .t-Chat--own .t-Comments-comment:after {
  border-left-color: rgba(130, 130, 130, 0.3);
  border-right-color: rgba(0,0,0,0);
  right: none;
  left: 100%;
}
/* END comments/chat region styles */

Create a Classic Report with a query like the one below. Pay attention to the comment_modifiers column. It should have the t-Chat--own class in case it's own message. This will be used to position the messages on the right.

select user_name,
       comment_text,
       comment_date,
       apex_string.get_initials(user_name) user_icon,
       null                     as actions,
       null                     as attribute_1,
       null                     as attribute_2,
       null                     as attribute_3,
       null                     as attribute_4,
       case is_own
        when 'Yes' then 't-Chat--own'
        else null
       end comment_modifiers
  from dummy_data
  order by comment_date asc 

Add the t-Chat class to your Classic Report Appearance > CSS Classes field

Link to my blog Creating a Chat region in Oracle APEX