How to get first 3 element using control
Hi,
I am using a property ( propA) in listview in display tab to show values in UI. This property contains comma separated values ( eg: propA = (aa,bb,cc,dd,ee)) and I need to show it as below
aa
bb
cc
and my 2nd requirement is to show first 3 element.
I achieved the first part by creating control as below but I am getting all the elements of the property. How to get only first 3 element?
<SPAN style="font-size:12px;vertical-align: top;">
<%String s = tools.getActiveValue();%>
<%=s.replaceAll(",","<BR>")%>
</SPAN>
Can someone please help on this?