Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

How to create a table in html webresource in CRM 365

Posted on by 550

Hi,

I need to create a table with 2 columns and rows as needed  using CRM  365 .

as Web resource in html .

any easy way

*This post is locked for comments

  • Suggested answer
    shivaram Profile Picture
    shivaram 3,315 on at
    RE: How to create a table in html webresource in CRM 365

    Hi,

    You can achieve like this

    <head>

    <script>

    var tbody = "";

    for(var i=0;i<results.length;i++){

    var row = "";

    var rowStart = "<tr>";

    var name="<td>" +Your Value+"</td>"

    var email="<td>" +Your Value+"</td>";

    var rowEnd = "</tr>";

    var row=name+email;

    tbody = tbody + row;

    }

    </script>

    </head>

    <body>

    <table id="Table1" style='width: 100%;'>

                   <thead>

                       <tr>

                           <th>Name</th>

                           <th>Email</th>

                       </tr>

                   </thead>

                   <tbody id="Tbody1"></tbody>

               </table>

    </body>

    Here, How many times loop will run, then rows will automatically add based on your script.

    Hope it helps you,

    Thanks.

  • Suggested answer
    Rajkumar Rajaraman Profile Picture
    Rajkumar Rajaraman 18,108 on at
    RE: How to create a table in html webresource in CRM 365

    Refer this:

    www.codeproject.com/.../Dynamic-Table-using-html-and-javascript

  • Suggested answer
    M.T. Eikelenboom Profile Picture
    M.T. Eikelenboom 5,241 on at
    RE: How to create a table in html webresource in CRM 365

    This might be a good starting point:

    www.w3schools.com/.../html_tables.asp

    And on web resources:

    msdn.microsoft.com/.../gg309536.aspx

    Otherwise be a bit more specific on what you are looking for.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans