Skip to main content
December 22, 2022
Solved

How to make comment history

  • December 22, 2022
  • 8 replies
  • 0 views

In my application there is vendor who comment when submitting a form and when it comes towards reviewer the reviewer comment again.So I want to show it as history what vendor commented and what reviewer commented.

    Best answer by prafuls972

    create another record using the database and name it a comment. Then in the comment record provide mapping to your primary record using a many-to-one relationship. In case you are in your primary record then define the one-to-many relationship. You have to define mapping only at one record. After this every time a comment is written then save it as a new row in the comment record. Use the write to record smart service in the process model.

    Now coming to views create a summary view, and comment view. In the comment, view passes the PK of a record as a rule input. Then create read-only grid using a!recorddata(recordtype:comment, filters: query filter (field:"FK",operator:"=",value:ri!ruleinput))

    These comments must be used as a view on the record. When creating the primary record grid provide redirection directly to the summary view and comment view. As sites contain only 5 tabs and comments are not your main functionality.  Only define those records on separate tabs in the site which is primary/separate functionality unless the business users want to see it on a separate tab.

    8 replies

    prafuls972
    December 22, 2022

    you can implement using another table comment. In which columns are PK, FK, comment, comment_type, created_by, created_on, is_latest. Every time a comment is written then save it as a new row. In case if comment is null don`t write in database. 

    May 9, 2023
    [deleted]
    harshitb6843
    May 9, 2023

    chenyangz0001
    December 23, 2022

    The comments are supposed to be used on record type views or interfaces on a site?

    prafuls972
    December 23, 2022

    create another record using the database and name it a comment. Then in the comment record provide mapping to your primary record using a many-to-one relationship. In case you are in your primary record then define the one-to-many relationship. You have to define mapping only at one record. After this every time a comment is written then save it as a new row in the comment record. Use the write to record smart service in the process model.

    Now coming to views create a summary view, and comment view. In the comment, view passes the PK of a record as a rule input. Then create read-only grid using a!recorddata(recordtype:comment, filters: query filter (field:"FK",operator:"=",value:ri!ruleinput))

    These comments must be used as a view on the record. When creating the primary record grid provide redirection directly to the summary view and comment view. As sites contain only 5 tabs and comments are not your main functionality.  Only define those records on separate tabs in the site which is primary/separate functionality unless the business users want to see it on a separate tab.

    June 21, 2023
    [deleted]