Hi -
I have a list of type String. It is storing all the values from DocuRef.Notes field through a while select statement. The list is populated just fine with all the possible records but the problem is when I'm printing the list on my report though a display method and List.Tostring(). The records are printed with these braces in the start. look at the picture below.

I dont need those braces in the begining and at the end of my first line.
The output should be like
Test Line 1
Test Line 2
....
Both Records should be printed on separate lines. Can you suggest if I can achieve this through list ? or I have to use some other way? Like what ? Thank You
Here is the snippet of my code.
display String255 WFdisplayCustomerNotes()
{
// <WF - ID = 80 Picking Slip (123) modified by Unomani>
SalesTable salesTable;
Notes notes;
WHSWorkLine whsWorkline;
DocuRef docuRef;
CustTable custTable;
Counter counter = 0;
List NotesList = new List (Types::String);
select OrderNum
from whsWorkline
join * from salesTable
where this.OrderNum == salesTable.SalesId;
while select * from docuRef
join * from custTable
where docuref.RefTableId == 77
&& custTable.AccountNum == salesTable.CustAccount
{
if ( docuRef.TypeId == 'Shipping Instruction'
&& docuRef.RefRecId == custTable.RecId
&& docuRef.RefTableId == custTable.TableId
&& docuRef.RefCompanyId == custTable.dataAreaId
&& salesTable.CustAccount == custTable.AccountNum)
{
notes = docuRef.Notes;
NotesList.addEnd(notes);
}
}
return NotesList.toString();
}
//</WF>
*This post is locked for comments
I have the same question (0)