cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi,

I have a requirement to format date. For this I have written function in the parent class. Now how can I access parent function in the formatter ?

This is what I am trying but without success. This is piece of code of my Excel Export.

{
name: "Level1 Timestamp",
template: {
  content: "{path: 'Level1Timestamp', formatter: 'BaseController.datTimeFormat'}"
}

BaseController (the file name and also the instance of parent class is BaseController) is the parent controller which has dateTimeFormat function.

I tried full path of Parent class but no luck. Both Parent class and the child class (where I am using formatter) are in the same View folder.

0 Likes
View Entire Topic
Joseph_BERTHE1
Active Contributor
0 Likes

Hello,

Did you simply try this :

formatter: '.datTimeFormat'

With the dot and then without the dot.

Regards,

Joseph

Former Member
0 Likes

Yep..neither of them worked.