Share via


RecordSortedList.newmethod Method

Definition

Overloads

newmethod(Int32)

Initializes a new instance of the Object class.

newmethod(Int32, Common)

newmethod(Int32)

Initializes a new instance of the Object class.

public:
 void newmethod(int num1);
public void newmethod (int num1);
override this.newmethod : int -> unit
Public Sub newmethod (num1 As Integer)

Parameters

num1
Int32

Remarks

The list can contain records of the type that is specified by the tableId parameter.

The following example uses a RecordInsertList object to insert three records in a single database operation.

{ 
    RecordSortedList recordSortedList; 
    CustTable        custTable; 
    recordSortedList = new RecordSortedList(tablenum(CustTable)); 
    recordSortedList.sortOrder(fieldnum(custTable,AccountNum)); 
    ttsbegin; 
    // Prepare record #1 for insertion. 
    custTable.AccountNum = '1000'; 
    custTable.CreditMax = 10000.0; 
    recordSortedList.ins(custTable); 
    // Prepare record #2 for insertion. 
    custTable.AccountNum = '2000'; 
    custTable.CreditMax = 500.0; 
    recordSortedList.ins(custTable); 
    // Prepare record #3 for insertion. 
    custTable.AccountNum = '3000'; 
    custTable.CreditMax = 9999999.9; 
    recordSortedList.ins(custTable); 
    // All 3 records inserted in one database operation. 
    recordSortedList.insertDatabase();   
    ttscommit; 
}

Applies to

newmethod(Int32, Common)

public:
 void newmethod(int _tableId, Microsoft::Dynamics::Ax::Xpp::Common ^ _table);
public void newmethod (int _tableId, Microsoft.Dynamics.Ax.Xpp.Common _table);
override this.newmethod : int * Microsoft.Dynamics.Ax.Xpp.Common -> unit
Public Sub newmethod (_tableId As Integer, _table As Common)

Parameters

_tableId
Int32
_table
Common

Applies to