on 01-12-2016 12:30 PM
Hi experts,
my yAxis shows a test case (BJK, SD) and a test case creation timestamp..where and how can I set to format the timestamp?
I would like to format the timestamp as 15:43 8th Jan 16
Here is my code
var oDataset = new FlattenedDataset({
dimensions: [{
name: "Name",
value: "{Name}"
},{
name: "Createstamp",
value: "{Createstamp}"
}],
measures: [{
name: 'Success',
value: '{Success}'
}, ....]
...
})
feedCategoryAxis = new FeedItem({
'uid': "categoryAxis",
'type': "Dimension",
'values': ["Name", "Createstamp"]
});
Kind regards,
Filip
I found the answer. Add formatter in dimensions
var oDataset = new FlattenedDataset({
dimensions: [{
name: "Name",
value: "{Name}"
},{
name: "Createstamp",
value: {
parts : [ "Createstamp" ],
formatter : function(oCreatestamp) {
// format creationstamp of a test plan for yAxis
if(oCreatestamp === null)
return oCreatestamp;
var oDateFormat = sap.ui.core.format.DateFormat.getDateTimeInstance({pattern: "dd/MM/yyyy HH:mm"});
return oDateFormat.format(oCreatestamp);
}
}
}],
measures: [{
name: 'Success',
value: '{Success}'
}, ....]
...
})
Kind regards
Filip
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.