Hi Everyone,
I have developed sales invoice report using Docentric which is using our custom template. We are showing lines in the middle of the page. What we want to do is we want to show Bom items just underneath a sales line if the main line contains an Item made of BoM. We would like to show all the related BoM Items along with their Qty.
For Example: Suppose we have an Item Item-001 which was made of 4 other Bom items. What we want to do it when the main line is inserted on the report, we want to create 4 line just underneath this main line showing those related Items along with their quantities.
What the issue is I need to write while loop for looping through all the possible related BoM items. I am creating two new fields within the parentheses and assigning them the value.
When the first loop is run and picks a bom item, it creates the fields BomItem and BomQty and assigns the values. For the second loop the DSP class cannot assign the value to the field because there are already values in those two fields. The debugger shows that it throws an exception.
Please help me.
