Thursday, 12 July 2018

Creating Tables in AL.Seminar Project(Dynamics NAV 2018/ Business Central) PART 2

If you read through our PDF in part one, you discover we had to modify tables 97,279, and 280 before creating the seminar room table. In this part we add code to our project to modify the tables i stated above as per the requirements in the pdf.
Simply copy and paste this code at the end of the file we created in part one.

// Modifying table 97 Comment Line. We cant modify fields in AL
//This part preceeds the seminar room table
tableextension 50005 CommentLineExtension extends "Comment Line"
{
    fields
    {
        // Add changes to table fields here
        field(50000;"Table Names";Option)
        {
            OptionMembers = ";Seminar Room" ;
        }
    }
   
    var
        myInt : Integer;
}
//Modifying table Extended Text Header (279)
tableextension 50010 ExtendedTextHeaderExtension extends "Extended Text Header"
{
    fields
    {
        // Add changes to table fields here
         field(50000;"Table Names";Option)
        {
            OptionMembers = ";Seminar Room" ;
        }

    }
   
    var
        myInt : Integer;
}
//Modifying table Extended Text Line (280)
tableextension 50015 ExtendedTextLineExtension extends "Extended Text Line"
{
    fields
    {
        // Add changes to table fields here
         field(50000;"Table Names";Option)
        {
            OptionMembers = ";Seminar Room" ;
        }
    }
   
    var
        myInt : Integer;
}

No comments:

Post a Comment