Adding Additional Information to the TopContent of a System Screen using the Client Side API

Hints, Tips and Tricks

Technical Hints Tips and Tricks that cover customization and development using Sage CRM. API usage and coding are covered.

Adding Additional Information to the TopContent of a System Screen using the Client Side API

  • Comments 2
  • Likes

In the image below you can see that I have added some additional HTML to the TopContent of the Person Summary screen.

The following code can be added to the custom content box of a system screen like the PersonBoxLong or CompanyBoxLong.

[code language="javascript"]
<script>
crm.ready(function () {
var myOutPut = "<table border=0><tbody><tr><td class='TOPSUBHEADING'><UL><LI>This is anything I like. </LI><LI> It will appear on the right handside of the TopContent area</LI></UL></td></tr></tbody></table>";
var x = $("#EWARE_TOP").children();
var y = $(x).children();
var z = $(y).children();
var a = $(z).children("td:last");
a.after(myOutPut);

})
</script>
[/code]

It will add the defined output HTML to the right hand side of the existing TopContent and it will do so whether or not someone has already added fields using the TopContentBox screen e.g.PersTopContent.

Comments
  • In the top content of a custom entity, is it possible to convert the name to a link using the client side api?

    thanks in advance

  • You would have to use a mix of the clientside API and some JQuery/Plain Old JavaScript to do that.  I don't think there is a specific method.