<img height="1" width="1" src="https://www.facebook.com/tr?id=241894266379435&amp;ev=PageView &amp;noscript=1">

Creatio CRM, Creatio education, Creatio customization

  |  
6 Min Read

Adding a Text Rich Custom Note Section in bpm online

We want to add a 'Notes' detail section with the rich text options into a custom section. This would allow users the ability to format note entries, attach related Web URL's and even add images enriching each note entry.

This tab looks like this:

Figure 0. "Attachment and notes" tab on contact page.

Algorithm of realization:

  1. Create object which will represent file object in DataBase (ex. ContactFile object in base packages). This object can be exist.

     

    • You should create new Object and configure it like at next figure:
      Figure 1. Configuration of custom file object.

      IMPORTANT!!! This object must be inherited from File (Base)
       
  2. Add "Notes" field to your section object. It must be multi-line string and have unlimited length 
  3. Add detail to client schema of your page in details section

    Files: {
        schemaName: "FileDetailV2",
        entitySchemaName: "ContactFile", //Name of your object which represent file which connected with you main object
        filter: {
            masterColumn: "Id",
            detailColumn: "Contact"
        }
    },
  4. Add code for "define tab", "attachment detail" and "notes field group" in your page. This code you should insert in different section of your client schema.

     

    {
        "operation": "insert",
        "name": "NotesAndFilesTab",
        "parentName": "Tabs",
        "propertyName": "tabs",
        "index": 3,
        "values": {
            "caption": {"bindTo": "Resources.Strings.NotesAndFilesTabCaption"},
            "items": []
        }
    },
    {
        "operation": "insert",
        "parentName": "NotesAndFilesTab",
        "propertyName": "items",
        "name": "Files",
        "values": {
            "itemType": Terrasoft.ViewItemType.DETAIL
        }
    },
    {
        "operation": "insert",
        "name": "NotesControlGroup",
        "parentName": "NotesAndFilesTab",
        "propertyName": "items",
        "values": {
            "itemType": Terrasoft.ViewItemType.CONTROL_GROUP,
            "items": [],
            "caption": {"bindTo": "Resources.Strings.NotesGroupCaption"}
        }
    },
    {
        "operation": "insert",
        "parentName": "NotesControlGroup",
        "propertyName": "items",
        "name": "Notes", //Name of notes field in your main object
        "values": {
            "contentType": Terrasoft.ContentType.RICH_TEXT,
            "layout": {"column": 0, "row": 0, "colSpan": 24},
            "labelConfig": {
                "visible": false
            },
            "controlConfig": {
                "imageLoaded": {
                    "bindTo": "insertImagesToNotes"
                },
                "images": {
                    "bindTo": "NotesImagesCollection"
                }
            }
        }
    }
  5. Add localizable strings to resources of your client schema:

    1. NotesAndFilesTabCaption - tab caption 

    2. NotesGroupCaption - notes group caption

  6. IMPORTANT!!! If you have some troubles try to clear browser cache, redis, recompile schemas in bpm'online or restart web-site.  

 

For related information on this article, visit the bpm' online community Website.

Topics:   Creatio CRM Creatio education Creatio customization

Cost vs. Value Investment - Selecting the Right CRM

CRM’s Cost vs. Investment, Look Beyond the Price Tag Before You Decide How do you make purchase decisions on business systems such as CRM? I’ll bet you look at the price tag. We get it -- We all need ...
Picture of Dick Wooden Dick Wooden 6 Min Read

Creatio Update 7.15.2

Creatio new features and updates in version 7.15.2 include: Content designer: The Content Designer functionality has been updated. New features allow users to craft more attractive email newsletters. ...
Picture of Dick Wooden Dick Wooden 6 Min Read

Risky Business: What Keeps You up a Night?

Checklist for Risks to Reduce What’s that little voice in the back of your business mind that whispers, “Danger, Will Robinson!”? We all have one. And it’s there for a reason. We shouldn’t ignore it. ...
Picture of Dick Wooden Dick Wooden 6 Min Read