I have a temporary table in which I am entering data at two different periods, which is working fine. My third table is the calculation based on the two data table of those two periods, I am also using another temporary table for the third table. I have passed the required report parameter and the first temporary table in a method call for this. public void comparsionTableMthod(ItemId itemidCode, ItemGroupId itemGroup, TPO_ComparisionReprtTemp temp)
{
container storageItem ;
storageItem= conNull();
storageItem= str2con(itemidCode);
int i;
ItemId _itemidCodeThird;
ItemGroupId _itemGroup;
if(itemidCode)
{
ttsbegin;
calculationTable.clear();
for(i=1;i<=conLen(storageItem);i )
{
while select ComparisionMonth,ItemId,sum(Qty),sum(Value), sum(QtyTwo),sum(ValueTwo) from temp
group by ComparisionMonth, ItemId where temp.ItemId== conPeek(storageItem,i)
{
}
}
}
The report parameter is multiselect report parameter, The problem I am facing here is, the while select is only working for the first item in the container/passed parameter, it selects all the record correctly for the first item, when I assigned hardcoded value, then it is also working for any hard coded itemId, But I need in a generalize way, so it would be helpful if anyone here can suggest me how to approach it.