Looking for PowerObjects? Don’t worry, you’re in the right place! We’ve been part of HCL for several years, and we’ve now taken the final step in our acquisition journey: moving our website to the HCL domain. Nothing else is changing – we are still fanatically focused on Microsoft Business Applications!

PowerObjects Blog 

for Microsoft Business Applications


Multi column labels

Post Author: Joe D365 |

In CRM, there is option to display label per section on a form. This can be done easily at design time.

Incase you need to display information in multiple columns with headings for each column, the design time does not support this. To get the desired effect, you can write JS.

multicol1.JPG

The script below has comments and is self explanatory. Use IDE Dev toolbar to get IDs where needed.

 //*****************

//Set Address Title

fncChangeAddressTitle = function()

{

     //get a hande to the tab containing our form fields

     var objTab = document.getElementById('tab0');

     //locate all of the HTML Tables on the Tab

     //select the ID of table in which you want to show column headings. It will stay consistent

    var objTable = document.getElementById('{5779eb54-a281-4f49-924f-7dad336c7107}');
 if (objTable != null)

{         //Get the table element to show headings

         var objCells = objTable.getElementsByTagName("td");

         //Get cell that has Title

         var objCell = objCells[0];

         var strHtml = '<table width=100%><tr><td width=50%><b>Home Address</b></td>

<td width=50%><b>Business Address</b></td></tr></table>'

         objCell.innerHTML = strHtml;
}

}

 

Joe CRM
By Joe D365
Joe D365 is a Microsoft Dynamics 365 superhero who runs on pure Dynamics adrenaline. As the face of PowerObjects, Joe D365’s mission is to reveal innovative ways to use Dynamics 365 and bring the application to more businesses and organizations around the world.

Leave a Reply

Your email address will not be published. Required fields are marked *

PowerObjects Recommends