I am displaying a table. For the employee I show all their hours by type (regular, vacation, etc). Each hour type line has a validation flag that I have to compute. I'm obviously doing something wrong as I only seem to be able to get my supply function to supply the flag to the first record the remaining are blank.
OutputHours
-EmplHours - 0..n
--wkHours - 0..n
-
TimeType
-
Hours
-
Contkz
-
ComputedCompValues <== Value node I added others above are bound from model
-
Contlz_String <==Value attribute I'm trying to populate based on Contkz containing "something"
Here is the code -
public void supplyComputedCompValues(IPrivateEmployeeTimeVerificatioinCust.IComputedCompValuesNode node, IPrivateEmployeeTimeVerificatioinCust.IWkhoursElement parentElement)
{
//@@begin supplyComputedCompValues(IWDNode,IWDNodeElement)
IComputedCompValuesElement elem = node.createComputedCompValuesElement();
if (wdContext.currentWkhoursElement().getContkz().trim().length() > 0)
{
elem.setContlz_String("Verified");
}
else
{
elem.setContlz_String("HI!");
}
node.bind(elem);
//@@end
}
WHen I run the code my view only has Verified for the first entry in wkhours all others are blank. I did check the fields (bound Contlz directly to the field in the view) and they all contained a "2".
Regards,
Diane