Creator Change History: Ways to improve

Creator Change History: Ways to improve

Hi Everyone,

Recently been working in developing this change history(an idea from Zoho Forms) - unlike forms that you can this with a click but using Creator, we can use "old" keyword.

The concept I come up with is to put the result in a table however, I think I'm still missing something

Here's the partial code - the resulting value will be sent as email (invoke sendmail)

//AV Pre-Commissioning
AVPrecomm_FLRTD_OLD = "<table border=1 cellspacing=0 cellpadding=0 style=width:25% border-width: thin>";
AVPrecomm_FLRTD_OLD = AVPrecomm_FLRTD_OLD + "<tr style = border-width: thin>" + "<th style=text-align:center>OLD</th>" + "</tr>";
//OLD
for each RecordFileOLD in old.AV_Pre_Commissioning_Inspection
{
OldFlr = RecordFileOLD.AV_Floor;
AVPrecomm_FLRTD_OLD = AVPrecomm_FLRTD_OLD + "<tr style = border-width: thin>";
if ( OldFlr != null ) 
    {
if ( OldFlr != AV_Pre_Commissioning_Inspection.AV_Floor ) 
        {
AVPrecomm_FLRTD_OLD = AVPrecomm_FLRTD_OLD + "<td style=text-align:center>" + OldFlr + "</td>";
        }
    }
AVPrecomm_FLRTD_OLD = AVPrecomm_FLRTD_OLD + "</tr>";
}
AVPrecomm_FLRTD_OLD = AVPrecomm_FLRTD_OLD + "</table>";
//NEW/RETAIN
AVPrecomm_FLRTD_NEW = "<table border=1 cellspacing=0 cellpadding=0 style=width:25% border-width: thin>";
AVPrecomm_FLRTD_NEW = AVPrecomm_FLRTD_NEW + "<tr style = border-width: thin>" + "<th style=text-align:center>NEW/RETAIN</th>" + "</tr>";
for each  RecordFile in input.AV_Pre_Commissioning_Inspection
{
NewList = RecordFile.AV_Floor;
AVPrecomm_FLRTD_NEW = AVPrecomm_FLRTD_NEW + "<tr style = border-width: thin>";
if ( NewList != null ) 
    {
AVPrecomm_FLRTD_NEW = AVPrecomm_FLRTD_NEW + "<td style=text-align:center>" + NewList + "</td>";
    }
AVPrecomm_FLRTD_NEW = AVPrecomm_FLRTD_NEW + "</tr>";
}
AVPrecomm_FLRTD_NEW = AVPrecomm_FLRTD_NEW + "</table>";


sample output 

My problem: what I want is to make a side-by-side table.

      Zoho Campaigns Resources


        • Desk Community Learning Series


        • Digest


        • Functions


        • Meetups


        • Kbase


        • Resources


        • Glossary


        • Desk Marketplace


        • MVP Corner


        • Word of the Day


        • Ask the Experts


          Zoho CRM Plus Resources

            Zoho Books Resources


              Zoho Subscriptions Resources

                Zoho Projects Resources


                  Zoho Sprints Resources


                    Zoho Orchestly Resources


                      Zoho Creator Resources


                        Zoho WorkDrive Resources



                          Zoho CRM Resources

                          • CRM Community Learning Series

                            CRM Community Learning Series


                          • Tips

                            Tips

                          • Functions

                            Functions

                          • Meetups

                            Meetups

                          • Kbase

                            Kbase

                          • Resources

                            Resources

                          • Digest

                            Digest

                          • CRM Marketplace

                            CRM Marketplace

                          • MVP Corner

                            MVP Corner




                            Zoho Writer Writer

                            Get Started. Write Away!

                            Writer is a powerful online word processor, designed for collaborative work.

                              Zoho CRM コンテンツ




                                ご検討中の方