|
|
Job Component |
ClearParameters method |
|
ClearParameters() |
Returns: None |
|
The ClearParameters method removes all parameters and values from the jobs parameters file.
Example:
[Visual Basic .NET]
|
Public Sub RunMyJob() |
|
Dim js As ExportBudget.CRJobStatus |
|
Dim myExportBudgetJob As ExportBudget |
|
|
|
myExportBudgetJob = New ExportBudget() |
|
myExportBudgetJob.JobPaths.JobStatusFileName = "ExportJobStatus.xml" |
|
|
|
myExportBudgetJob.SetParameterValue("CUSTOMERID", "100453") |
|
|
|
myExportBudgetJob.RunJob() |
|
|
|
js = myExportBudgetJob.GetJobStatus() |
|
|
|
If Not (js Is Nothing) Then |
|
MsgBox("Job is done, Status: " + js.JobStatus.ToString) |
|
Else |
|
MsgBox("Job is done") |
|
End If |
|
|
|
myExportBudgetJob.ClearParameters() |
|
|
|
End Sub |
|
|
[C#]
|
private void RunMyJob() |
|
{ |
|
ExportBudget.CRJobStatus js; |
|
ExportBudget myExportBudgetJob; |
|
|
|
myExportBudgetJob = new ExportBudget(); |
|
myExportBudgetJob.JobPaths.JobStatusFileName = "ExportJobStatus.xml"; |
|
|
|
myExportBudgetJob.SetParameterValue("CUSTOMERID", "100453"); |
|
|
|
myExportBudgetJob.RunJob(); |
|
|
|
js = myExportBudgetJob.GetJobStatus(); |
|
|
|
if (js != null) |
|
{ |
|
MessageBox.Show("Job is done, Status: " + js.JobStatus.ToString()); |
|
} |
|
else |
|
{ |
|
MessageBox.Show("Job is done"); |
|
} |
|
|
|
myExportBudgetJob.ClearParameters(); |
|
|
|
} |
|
|
© 2003 - 2007 Relational Solutions, Inc. - All rights reserved