Hi Experts,
I have a table and form consider as TestTable with 2 fields in it.
1. Employee (string)
2. Posted (NoYes, Checkbox)
I am running a batch job through the class named TestClass to process the data if the checkbox is set to No for any record in the table.
public void run()
{
ttsBegin;
while select forUpdate TestTable where TestTable.Posted == NoYes::No
{
does the updates here.
}
ttscommit;
}
If I select only one record in the form and I need to process only that particular record. how the run method should be?. I have created a button in the form to call the class but no idea how to pass the arguments to the class through the clicked method on the button. I need to call the class and process the particular record whenever needed without harming the batch job's usual run.
Appreciate helping with the clicked & run method sample.
Thanks in advance.