Grid Detail View

General Rules

oEnsure the HTML Editor property is unchecked for the field with the Editor applied.

oReplace 'FIELDNAME' with your component's fieldname.

oNote that function parameters must be in all capital letters.

oIt works better if you surround your Editor field with a Container or Frame.

Conditions

Condition

Add code to this client-side event

Code

Update Record is allowed

canDetailViewSubmit

ckUpdate('GRIDDTL','{Grid.ComponentName}');

View Record is allowed

onDetailViewRender

if(window.location.protocol.indexOf("http")>=0) {
ckInstance('GRIDDTL','FIELDNAME','{Grid.ComponentName}'); // repeat this line as necessary for each field
}

Examples applied to four different textarea fields on same Detail View:

if(window.location.protocol.indexOf("http")>=0) {
ckInstance('GRIDDTL','ADDRESS','{Grid.ComponentName}');
ckInstance('GRIDDTL','DIRECTIONS','{Grid.ComponentName}',’Basic','300','100');
ckInstance('GRIDDTL','COMMENTS','{Grid.ComponentName}','Full');
ckInstance('GRIDDTL','MORECOMMENTS','{Grid.ComponentName}','','','',"uiColor:'#FF0000'");
}

Add Record is allowed

afterDetailViewNewRecord

if(window.location.protocol.indexOf("http")>=0) {
ckInstance('GRIDDTL','FIELDNAME','{Grid.ComponentName}'); // repeat this line as necessary for each field
}