DataLoad
Overview
Creating Scripts
Event Handlers
How to...?
PHP Functions
Oracle Library
Character Encoding

User Guide Home
DataLoad Home

DataLoad Scripting Functions

DataLoad includes a library of functions which can be used within PHP scripts to control and interrogate DataLoad, for example getting and setting spreadsheet data. The functions available are described below. Click on the function name for full details including any parameters and return values. These functions are used within the PHP script, however there is also a Macro command that can be used in DataLoad spreadsheet cells to call PHP functions. This is the PHP(function_name) command and the name of the PHP function to be executed is included as a parameter, i.e. between the brackets. This command enables PHP code to be called at any time within a Macro load to provide further options for customising these loads.

Function
Description
   
Spreadsheet Setup Functions
SetDynamicCols Controls where a spreadsheet has fixed or dynamic number of columns
InsertRow Inserts one or more rows in the main spreadsheet
InsertCol Inserts one or more columns in the specified spreadsheet
DeleteRow Deletes one or more rows from the main spreadsheet
DeleteCol Deletes one or more rows from the specified spreadsheet
ClearCol Clears all values from one or more columns from the specified spreadsheet
ClearRow Clears all values from one or more rows from the specified spreadsheet
ClearGrid Clears all values from the specified spreadsheet
GetLastRow Returns the number of the last row containing data in the specified spreadsheet
GetLastCol Returns the number of the last col containing data in the specified spreadsheet
GetRowCount Returns the number of rows in the specified spreadsheet
GetColCount Returns the number of columns in the specified spreadsheet
SetRowCount Sets the number of rows in the main spreadsheet
SetColCount Sets the number of columns in the specified spreadsheet
SetBlankRows Sets the number of blank rows maintained after the last data row
SetBlankCols Sets the number of blank columns maintained after the last data column
GetBlankRows Returns the number of blank rows maintained after the last data row
GetBlankCols Returns the number of blank columns maintained after the last data columns
User Interaction & Messaging Functions
SetHourglass Control whether or not the mouse pointer is an hourglass
ShowConsole Display the load progress console
HideConsole Hide the load progress console
SetConsoleData Sets the load statistics in DataLoad's progress console window
ClearConsole Clears error & information messages from DataLoad's progress console window
SendMsg Adds an information or error message to the DataLoad console
MessageBox Display a pop-up message box to the user
InputQuery Displays an input box where the user can enter a value
InputBox Displays an input box where the user can enter a value
Getting & Setting Spreadsheet Data
GetRowData Get an array containing all data in the specified spreadsheet's row
GetColData Get an array containing all data in the specified spreadsheet's column
GetCellData Get the value of a single cell in the specified spreadsheet
SetRowData Update all values in a row of the specified spreadsheet
SetColData Update all values in a column of the specified spreadsheet
SetCellData Update the value of a single cell in the specified spreadsheet
GetDBConn Show a dialog box to obtain Oracle database connection details
ShowGrid Show the specified grid if it is currently hidden
HideGrid Hide the specified grid if it is currently visible
CancelMacro Cancel a macro load after it has been started by the user
GetLoadScope Display the load scope window for the user to enter load parameters
ListOfValues Show a List of Values to the user and get their response
Browser Control Functions
BrowserOpen Opens the browser in a Macro load that uses Browser Control
BrowserClose Closes the browser in a Macro load that uses Browser Control
BrowserSource Gets the browser's current source code in Browser Control loads
BrowserNavigate Make the browser navigate to the specified URL in Browser Control loads
BrowserBack Make the browser navigate one page back when in Browser Control mode
BrowserForward Make the browser navigate one page forward when in Browser Control mode
BrowserHome Make the browser navigate to its home page when in Browser Control mode
BrowserShow Make the browser visible when it is currently hidden in Browser Control mode
BrowserHide Make the browser visible when it is currently hidden in Browser Control mode
BrowserRunning Returns a boolean to indicate whether the browser is running in Browser Control mode
BrowserWaitOnBusy Change whether DataLoad waits for the browser to be idle in Browser Control loads
Other Functions
SetDebugStatus Turns debug mode on or off