How to load formatter string Dynamically ?

13 views
Skip to first unread message

Jerry Joy

unread,
Feb 18, 2013, 7:35:37 AM2/18/13
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

František Kolář

unread,
Apr 10, 2013, 11:14:46 AM4/10/13
to arib...@googlegroups.com
was this answered ?

FK
Reply all
Reply to author
Forward
0 new messages