Advance Data Types

Advance Data Types

1.List Class
2.Map Class
3.Set Class
4.Container
5.RecordSortedList
6.RecordInsertList
7.Temp table.

See the attached doc and xpo for more details about the topics

Advance DataTypes.docx

Insert records in a table using RecordInsertList

static void InsertRecordInDbusingList(Args _args)
{
    RecordInsertList insertList = null;
    Table1 table1;
   
    insertList = new RecordInsertList(tablenum(Table1));
   
    table1.Field1 = “1”;
    table1.Field2 = “2”;
    table1.Field3 = “3”;
   
    insertList.add(table1);
   
    table1.Field1 = “4”;
    table1.Field2 = “5”;
    table1.Field3 = “6”;
   
    insertList.add(table1);
   
    ttsbegin;
    insertList.insertDatabase();
    ttscommit;
}