ThachNguyen/ibsheet7-dataset huggingface dataset:
IBSheet7 Method, Event API Document
1.  IBSheet Events  
1.1 Using events  
IBSheet offers a wide range of events to support users to customize or configure a function as they 
want. 
function Object ID _Event name (Parameter , …) { }  
For example, if you need to use OnChange event for a new function, you may create the following 
statement, assuming the IBSheet ObjectID is "mySheet":  
function mySheet_OnChange(Row, Col, Value) {  
   alert(Row + "," + Col + " values have been updated.");  
}
The followings are the list of events offered by IBSheet:  
2.2 Event List  
OnAfterColumnMove Event  
 Purpose  
Event fires when a user has successfully moved a column using mouse drag or MoveColumnPos 
function.
 Syntax  
Syntax  function Object ID_OnAfterColumnMove(Col, NewPos) { }  
 Parameters  
Parameter  Type Description  
Col Long Index of the original column  
NewPos  Long Index of the new column location
 Example  
//Event fires after a column is moved.  
function mySheet_OnAfterColumnMove(Col, NewPos) {  
    alert(Col + " location  has been moved to " + NewPos + " location ..”); 
} 
 See Also  
OnBeforeColumnMove  , MoveColumnPos  , MoveColumnFail
OnAfterEdit Event  
 Purpose  
Event fires promptly after a cell value is edited.  
 Syntax  
Syntax  function Object ID _OnAfterEdit (Row, Col) { }
 Parameters  
Parameter  Type Description  
Row Long Row index of the cell  
Col Long Column index of the cell  
 Example  
//Event fires promptly after a cell value is edited.  
function mySheet_OnAfterEdit(Row, Col) {  
    alert(" Exit editing ."); 
}
 See Also  
OnBeforeEdit  
OnAfterExpand Event  
 Purpose  
Event fires when you collapse or expand a tree -type sheet by clicking + or - buttons.
 Syntax  
Syntax  function ObjectID_OnAfterExpand(Row, Expand) { }  
 Parameters  
Parameter  Type Description  
Row Long Row index of the cell  
Expand  Long 0  :  Expand  
2  :  Collapse
 Example  
function mySheet_OnAfterExpand(Row, Expand) {  
   alert( Row + "Row, "+ Expand +"'s status");  
} 
 See Also  
OnBeforeExpand , RowExpand , RowLevel , ShowTreeLevel
OnBeforeCheck Event  
 Purpose  
Event fires promptly before user starts editing a checkbox value (by mouse -clicking or pushing 
the space button) . 
As the e vent timing is  immediately before checkbox is updated, conditional processing is 
available upon checking.  
The following data types  are supported : 
- DelCheck  
- CheckBox  
- Radio 
- DummyCheck
 Syntax  
Syntax  function Object ID_OnBeforeCheck(Row, Col) { }  
 Parameters  
Parameter  Type Description  
Row Long Row index of the cell  
Col Long Column index of the cell
 Example  
//Event fires when a box is about to be checked.  
//Display a warning window if a row to check is an Insert row.  
function mySheet_OnBeforeCheck(Row, Col) {  
if(mySheet.GetCellValue(Row,"status") == "I") {  
         alert("Check : " + Row + " is an Insert row.");  
} 
 } 
OnBeforeColumnMove Event  
 Purpose  
Event fires when the user starts moving a column using mouse or MoveColumnPos method . You 
can block column movements by using MoveColumnFail(1) method .
 Syntax  
Syntax  function Object ID_OnBeforeColumnMove(Col, NewPos) { }  
 Parameters  
Parameter  Type Description  
Col Long Index of the source column  
NewPos  Long Index of the target column location
 Example  
//Cancel column movement if column 0 is mo ved to a location past column 
3 
function mySheet_OnBeforeColumnMove(Col, NewPos) {  
   if(Col==0 && NewPos > 3) { 
mySheet.MoveColumnFail(1);  
} 
} 
OnBeforeEdit Event  
 Purpose  
Event fires immediately before a cell value is edited .
 Syntax  
Syntax  function Object ID _OnBeforeEdit (Row, Col) { }  
 Parameters  
Parameter  Type Description  
Row Long Row index of the cell  
Col Long Column index of the cell
 Example  
//Event fires after a column is moved.  
function mySheet_OnBeforeEdit(Row, Col) {  
    alert("Start editing ."); 
} 
OnBeforeExpand Event  
 Purpose  
In a tree structure , event fires when a tree expands or collapses upon clicking.
 Syntax  
Syntax  function Object ID _OnBeforeExpand (Row, Expand) { }  
 Parameters  
Parameter  Type Description  
Row Long Row index of the cell  
Expand  Long 0  :  Expand  
2  :  Collapse
 Example  
function mySheet_OnBeforeExpand(Row, Expand) {  
   if(Row == 1 && Expand == 2) {  
       mySheet.SetAllowExpand(0);  
       alert("You can expand Row 1 but cannot collapse it.");  
 } 
} 
OnBefore Paste Event 
 Purpose  
Event fires promptly before data are pasted into IBSheet.
 Syntax  
Syntax  function Object ID _OnBefore Paste(text) { } 
 Parameters  
Parameter  Type Description  
text String  Text to paste into IBSheet
 Remarks  
This event will fire  before data are pasted : you can cancel past ing or edit the text before pasting 
as necessary. Past ing will be calceled in the event of a false return . When a string is returned, it 
will replace the paste target text.  
 Example  
function mySheet_OnBefore Paste(text) { 
   if(text == “not allow text ”) { 
alert("Past ing is cancelled.");  
return false;  
 } 
}
function mySheet_OnBefore Paste(text) { 
   if(text == “not allow text ”) { 
return “allow text ”; 
 } 
} 
OnBefore Save Event 
 Purpose  
Event fires promptly before Ajax communication when a saving method is called.
 Syntax  
Syntax  function Object ID _OnBefore Save() { } 
 Parameters  
Parameter  Type Description  
N/A
 Remarks  
Event fires before Ajax communication when DoSave or DoAllSave method is called.  
Use this event when you want to customize the saving waiting image . 
 Example  
function mySheet_OnBefore Save() { 
   alert("Saving.");  
}
OnBefore Search  Event 
 Purpose  
Event fires promptly before Ajax communication when a search method is called.  
 Syntax  
Syntax  function Object ID _OnBefore Search () { }
 Parameters  
Parameter  Type Description  
N/A 
 Remarks  
Event fires before Ajax communication when DoSearch, DoSearchChild, DoSearchPaging or 
DoRowSearch method is called.  
Use this event when you want to customize the search waiting image.
 Example  
function mySheet_OnBefore Search () { 
   alert("Search is in progress.");  
} 
OnCellDropEnd  Event 
 Purpose  
Event fires upon drop after the user starts dragging cells
 Syntax  
Syntax  function  Object ID _OnCellDropEnd (FromSheet, FromRow, 
FromCol, ToSheet, ToRow, ToCol, X, Y ) { } 
 Parameters  
Parameter  Type Description  
FromSheet  Object  Drag location sheet object  
FromRow Long Row index of the drag location sheet object  
FromCol  Long Column index of the drag location sheet object  
ToSheet  Object  Drop location sheet object  
ToRow  Long Row index of the drop location sheet object  
ToCol Long Column index of the drop location sheet object  
X Long X coordinate of the drop location  
Y Long Y coordinate of the drop location
 Example  
Set the drag cell value into the  cell at the  drop target location . 
function mySheet_On CellDropEnd (FromSheet, FromRow, FromCol, ToSheet, ToRow, 
ToCol)  { 
var bValue = ToObj.GetCellValue(ToRow, ToCol);  
var aValue = Obj.GetCellValue(Row, Col);  
if (ToRow < 0) {  
ToRow = ToObj.DataInsert(ToRow);  
ToCol = ToObj.MouseCol();  
} 
if (ToObj && ToRow > 0 && ToCol >= 0 ) { 
ToObj.SetCellValue(ToRow, ToCol, aValue);  
if (bValue) {  
Obj.SetCellValue(Row, Col, bValue);  
} else {  
Obj.SetCellValue(Row, Col, "");  
} 
} 
} 
OnChange Event  
 Purpose  
Event fires when the cell editing is complete d and the p revious value has been updated.  
In addition to value update by the user, other methods may also fire this event for each of the 
updated Checkbox in each data row, such as when CellValue method  is used, when the Check All 
checkbox value has been updated in the header area, or CheckAll fun ction is used. If the flag 
parameter value of CellValue method  is set as 0, this event will not fire.
 Syntax  
Syntax  function  Object ID _OnChange (Row, Col, Value , OldValue, 
RaiseFlag ) { } 
 Parameters  
Parameter  Type Description  
Row Long Row index of the cell 
Col Long Column index of the cell  
Value String  Updated value ; 
Value used  for saving without formatting  
OldValue  String  Value before update  
RaiseFlag  Integer  Event fire option  
(0: manual editing, 1: method, 2: paste)
 Example  
function mySheet_OnChange(Row, Col, Value) {  
if(Col == 3 && mySheet.GetCellValue(Row, 2) == 'Korean won' && Value 
== '9') {  
        alert("You should select code 10 for Korean won.");  
    } 
} 
OnChange Filter Event 
 Purpose  
Event fires when a cell value in the filter row or an option has been updated.   
In addition to value editing by the user, use of SetFilterOption function also fires this event.
 Syntax  
Syntax  function Object ID _OnChange Filter() { } 
 Parameters  
Parameter  Type Description  
None
 Example  
//When SearchMode is set as 3, search if filtering condition is changed  
function mySheet_OnChange Filter() { 
 // Filter row QueryString update  
 var fp = mySheet.GetFilterParam(0,1);  
 var info = { PageParam: " page", Param:  "id=ibleaders&seq=1& " + fp}; 
mySheet .DoSearch Paging ("list.jsp", info); 
} 
OnChangeSum Event  
 Purpose  
Event fires when t he value in the sum row changes .
 Syntax  
Syntax  function Object ID _OnChangeSum (Row,Col) { } 
 Parameters  
Parameter  Type Description  
Row Long Index of the row above the sum row 
Col Long Col index of the updated cell
 Example  
function mySheet_OnChangeSum(Row ,  Col ) { 
//When the value in the sum row changes, display calculation result in 
another cell of the same row : 
    mySheet.SetSumText(2, mySheet.GetSumValue( Col) / 100 + " %"); 
} 
OnCheckAllEnd  Event  
 Purpose  
Event fires when CheckAll action is completed for a checkbox type column .
 Syntax  
Syntax  function Object ID _OnCheckAllEnd (Col, Value ) { } 
 Parameters  
Parameter  Type Description  
Col Integer  Index of the column  
Value Boolean  Checked or not
 Example  
function mySheet_On CheckAllEnd (Col, Value ) { 
    alert(CheckAll action for Col + "th column has been completed.");  
} 
OnClick Event  
 Purpose  
Event fires when user clicks a cell in data area.
 Syntax  
Syntax  function Object ID_OnClick (Row, Col, Value, CellX, CellY, CellW, 
CellH) { }  
 Parameters  
Parameter  Type Description  
Row Long Row index of the cell  
Col Long Column index of the cell  
Value String  Cell value where the event fired  
CellX Long X coordinate of the cell  
CellY Long Y coordinate of the cell  
CellW Long Width of the cell  
CellH Long Height of the cell
 Example  
function mySheet_OnClick(Row, Col, Value, CellX, CellY, CellW, CellH) {  
//Set to move to another page when a row is clicked  
    location.href = "link.jsp?key=" + Value;  
} 
OnDblClick Event  
 Purpose  
Event fires when the user double clicks a cell in the data area.
 Syntax  
Syntax  function Object ID _OnDblClick (Row, Col, Value, CellX, CellY, 
CellW, CellH) { }  
 Parameters  
Parameter  Type Description  
Row Long Row index of the cell  
Col Long Column index of the cell  
Value String  Value of the cell  
CellX Long X coordinate of the cell  
CellY Long Y coordinate of the cell  
CellW Long Width of the cell  
CellH Long Height of the cell
 Example  
function mySheet_OnDblClick(Row, Col, CellX, CellY, CellW, CellH) {     
//Set to move to another page when a row is double -clicked  
location.href = "link.jsp?key=" + mySheet.GetCellValue(Row, Col + 1) ;  
} 
OnDebugMsg Event  
 Purpose  
Event fires when a debugging message occurs during any processing.  
If ShowDebugMsg property is set as 0, debugging message will be called through this event. If 
the property is set as 1, the message will appear in an pop -up window for the user to see.
 Syntax  
Syntax  function Object ID _OnDebugMsg (Msg) { }  
 Parameters  
Parameter  Type Description  
Msg String  Debug message
 Example  
function mySheet_OnDebugMsg(Msg) {  
txtErr.value = txtErr.value + " \n>>>>" + Msg;  
} 
//Create a text area to display debug message  
<textarea name="txtErr" rows=10 cols=70></textarea>
OnDecr yption Event 
 Purpose  
Event fires for each cell or EtcData element when you run a search and need to edit data before 
they populate cells , or interface the data with encryption module.  
. 
 Syntax  
Syntax  function Object ID _OnDecr yption(Row,Col, SaveName ,Value ){} 
 Parameters  
Parameter  Type Description  
Row Long Row index of the cell ( -1 for EtcData)  
Col Long Col index of the cell ( -1 for EtcData)  
SaveName  String  SaveName of the column or KEY of EtcData  
Value String  Data to populate cell s or EtcData Value
 Remarks  
If you need to display B instead of the actual value A you retrieved through search,   
or if data are encrypted and need decryption to display, you can use this event.  
See the source below for detailed instructions.  
 Example  
function mySheet_ OnDecr yption(Row, Col, SaveName, Value){  
/* Call and return the Dec user method  which performs decryption using 
value as a parameter.  
  return Dec(Value);  
}
OnDownFinish  Event 
 Purpose  
Event fires when excel or text file download is complete.  
. 
 Syntax  
Syntax  function Object ID _OnDownFinish (downloadType, result ){} 
 Parameters  
Parameter  Type Description  
downloadType  String  File format between excel and text : “EXCEL ” or 
“TEXT” 
result Boolean  Download error flag . Success: true, Failure: false
 Remarks  
 Example  
function mySheet_OnDownFinish(downloadType, result) {  
alert(downloadType + 'Downlo ad is complete. Download result : ' + 
result);  
}
OnDragStart  Event 
 Purpose  
Event fires when the user starts dragging one or more rows or cells.  
 Syntax  
Syntax  function Object ID _OnDragStart (Row, Col ) { }
 Parameters  
Parameter  Type Description  
Row Long Row index of the drag location  
Col Long Column index of the drag location  
 Example  
var dragValue = ""; 
function mySheet_On DragStart (Row, Col ) { 
// Save the CellValue of the position where drag started  
dragValue = mySheet.GetCellValue(Row, Col)  ; 
}
OnDropEnd  Event 
 Purpose  
Event fires upon drop after the user starts dragging one or more rows.  
Among event parameters, the Type parameter will deliver  detailed drop location value  in a tree 
structure.  
Type parameter may have the following values:  
Type Description  
1 Upper part of the Drop location row  
2 Middle part of the Drop location row  
3 Lower  part of the drop location row
 Syntax  
Syntax  function  Object ID _OnDropEnd (FromSheet, FromRow, ToSheet, 
ToRow, X, Y, Type ) { } 
 Parameters  
Parameter  Type Description  
FromSheet  Object  Drag location sheet object  
Row Long Row index of the drag location sheet object  
ToSheet  Object  Drop location sheet object  
ToRow  Long Row index of the drop location sheet object  
X Integer  X coordinate of the drop location  
Y Integer  Y coordinate of the drop location  
Type Integer  Drop location type in case of a tree structure
 Example  
// Add the drag row to the drop location and delete from the drag sheet.  
function mySheet_On DropEnd (FromSheet, FromRow, ToSheet, ToRow, X, Y, Type)  { 
var NewRow = ToObj.DataInsert(ToRow);  
for (var c = 0; c <= Obj.LastCol(); c++) {  
ToObj.SetCellValue(NewRow, c, Obj.GetCellValue(Row, c));  
} 
Obj.RowDelete(Row);  
} 
OnEditValidation Event  
 Purpose  
Event fires when cell editing completes so that validation check may run for the updated value.
If validation fails, set as ValidateFail(1) and revert to the original values.  
 Syntax  
Syntax  function Object ID _OnEditValidation (Row, Col, Value) { }
 Parameters  
Parameter  Type Description  
Row Long Row index of the cell  
Col Long Column index of the cell  
Value Variant  This value is used for saving without a designated 
format.  
 Example  
function mySheet_OnEditValidation(Row, Col, Value) {  
switch(Col) {  
  case 2:  
if(Value=="Korean won" && mySheet.GetCellValue(Row,Col+1) >= 
10000000) {  
alert("When the currency is Korean won, the amount cannot exceed ten 
million Korean won.");  
mySheet.ValidateFail(1);  
} else if(Value=="Foreign currency" && mySheet.GetCellValue(Row,Col+1) < 
10000000) {  
alert("When the currency is a foreign one, the amount must be ten 
million or greater.");  
mySheet.ValidateFail(1) ; 
} 
} 
}
OnEncr yption Event 
 Purpose  
When IBSheet saves data , any change will be adjoined into a  QueryString. This event may be 
used when the data requires encryption or the user needs to change a value  before saving.  
 Syntax  
Syntax  function Object ID _OnEncr yption(Row, Col, Value) { }
 Parameters  
Parameter  Type Remark  
Row Long Row Index of the cell  
Col Long Col Index of the cell  
SaveName  String  SaveName of the column  
Value String  Current data in the cell  
 Remarks  
If you need validation check before saving data, you may use OnValidation event to determine 
whether to save the data or not  if validation fails . However, if you must save the data regardless 
of the validation result by changing any invalid  values  found during validation , you may use this 
event. See the source below for detailed instructions.
 Example  
function mySheet_OnEncr yption(Row, Col, SaveName, Value){  
/* Call and return the Enc user function which performs encryption using the 
values to save as a parameter.  
  return Enc(Value);  
} 
OnFilterEnd Event 
 Purpose  
Event fires after filtering is completed.
 Syntax  
Syntax  function Object ID _ OnFilter End(RowCnt, FirstRow) { }  
 Parameters  
Parameter  Type Description  
RowCnt Long Number of rows after filtering  
FirstRow  Long Index of the first row post filtering
 Example  
function mySheet_  OnFilter End(RowCnt, FirstRow ) { 
} 
OnHScroll  Event 
 Purpose  
Event fires upon horizontal scroll.
 Syntax  
Syntax  function Object ID _OnHScroll (hpos, oldhpos, isLeft, isRight, 
section ) { } 
 Parameters  
Parameter  Type Description  
hpos Long Horizontal scroll position  
oldhpos  Long Previous horizontal scroll position  
isLeft Boolean  Whether the horizontal scroll bar is located at the 
far left  
isRight  Boolean  Whether the horizontal scroll bar is located at  the 
far right  
section  Int Scroll section value (Always return 1)
 Example  
function mySheet_ OnHScroll (hpos, oldhpos, isLeft, isRight, section ) { 
} 
OnKeyDown Event  
 Purpose  
Event fires when a cell value is being edited or a key is pressed on a selected cell. 
As KeyCode is an ASCII value, transcode before use.
 Syntax  
Syntax  function Object ID _OnKeyDown (Row, Col, KeyCode, Shift) { }  
 Parameters  
Parameter  Type Description  
Row Long Row index of the cell  
Col Long Column index of the cell  
KeyCode  Integer  ASCII value of the keyboard  
Shift Integer  1 : When a Shift key is pressed  
2 : When a Ctrl key is pressed  
0 : Others
 Example  
function mySheet_ OnKeyDown (Row, Col, KeyCode, Shift) {  
    //If the Enter key is pressed in the last column, put focus on the first 
part of the next row.  
    if(KeyCode == 13 && Col == mySheet.LastCol()) {  
mySheet.SelectCell(Row + 1, 2);  
} 
} 
OnKeyUp Event  
 Purpose  
Event fires when a cell value is being edited or a pushed key is unpressed on a selected cell. This 
event immediately follows  OnKeyDown event.  
As KeyCode is an ASCII value, transcode before use.
 Syntax  
Syntax  function Object ID _OnKeyUp (Row, Col, KeyCode, Shift) { }  
 Parameters  
Parameter  Type Description  
Row Long Row index of the cell  
Col Long Column index of the cell  
KeyCode  Integer  ASCII value of the keyboard  
Shift Integer  1 : When a Shift key is pressed  
2 : When a Ctrl key is pressed  
0 : Others
 Example  
function mySheet_OnKeyUp(Row,Col,KeyCode,Shift) {  
    //If the Enter key is pressed in the last column, put focus on the first 
part of the next row.  
    if(KeyCode ==13 && Col == mySheet.LastCol()  
&& Row < mySheet.RowCount()) {  
mySheet.SelectCell( Row + 1, 2);  
  } 
} 
OnLoadData  Event 
 Purpose  
Event f ires when the data received from the server are loaded to IBSheet  after a data search 
method or a data save method is called.  
This event can be used when the data received from the server requires editing or interface with 
encryption module.
 Syntax  
Syntax  function Object ID _OnLoadData (Data) { } 
 Parameters  
Parameter  Type Description  
Data String  Search XML or JSON charcter string/object
 Example  
function mySheet_On LoadData (data) { 
    // Decryption  
var decrypt_data = fnDecryption(data);  
// Return decrypted data  
return decrypt_data;  
}
OnLoadExcel  Event 
 Purpose  
Event fires after LoadExcel has been completed .  
 Syntax  
Syntax  function Object ID _OnLoadExcel (result) { }
 Parameters  
Parameter  Type Description  
result Boolean  Loading result. Success : true, Failure : false  
 Example  
function mySheet_On LoadExcel (result) { 
  if(result) {  
    alert(‘Excel file loading is completed.');  
  } else {  
alert(‘An error occured while loading an excel file.');  
} 
}
OnLoadText  Event 
 Purpose  
Event fires after LoadText has been completed . 
 Syntax  
Syntax  function Object ID _OnLoadText (result) { }
 Parameters  
Parameter  Type Description  
result Boolean  Loading result. Success : true, Failure : false  
 Example  
function mySheet_On LoadText(result) { 
  if(result) {  
    alert(‘Text file loading is completed.');  
  } else {  
alert(‘An error occured while loading a text file.');  
} 
}
OnMessage Event  
 Purpose  
In case SetShowMsgMode  is set as 0, a confirmation or warning message will fire this event 
instead of displaying a system pop -up. In case the trigger was a confirmation message, IsConfirm 
= 1. Always use ConfirmOK function to return a response to the sheet for such cases.  
 Syntax  
Syntax  function Object ID _OnMessage (Msg, Level, IsConfirm) { }
 Parameters  
Parameter  Type Description  
Msg String  Message  
Level String  Message level code  
"U" – message is for end users  
"E" – message is for developers  
"D" – message is concerned with server 
connection function page  
"X" – MXL parser message of inquiry or save XML  
IsConfirm  Boolean  Confirmation message  or not  
 Example  
//Configure the message mode.  
mySheet.ShowMsgMode=0;
//Process OnMessage event.  
function mySheet_OnMessage(Msg, Level, IsConfirm) {  
//Display message  
    var win_result = window.showModalDialog(  
 "sheet_message.jsp?Msg=" + Msg + "&IsConfirm=" + IsConfirm,  
        'modalResult',  
        'dialogWidth:200px;dialogHeight:200px;center:yes;help:no;status:no;');  
    //Return th e message response to the sheet.  
    if(IsConfirm) mySheet.ConfirmOK(win_result);  
} 
OnMouseDown Event  
 Purpose  
Event fires when mouse is clicked. 
To find out cell location on which the mouse is clicked, use MouseRow and MouseCol function s.
 Syntax  
Syntax  function Object ID _OnMouseDown (Button, Shift, X, Y) { }  
 Parameters  
Parameter  Type Description  
Button  Integer  0 : Left, 2 :  Right (Mouse button)  
Shift Integer  1 : When a Shift key is pressed  
2 : When a Ctrl key is pressed  
0 : Others  
X Long X coordinate  
Y Long Y coordinate
 Example  
function mySheet_OnMouseDown(Button, Shift, X, Y) {  
    //Check the column of the clicked cell  
    alert(mySheet.MouseRow() + "Row" + mySheet.MouseCol() + 
"Column is clicked");  
} 
OnMouseMove Event  
 Purpose  
Event fires when mouse pointer is moving on the sheet.  
To find out the cell location on which mouse pointer is moving, use MouseRow and MouseCol 
functions .
 Syntax  
Syntax  function Object ID _OnMouseMove (Button, Shift, X, Y) { }  
 Parameters  
Parameter  Type Description  
Button  Integer  0 : Left, 2 :  Right (Mouse button)  
Shift Integer  1 : When a Shift key is pressed  
2 : When a Ctrl key is pressed  
0 : Others  
X Long X coordinate  
Y Long Y coordinate
 Example  
function mySheet_OnMouseMove(Button, Shift, X, Y) { 
  //Fetch the row and column values of the mouse pointer location.  
  var Row = mySheet.MouseRow();  
  var Col = mySheet.MouseCol();  
  var sText = mySheet.GetCellText(Row, Col);  
//Set the mouse pointer style  
//Set a hand  mouse pointer only for Column 2 with cell text 2011-07-14 
  if(Col == 2 && sText == "2011 -07-14") { 
     mySheet.SetMousePointer("Hand");  
} else {  
     mySheet.SetMousePointer("Default");  // Default  
} 
}
OnMouseUp Event  
 Purpose  
Event fires when a clicked mouse button is unclicked . 
To find out the cell location on which the mouse is uncli cked, use MouseRow and MouseCol 
methods . 
 Syntax  
Syntax  function Object ID _OnMouseUp (Button, Shift, X, Y) { }
 Parameters  
Parameter  Type Description  
Button  Integer  0 : Left, 2 :  Right (Mouse button)  
Shift Integer  1 : When a Shift key is pressed  
2 : When a Ctrl key is pressed  
0 : Others  
X Long X coordinate  
Y Long Y coordinate  
 Example  
function mySheet_OnMouseUp(Button, Shift, X, Y) {  
    //Check the column where the mouse is unclicked  
    alert(mySheet.MouseRow() + "Row" + mySheet.MouseCol() + "Column is 
clicked");  
}
OnPageRequest  Event 
 Purpose  
Event fires for server paging searches  when a request for further loading is sent to the server in 
order to reload result page as the scroll r eaches the end.  
 Syntax  
Syntax  function Object ID _OnPageRequest (page) { }
 Parameters  
Parameter  Type Description  
page Integer  Page number to request  
 Example  
function mySheet_ OnPageRequest (page) { 
    //Display a warning  before  page request is sent to the server.  
    alert(page + “ page will be requested to the server .”); 
}
OnPopupClick Event  
 Purpose  
Event fires  when user clicks the pop-up button  in the cell that appear s when focus is put on the 
cell, or tries to edit the cell , given that a cell type is either Popup or PopupEdit.  
User should add a popup invoking logic to this event to enable it.  
 Syntax  
Syntax  function Object ID _OnPopupClick (Row, Col) { }
 Parameters  
Parameter  Type Description  
Row Long Row index of the cell  
Col Long Column index of the cell  
 Example  
function mySheet_OnPopupClick(Row,Col) {  
    //Open pop -up. 
window.open("Sheet_Popup.jsp?row="+Row+"&col="+Col,  "list",  
"scrollbars=no,fullscreen=no,width=250,height=350");  
}
OnReadyExcelDown  Event  
 Purpose  
After calling Down2Excel to  download data into excel format and downloaded data are fetched, 
event fires before the form is submitted. Excel download can be successfully completed only 
when the form is submitted within this event.   
 Syntax  
Syntax  function Object ID _OnReadyExcelDown (frm) { }
 Parameters  
Parameter  Type Description  
frm Object  Html Form object  
 Example  
function mySheet_ OnReadyExcelDown (frm) { 
    //Submit the excel download form.  
    frm.submit (); 
}
OnResize Event  
 Purpose  
Event fires when the IBSheet width or height has been changed when the width is set as  a 
relative value to height in percentage . 
 Syntax  
Syntax  function Object ID _OnResize (Width, Height) { }
 Parameters  
Parameter  Type Description  
Width  Integer  Overall width 
Height  Integer  Overall height  
 Example  
function mySheet_OnResize(Width, Height) {  
    //Readjust the width of columns according to updated information.  
    mySheet.FitColWidth();  
}
OnRowSearchEnd  Event 
 Purpose  
Event fires for each row while data is being searched using DoSearch or LoadSearchData 
methods.  
This event comes in handy when you want to color font or background of certain cells based on 
the data contained in the row.  
This event will fire  for every row during search. If it is used for com plicated  event logic or loop 
statement, it may result in slowness of performance .
 Syntax  
Syntax  function Object ID _OnRowSearchEnd  (row) { } 
 Parameters  
Parameter  Type Description  
row Integer  Index of the row
 Example  
function mySheet_On RowSearchEnd (row) { 
    //Change the font color of column 6 to red if column 3 is checked and 
column 4 value is bigger than 100.  
    if( mySheet.GetCellValue( row,3) == 1 && mySheet.GetCellValue(row,4) > 
100){ 
       mySheet.SetCellFontColor(row ,6 ,"#FF000 0"); 
} 
 } 
OnSaveEnd Event  
 Purpose  
Event fires when saving is completed using saving function and other internal processing has 
been also completed.  
If an error message occurs during saving, it will be set as code, a  event parameter. Program an 
error processing logic for any code value smaller than 0.  
If no result is returned due to network error, send the code value as -3.
This event can fire when DoSave or DoAllSave function is called.  
 Syntax  
Syntax  function Object ID _OnSaveEnd (Code, Msg, StCode, StMsg ) { }
 Parameters  
Parameter  Type Description  
Code Long Processing result code (0 or higher is success, 
others should be processed as error)  
Msg String  Processing result message  
StCode  Integer  HTTP response code 
StMsg  String  HTTP response message  
 Example  
function mySheet_OnSaveEnd(code, msg) {  
    if(code >= 0) {  
        alert(msg);  // saving success message  
        mySheet.DoSearch("list1.jsp");   
    } else {  
        alert(msg);  // saving failure message  
 } 
} 
<?xml version='1.0' ?>  
<SHEET><Result Code=" -1" Message= "The slip has been posted and 
cannot be edited."/></SHEET>  
<?xml version='1.0' ?>  
<SHEET><Result Code = "0" Message = "" / ></SHEET>
OnSearchEnd Event  
 Purpose  
Event fires when search is completed using a search function  and other internal data processing 
are also completed.  
If an error message occurs during searching, it will be set as code, a n event parameter. Program 
an error processi ng logic for any code value smaller than 0.  
If no result is returned due to network error, set the code value as -3. 
 Syntax  
Syntax  function Object ID _OnSearchEnd (Code, Msg, StCode, StMsg ) { }
 Parameters  
Parameter  Type Description  
Code Long Processing result code (0 is success, others should 
be processed as error)  
Msg String  Processing result message  
StCode  Integer  HTTP response code  
StMsg  String  HTTP response message  
 Example  
function mySheet_OnSearchEnd(code , message ) { 
    if(code == 0) {  
        alert(message ); 
        //Perform post -search tasks  
} else {  
        alert("An error occured during search..");  
} 
}
OnSelectMenu Event  
 Purpose  
Given the menu displayed is not a column popup menu but the one set in ActionMenu, event 
fires when the  user selects a certain menu item.  
Texts returned by this event are the same as the characters displayed in the menu list, and they 
perform  the corresponding functions.  
 Syntax  
Syntax  function Object ID _OnSelectMenu (Text, Code ) { }
 Parameters  
Parameter  Type Description  
Text String  Selected menu string 
Code String  Selected menu code string 
 Example  
// Menu setting  
mySheet.SetActionMenu("Insert|Copy row| -|Delete row|Clear|Download to 
excel");
function mySheet_  OnSelectMenu (Text, Code ) { 
  // Perform action using the text or code value  
switch( text) { 
      case "Insert data to the first row" :  
         mySheet.DataInsert(0);  
         break;  
case "Insert data to the last row" :  
         mySheet.DataInsert( -1); 
         break;
case "I nsert" :  
    mySheet.DataInsert();  
    break;  
      case "Copy row":      
    mySheet.DataCopy();  
    break;
case "Delete row":      
    mySheet.RowDelete();   
    break;  
 case "Clear": //RemoveAll  
         mySheet.RemoveAll();  
  break;
case "Download to excel":  
  mySheet.Down2Excel();  
  break;  
 Default=  
        break;     
 } 
}
OnSelectCell Event  
 Purpose  
Event fires when a certain cell is selected.  
This returns both the previously selected cell and the newly selected cell information, so you can 
create  logics for the selected cells.  
 Syntax  
Syntax  function Object ID _OnSelectCell (OldRow, OldCol, NewRow, 
NewCol ,isDelete ) { }
 Parameters  
Parameter  Type Description  
OldRow  Long Row Index of the previously selected cell  
OldCol  Long Column Index of the previously selected cell  
NewRow  Long Row Index of the currently selected cell  
NewCol  Long Column Index of the currently selected cell  
isDelete  Boolean  When a newly added row is deleted using 
DelCheck, OnSelectCell event would not recognize 
the deletion and fires for the location. This value is 
to mark the deleted row.  
 Example  
function mySheet_OnSelectCell(OldRow, OldCol, NewRow, 
NewCol ,isDelete ) { 
   alert("Cell("+ OldRow + "," + OldCol + ")has been deselected and 
now cell(" + NewRow + "," + NewCol +")is selected.");  
}
OnSmart Resize Event  
 Purpose  
Event fires when there is no recurrence of change in IBSheet  width or height from the initial 
change for a certain length of time (300ms). If you need FitColWidth upon Resizing, using this 
instead of OnResize event will help improve performance.  
This event will fire only when "SmartResize" property  is set as 0 (false) in a global or SetConfig 
method. If "SmartResize" property  is set as 1  (true), OnResize event will fire the same way as 
explained above instead of this event.  
 Syntax  
Syntax  function Object ID _OnSmart Resize (Width, Height) { }
 Parameters  
Parameter  Type Description  
Width  Integer  Overall width  
Height  Integer  Overall height  
 Example  
function mySheet_On Smart Resize(Width, Height) {  
    //Readjust the width of columns according to updated information.  
    mySheet.FitColWidth();  
}
OnSort Event  
 Purpose  
Event fires when data sorting by clicking the header  is completed . Col parameter is column index 
number. SortArrow is the sorting direction, which is expressed as in the table below . If 
SortEventMode is set as 1, column information of all sorted columns w ill be adjoined with “|”  and 
returned . 
SortArrow  Description  
"ASC" Ascending 
order 
"DESC"  Descending 
order 
 Syntax  
Syntax  function Object ID _OnSort (Col, SortArrow) { }
 Parameters  
Parameter  Type Description  
Col Long Index of sorted columns  
Adjoin  with “|” if SortEventMode is 1  
Arrow  String  Sort direction string 
Adjoin  with “|” if SortEventMode is 1  
 Example  
function mySheet_OnSort(Col, SortArrow) {  
if(SortArrow =="ASC")  
    alert(Col + "th column has been sorted in the ascending order.");  
else 
  alert(Col + "th column has been sorted in the descending order.");  
}
OnTreeChild Event  
 Purpose  
Event fires when you select to extend tree on a parent node without searching the children.  
You can search the children nodes where this event fires using DoSearchChild function.  
To run a search on this event, set <TR HAVECHILD= “1”> in XML file and set TR HaveChild 
parameter value in JSON file in advance.  
This event will fire only for the data with HaveChild value so make sure child level information is 
set when creating a search XML or JSON.  
This event may be also used when you do not need to search the entire tree of tree -type data 
and instead want  to search child level data only when you click the expand button.
 Syntax  
Syntax  function Object ID _OnTreeChild (Row) 
 Parameters  
Parameter  Type Description  
Row Long Index of the parent row to expand
 Example  
// Search the child data  
<script type="text/Javascript">  
 function mySheet_OnTreeChild(Row){  
   var url = "";  
   // Column 4 : Tree column  
   switch(mySheet.GetCellValue(Row, 4)){  
    case "Seoul" :  
      url = " type15_dat(1).xml";  
      break;  
    case "Incheon":  
      url = "type15_data(2).xml";  
      break;  
   } 
   mySheet.DoSearchChild(Row, url, "", 1);  
 } 
</script>  
OnUserResize Event  
 Purpose  
Event fires when the end user changes the column width on the header using mouse.
 Syntax  
Syntax  function Object ID _OnUserResize (Col, Width) { }  
 Parameters  
Parameter  Type Description  
Col Long Index of the column  
Width  Long Width of the column
 Example  
function mySheet_OnUserResize(Col, Width) {  
   alert(Col + "The column width has been changed to " + Width + "".)  
} 
OnValidation Event  
 Purpose  
Event fires before you call a saving function to process saving  to enable validation check for the 
data to save.
Some basic required field values or overall entry checks are supported  by IBSheet before saving, 
but this event can be used for various validat ions that may be required for specific business 
logics.  
Set ValidateFail  as 1 to stop saving  when validation fails . 
As this event will fire  for each data cell , if you use “For” to run validation for all  cells, it may take 
too much time. Run any validation for the entire data before saving function is called, and 
restricts  use of this event to logics in individual cells.
 Syntax  
Syntax  function Object ID _OnValidation (Row, Col, Value) { }  
 Parameters  
Parameter  Type Description  
Row Long Row index of the cell  
Col Long Column index of the cell  
Value Variant  This value is used for saving without a designated 
format.
 Example  
function mySheet_OnValidation(Row, Col, Value) {  
switch(Col) {  
  case 2:  
if(Value=="Korean won" && mySheet.GetCellValue(Row,Col+1) >= 
10000000) {  
alert("When the currency is Korean won, the amount cannot exceed ten 
million Korean won.");  
mySheet.ValidateFail(1);  
mySheet.SelectCell(Row, Col+1);  
} else if(Value=="Foreign currency" && mySheet.GetCellValue( Row,Col+1) < 
10000000) {  
alert("When the currency is a foreign one, the amount must be ten 
million or greater.");  
mySheet.ValidateFail(1);  
mySheet.SelectCell(Row, Col+1);  
} 
} 
} 
OnVScroll Event 
 Purpose  
Event fires upon vertical scroll.
 Syntax  
Syntax  function Object ID _OnVScroll (vpos, old vpos, is Top, isBottom)  { } 
 Parameters  
Parameter  Type Description  
vpos Long Vertical scroll position  
oldvpos Long Previous vertical scroll position  
isTop Boolean  Whether the vertical scroll bar is located at the 
topmost position  
isBottom  Boolean  Whether the vertical scroll bar hit the bottom
 Example  
function mySheet_ OnVScroll (vpos, old vpos, is Top, isBottom ) { 
} 
OnWaitTimeOut  Event 
 Purpose  
Event fires when a server process has been aborted because of timeout .
 Syntax  
Syntax  function Object ID _OnWaitTimeOut (Sec) { } 
 Parameters  
Parameter  Type Description  
Sec Long Time until timeout (unit: second)
 Example  
function mySheet_On WaitTimeOut (Sec) { 
// in case when a timeout occurs  
alert("Waiting time has run out. ");  
} 
Chapter 2. IBSheet Methods
2.  IBSheet Methods  
2.1 Using methods  
You can use the following syntax to use methods offered by IBSheet . 
Syntax  Object ID.Method name()
Any method parameters set between [ ~ ] are optional. If you call the method without setting th ose 
parameter, default values will apply . 
The next section lists all the methods offered by IBSheet .
2.2 Method List  
ActionMenu Method  
 Purpose  
Check or configure  menus used to perform certain actions, not a menu popup used to change 
values of a certain column like a column pop -up Menu . The action menu  will appear as a pop -up 
upon mouse right -click. If a column pop -up is set for the  column in the  mouse click location, 
column pop -up will display . If you set menu text as "* -" and connect the menu option text  with 
“|”, a section separator will be inserted into the menu.  
OnSelectMenu event fires when a menu option is selected from the displayed action menu.  
If you set both the text and code or set the configuration parameter as a JSON object, 
GetActionMenu return value will be returned to the JSON object.
 Syntax  
Syntax  Get ObjId. GetActionMenu () 
 Info 
Return  String(Object), Set pop -up menu (In case of Get Method)  
Parameter  Type Required 
Y/N Description
 Example  
// Set menu only  
mySheet .GetActionMenu (); 
 Syntax  
Syntax  Set ObjId. SetActionMenu (Text, Code )
 Info 
Return  None 
Parameter  Type Required 
Y/N Description  
Text String  Required  Pop-up menu string to set 
Code String  Optional  Pop-up menu code string to set 
Default="Text charcter string"  
 Example  
// Set menu only  
mySheet.SetActionMenu("Insert|Copy row|* -|Delete row|Clear|Download to 
excel");
// Set menu and code  
var Text = "Insert|Copy row|* -|Delete row|Clear|Download to excel";  
var Code = "Ins|Copy||Del|Clear| Download "; 
mySheet.SetActionMenu(Text, Code);  
// Set JSON object  
var Menu = [  
{Text: "Insert", Code: "Ins"},  
{Text: "Copy row", Code: "Copy"},  
{Text: "*-"}, 
{Text: "Delete row", Code: "Delete"},  
{Text: "Clear", Code:  "Clear"}, 
{Text: "Download to excel", Code: "Download"}  
]; 
mySheet.SetActionMenu(Menu);
// Set JSON object hierarchy  
var Menu = [  
{Text: "Insert", Code: "Ins",  
  Items : [  
  { Text: "Insert first row", Code: "FIns"},  
  { Text: "Insert last row", Code: "LIns"}  
] 
}, 
{Text: "Copy row", Code: "Copy"},  
{Text: "*-"}, 
{Text: "Delete row", Code: "Delete"},  
{Text: "Clear", Code:  "Clear"}, 
{Text: "Download to excel", Code: "Download"}  
]; 
mySheet.SetActionMenu(Menu);  
AllowCheck Method  
 Purpose  
Check or configure whether to accept a  change  when the user changes checkbox value.  
When OnBeforeCheck Event fires, you can control permission for checkbox changes using 
AllowCheck method.
 Syntax  
Syntax  Get ObjId. GetAllow Check () 
 Info 
Return  Boolean, set value (In case of Get Method)  
Parameter  Type Required 
Y/N Description
 Example  
// Check the checkbox value.  
mySheet .GetAllowCheck();   
 Syntax  
Syntax  Set ObjId. SetAllow Check (Val)
 Info 
Return  None 
Parameter  Type Required Description  
Y/N 
Val Boolean  Required  Whether to accept change of value. 
Default=true  
 Example  
// Not change checkbox value.  
mySheet .SetAllowCheck( false);
AllowEvent4CheckAll Method  
 Purpose  
Configure whether to run OnChangeEvent when CheckAll action  is run. When there ar e many 
data rows, running Check All function will fire OnChangeEvent for individual  checkboxes, which 
may result in delayed performance. If OnChangeEvent is not required for every checkbox, you 
can set AllowEvent4CheckAll  as 0 to impro ve CheckAll performance. The default value is 1.  
 Syntax  
Syntax  ObjId. AllowEvent4CheckAll (Val)
 Info 
Return  None.  
Parameter  Type Required 
Y/N Description  
Val Boolean  Required  OnChangeEvent fire Y/N  
 Example  
// Do not fire event upon CheckAll  
sheetObj.AllowEvent4CheckAll(0);
AllowExpand Method  
 Purpose  
Use this method if you want to block the actual expansion or collapse right after 
OnBeforeExpand event fires.  
 AllowExpand value will be reset to 1 upon every OnBeforeExpand event.  
Only when you set this value to 0 within an OnBeforeExpand event you can stop tree control of 
the user.  
 Syntax  
Syntax  Get ObjId. GetAllowExpand ()
 Info 
Return  Boolean, set value (In case of Get Method)  
Parameter  Type Required 
Y/N Description  
 Example  
mySheet. GetAllowExpand();
 Syntax  
Syntax  Set ObjId. SetAllowExpand (Expand)  
 Info 
Return  None 
Parameter  Type Required 
Y/N Description  
Expand  Boolean  Required  Whether to allow tree expansion
 Example  
function mySheet_OnBeforeExpand(Row,Expand) {  
if(Row == 1 && Expand == 2) {  
 mySheet.SetAllowExpand(0);  
alert("You can expand Row 1 but cannot collapse it.");  
} 
} 
AutoRowHeight  Method  
 Purpose  
Check or configure whether to automatically adjust data row height.  
If this is set as 1, row height will automatically heighten or lower to display all the text in the row. 
Row height may be adjusted in the following cases:  
1) When the MultiLineText property  in InitColumns is set as MultiLineText:1 and the user 
set multi lines by pressing Shift + Enter  keys while editing on keyboard;  
2) When the Wrap property  in InitColumns is set as Warp:  1 and the text is displayed in 
multiple lines automatica lly as column width is adjusted;  
3) When a line out of multiple text lines is deleted and the overall height of the row is 
diminished;  
4) Multiple line display is set using SetCellText or SetCellValue ; or 
5) When multi line text is loaded by search or upload from excel.  
If this method is set as 0, row height will be fixed to single line height configured in 
SetDataRowHeight.
 Syntax  
Syntax  Get ObjId. GetAutoRowHeight () 
 Info 
Return  Boolean, set value (In case of Get Method)  
Parameter  Type Required 
Y/N Description
 Example  
//Check the configuration  
mySheet. GetAuto RowHeight (); 
 Syntax  
Syntax  Set ObjId. SetAutoRowHeight (Flag)
 Info 
Return  None 
Parameter  Type Required 
Y/N Description  
Flag Boolean  Required  Whether to automatically adjust 
data row height  
Default=1   
 Example  
// Fix row height to single line and disallow automatic height adjustment.  
mySheet. SetAuto RowHeight (0);
AutoSumPosition  Method  
 Purpose  
Check or configure  the display location of the sum/average.  
If Datatype is “dtAutoSum ”, “dtAutoSumEx ”, “dtAutoAvg ”, or “dtAutoAvgEx ”, the sum or average 
value is calculate d and display ed. The default value is 1.  
The display location is as below:  
Value Description  
0 Fix the display at the top right below the header  
1 Fix the display at the bottom of the screen  
 Syntax  
Syntax  Get ObjId. GetAutoSumPosition ()
 Info 
Return  Integer, set value (In case of Get Method)  
Parameter  Type Required 
Y/N Description  
 Example  
//Display a Sum row at the top  
mySheet. GetAutoSumPosition();
 Syntax  
Syntax  Set ObjId. SetAutoSumPosition (Position ) 
 Info 
Return  None 
Parameter  Type Required 
Y/N Description  
Position  Integer  Required  Location value of the sum row
 Example  
//Display a Sum row at the top  
mySheet.SetAutoSumPosition(0);  
BasicImeMode Method  
 Purpose  
Check or configure  the keyboard to use  when focus is set on an editable cell .   Values available 
are as follows:  
Value Value Description  
imeAuto  0 Use the latest keyboard  
imeHan  1 Set the Korean  keyboard as default  
imeEng  2 Set the English keyboard as default
However, SetBasicImeMode() method can be used only before search or when data is initialized 
using RemoveAll() method. Also it works only in Internet Explorer browser.  
 Syntax  
Syntax  Get ObjId. GetBasicImeMode () 
 Info 
Return  Integer, set value (In case of Get Method)  
Parameter  Type Required 
Y/N Description
 Example  
//Use Korean keyboard as default  
mySheet. GetBasicImeMode();  
 Syntax  
Syntax  Set ObjId. SetBasicImeMode (Val)
 Info 
Return  None 
Parameter  Type Required Description  
Y/N 
Val Integer  Required  ImeMode value  
 Example  
//Use Korean keyboard as default  
mySheet.SetBasicImeMode(1);
CellAlign Method  
 Purpose  
Check or configure  text alignment in a cell. This simply realign what appears in the screeen 
unlike alignment set by InitColumns function. Values available are as follows:  
Left alignment  Center alignment  Right alignment  
"Left" "Center"  "Right"  
 Syntax  
Syntax  Get ObjId. GetCellAlign (Row, Col)
 Info 
Return  String, current alignment value (in case of Get Method)  
Parameter  Type Required 
Y/N Description  
Row Long Required  Row index of the cell  
Col Long 
/String  Required  Column index of the cell 
or SaveName  
 Example  
// Check the alignment value of the cell.  
var align = mySheet.GetCellAlign(1, 1);  
alert("Alignment value of the cell is " + align + ".");
 Syntax  
Syntax  Set ObjId. SetCellAlign (Row, Col, Align)  
 Info 
Return  None 
Parameter  Type Required 
Y/N Description  
Row Long Required  Row index of the cell  
Col Long 
/String  Required  Column index of the cell  
or SaveName  
Align String  Required  Alignment value
 Example  
// Change alignment of the cell to Center alignment.  
mySheet.SetCellAlign(1, 1, "Center");  
CellBackColor Method  
 Purpose  
Check or configure  background color of the cell.  
You can set or check a background color of a cell whether the cell is in a data row or header row. 
If the cell does not exist, it will not return any error message and just cancels the background 
color setting. Select the color using WebColor or BaSIC 16 C olor string.
 Syntax  
Syntax  Get ObjId. GetCellBackColor (Row, Col)  
 Info 
Return  String, set color value (in case of Get Method)  
Parameter  Type Required 
Y/N Description  
Row Long Required  Row index of the cell  
Col Long 
/String  Required  Column index of the  cell 
or SaveName
 Example  
// Check the color value.  
var color = mySheet.GetCellBackColor(1,1);  
alert("Color value of the cell is " + color + ".");  
 Syntax  
Syntax  Set ObjId. SetCellBackColor (Row, Col, Color)
 Info 
Return  None 
Parameter  Type Required 
Y/N Description  
Row Long Required  Row index of the cell  
Col Long 
/String  Required  Column index of the cell  
or SaveName  
Color String  Required  Color value  
 Example  
//Change the background color of the first cell in the header row to red  
mySheet.SetCellBackColor(0, 0, "#FF0000");       // WebColor