Sample: JavaScript Connector
Overview
This example shows how to write a Connector using a script language. The
example uses JavaScript and shows the objects available and how they are used.
Sample Code
//
// Place intialiazation code before function declarations.
//
var counter = 0;
function selectEntries()
{
}
function getNextEntry ()
{
if (counter > 100) {
result.setStatus (1);
result.setMessage ("End of input");
return;
}
entry.setAttribute ("counter", counter);
counter++;
}
function modEntry ()
{
}
function deleteEntry ()
{
}
function findEntry ()
{
}
function putEntry ()
{
}
See Also
Script Connector
|