5-1-4-5. Set Default Value when Adding Column
Set the default value for a record when a new row is added in the table.
Apex class for extending page : SkyEditorClass
"ID" property of the target DataTable : dataTableSet1
global class MyExtender extends SkyEditor2.Extender { SkyEditorClass extension; SkyEditorClass.dataTableSet1 contacts; public MyExtender(SkyEditorClass extension) { this.extension = extension; this.contacts = extension.dataTableSet1; } //Set default value global override void afterAdd(SObject newObj){ newObj.put('Field1__c','For additional input '); } // TestMethod private static testMethod void testMyExtender() { Account acc = new Account(Name='Test'); insert acc; SkyEditorClass ext = new SkyEditorClass(new ApexPages.StandardController(acc)); MyExtender extender = new MyExtender(ext); contacts.add(); } }