Jerry Joy
unread,Feb 18, 2013, 7:35:37 AM2/18/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AribaWeb (aribaweb.org)
Hi All,
I need to dynamically select the formatterString from a groovy method.
For that I have tried this code,
Index.awl
-----------------
<t:DataTable list="$indexList" item="$indexItem">
<t:DynamicColumns list="$columnList" item="$myItem"
formatter="$formatters.{getFormat()}"
key="$myItem.column_name"/>
</t:DataTable>
Index.groovy
------------------
def getFormat(){
return (myItem.getData_type().equalsIgnoreCase("date")) ?
"shortDate" : "none";
}
While calling getFormat() method, control does not enter in to the
method.
How can I dynamically load that formatterString ?
Thanks in advance,
Jerry