Código Java Datamine
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"[Link]
<HTML>
<HEAD>
<META Name="DatamineScript" Content="Version3" />
<TITLE>Command Automatically recorded html script.</TITLE>
<SCRIPT TYPE="text/javascript">
// ----------------------------------------------------------------------
// Standard initialisation for Datamine Studio 3
//
var oDmApp= null;
var oScript = null;
function AutoConnect()
try {
oScript = new ActiveXObject("[Link]");
[Link](window);
oDmApp = [Link]();
if (oDmApp == null || [Link] == null) //Attempt to Use the Active Datamine
Session
alert("There are no active projects open.\n Please open a project before continuing.");
[Link](); // Closes the script window
return false;
else
{
[Link]("logo").src = [Link] +
"\\images\\CAE_Mining_Full_Color.gif";
return true;
catch(e) {
alert("Failed\nReason: " + [Link]);
if ( oDmApp) [Link](); // release the session to close it down
return false;
function btnExecute_onclick()
try {
catch(e) {
alert("Failed\nReason: " + [Link]);
function btnHelp_onclick()
var features =
"status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes";
var common = "_blank"
var installpath = [Link];
installpath = [Link](" ", "%20");
var helpcommand = "mk:@MSITStore:" + installpath +
"/[Link]::/Studio_3_General/Concept_Studio%203%20Scripting%[Link]";
[Link](helpcommand, common, features);
</SCRIPT>
</HEAD>
<BODY onload="AutoConnect();" onunload="oDmApp = null;oScript = null;">
<div>
<table border="0" cellpadding="5" cellspacing="0">
<tr>
<td><b>Script_2</b>
</td>
<td><img src="C:/Program Files/Datamine/StudioOP//html/images/CAE_Mining_Full_Color.gif"
id="logo" alt="CAE Mining" width="100" height="39" /></td>
</tr>
<tr>
<td align="center" colspan="2"></td>
</tr>
<tr>
<td align="center" colspan="2">
<input type="button" value="Execute" name="btnExecute" onclick="return btnExecute_onclick()"
style="width: 75px" />
<input type="button" value="Help" name="btnHelp" onclick="return btnHelp_onclick()"
style="width: 75px" />
</td>
</tr>
</table>
</div>
</BODY>
</HTML>