formating liferay search container column data
<liferay-ui:search-container-column-text name="AMOUNT" buffer="buffer" cssClass="number-align" orderableProperty="amount">
<% buffer.append((TransactionTypeLocalServiceUtil.getTransactionType(transaction.getCategoryId()).isCashIn())?"$"+decimalFormating.format(transaction.getAmount()):negativeDecimalFormating.format(transaction.getAmount()));
%>
</liferay-ui:search-container-column-text>
<% buffer.append((TransactionTypeLocalServiceUtil.getTransactionType(transaction.getCategoryId()).isCashIn())?"$"+decimalFormating.format(transaction.getAmount()):negativeDecimalFormating.format(transaction.getAmount()));
%>
</liferay-ui:search-container-column-text>
Comments
Post a Comment