plunavat Posted August 19, 2013 Share Posted August 19, 2013 Hello,i need to create a collections variable from the fields.I have a field called RollNo. when i place this field in detail band, it would display all records. say it displays 5 records with 23, 67, 45, 89 and 90Now i want to create a variable "RollNoList" with type as collections such that it would have value {23,67,45,89,90}. RollNoList would be dynamic and should have all roll no records.(something like "sum" where the values are added automatically) thanks in advanceRegards,Pranav C Lunavat Link to comment Share on other sites More sharing options...
Thomas Zimmer Posted August 19, 2013 Share Posted August 19, 2013 Simply set the variable with increment type "none", calculation type "nothing" and with an expression like:$V{RollNoList}.add(${fieldname} ? $V{RollNoList} : $V{RollNoList}Perhaps there is a better way, but this works.Cheers, Thomas.http://www.ThomasZimmer.net Link to comment Share on other sites More sharing options...
plunavat Posted August 20, 2013 Author Share Posted August 20, 2013 Thanks a lot for the answer. this solved the problem.. Regards, Pranav Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now