i = 0;
for each rec in input.Item_Details1
{
i = i + 1;
rec.S_No=i;
}
itmname = "";
des = "";
for each sub in input.Item_Details1
{
if(sub.S_No == 1)
{
itmname = sub.Item_Name;
des = sub.Description;
}
}
if(itmname != null)
{
for each sub1 in input.Item_Details1
{
if(sub1.S_No > 1)
{
sub1.Item_Name=itmname;
sub1.Description=des;
}
}
}
// itm = List();
// for each var in input.Item_Details1
// {
// fetcal = Calibration_Master[Item_Name == var.Item_Name.Item_Name].ID.getAll();
// itm.add(fetcal);
// itm = itm.distinct();
// var.Item_Name:ui.add(itm);
// }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter