Actually in this case, I am not looking for a global solution. For us it would be most convenient to have a parameter in the directive that drives the formatting.
Regarding the header.script.others.ftl file.
I removed the comments and changes the settings. It doenst apply though
Here is my content:
Itâs strange, when I debug those lines in the browser they are executed without doubt. But in the activeForm itâs still displayed without decimals. This is the code from our directive:
You still can use combination of ng-hide=âtrueâ, ng-model=âyourValueâ and angular expression with filter {{ yourValue | formatNumber:2 }} at least as a temporary solution.
it works for old style dbr. new directive doesnât have ng-model parameter documentedâŚ
but you can use both directives in one active form. I tested this.
Does anybody knows how to get data of AF in that way I proposed before but If there are two dimensions in columns.
I tried {{ rowData.getCell('first dim element','second dim element').value }} but it doesnât work.
Need it because I need to multiply value *-1 after.
thanks, Paul! just forked out and got the same result
but I found that everything is low case in console. but it looks it works like case insensative
i.e {{ rowData.getCell('first dim element,second dim element').value }} == {{ rowData.getCell('First dim element,Second dim element').value }}. Am I right?
Another question - how to pass a variable to rowData.getCell( ).value method?
I mean something like that {{ rowData.getCell( â{{someVariable}},actualâ ).value
or {{ rowData.getCell( someVariable + â,actualâ ).value }}
both methods donât work. Is it possible to pass a variable inside?
I found I can pass only one variable {{ rowData.getCell( someVariable ).value }}. So cannot put expression inside expressionâŚ
I found a way.
/* JS /
$scope.concatIT = function(a,b){
var c = a+â,â+b;
return c;
}
/ html */
{{ rowData.getCell( concatIT(someVariable,âActualâ) ).value }}