1. Script for creating a new record

    Article: AN0001904Updated:

    Creating a new record is very simple. You have to first create record instance, then fill it with data and finally save it into the database.
    var cl = ...read the class...
    var dr = OG.DataRow.CreateNew( cl.Id);
    dr['requestor'] = OG.Person.GetLoginPerson().ToPersonInfo();
    dr.['submission_date'] = OG.DateTime.Now;
    dr['regDel'] = true;
    OG.DataRow.SaveData(dr);

×