Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:43 pm
by cnwrbb1 >> Fri, 6 Jun 2003 12:40:26 GMT
The extractBatch method is available in 5.2.08.175. I used the following (which I can invoke from thin client to run on the app server - make sure directories are relative to this box):
extractBatch(param : String input;
command : String output;
args : ArgsArray output;
result : Integer output;
returnVal : Integer output) serverExecution;
vars
begin
create args transient;
command := app.getJadeInstallDirAppServer & "\jadloadb";
args.add(" ini=" & app.getIniFileNameAppServer);
args.add(" path=" & app.dbPath);
args.add(" server=multiUser");
args.add(" schema=JadeSchema");
args.add(" app=Jade");
args.add(" executeSchema=JadeSchema");
args.add(" executeClass=Schema");
args.add(" executeMethod=extractBatch");
args.add(" executeParam=" & '"' & param & '"');
args.add(" executeTransient=true");
returnVal := node.createExternalProcess(app.getJadeInstallDir, command, args, null, false, true, result);
end;
ArgsArray is a subclass of StringArray with a longer member. oo err.
As much of the param systax that I am aware of is:
Command, <schema file name or mul name for M or E or Q>,<ddb filename not M or E or Q>,<param file name for F> or <patch number for P or Q>,<schema name> or <schema name list for M>
e.g. E,c:\temp\myschemas.mul
M,c:\temp\selected.mul,scm1,scm2
A,c:\temp\scm1.scm,c:\temp\scm1.ddb,scm1
I have successfully used the A (All) and P (parameter file) options:
param := "A," & scmFileName & "," & ddbFileName & "," & schemaName;
param := "F," & scmFileName & "," & ddbFileName & "," & paramFile & "," & schemaName;