Hi is it possible to return multiple line using display method?
This is my code:
display str TaxAmountNum()
{
str taxamountnum;
;
while select * from taxtrans where taxtrans.Voucher == ledgerjournaltrans.Voucher && ledgerjournaltrans.TaxGroup != “”
{
taxamountnum = taxtrans.AccountNum;
// info("tax amount: " + taxamountnum);
}
return taxamountnum;
}
i use this method in a string control in a report and it returns the last data only. how can i get the other data using this type of method or is there other way to pass all data in string control.