ckInstance()

ckInstance('ctype','FIELDNAME','componentType'[,'toolbar','width','height',"customsettings"]);

Examples

ckInstance('GRIDROW','MYCOMMENTS','{Grid.ComponentName}');

ckInstance('GRIDROW','MYCOMMENTS','{Grid.ComponentName}','Basic','500','100',"uiColor:'red'");


 'ctype'

GRIDDTL – The detail section of a grid.

GRIDROW – The grid row section of a grid.

GRIDNEW – A blank grid record.

DIALOG1 – The Alpha Five V10 style dialog component (no instructions in this Help on usage for this option)

DIALOG2 – The Alpha Five V11 "Ajax" style dialog component

UX – The Alpha Anywhere (V12) "Ajax" style dialog component

FIELDNAME

The field or control name from your grid or dialog, including the quote marks. Must be ALL CAPS!

componentType

'{Dialog.ComponentName}' if the component is a Dialog or UX component

'{Grid.ComponentName}' sends the “component name” to the function and should be entered exactly as shown.

toolbar

Can be blank, 'Alpha', 'Full', or 'Basic'. 

Tool bars are defined in the config_alphafive.js file. You can define your own toolbars in addition to the few listed above.

width

width is a value in pixels such as '500' or '1000'.

height

height is a value in pixels auch as '100' or '50'.

customsettings

customsettings can be any configuration setting from CKEditor's Javascript configuration API. Examples are "uiColor : '#FF0000',readOnly : true" or "contentsCss : 'css/a5_ckeditor.css'". Use double quotes as shown if you define this parameter.

ckUpdate()

ckUpdate('ctype','{Dialog.ComponentName}');

Examples

ckUpdate('DIALOG2','{Dialog.ComponentName}');

ckUpdate('GRIDROW','{Grid.ComponentName}')

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


'ctype'

GRIDDTL – The detail section of a grid.

GRIDROW – The grid row section of a grid.

DIALOG2 - Dialog2 or UX component