Hi,
I am facing the following issue with Xpages.
I have a column in the view which shows the Month of creation i.e,jan,feb,mar,etc.
I am using the following formula in the column
months := “Jan” : “Feb” : “Mar” : “Apr” : “May” : “Jun” : “Jul” : “Aug” : “Sep” : “Oct” : “Nov” : “Dec”;
month := @Subset(@Subset(months; @Month (@TextToTime(CreatedOn))); -1);
@Text(month)
Now i got a requirement where i have to show the month column in sorted order of calendar like jan,feb,mar etc.
I have added a hidden column before this view which returns a number for corresponding month and sorted based on this number.
months := “1” : “2” : “3” : “4” : “5” : “6” : “7” : “8” : “9” : “10” : “11” : “12”;
month := @Subset(@Subset(months; @Month (@TextToTime(CreatedOn))); -1);
@TextToNumber(month)
This works fine when i preview the view in client.
But when create an xpage and add a view control for this particular view, the sorting is happening correctly but instead of showing the months,i.e,jan,feb,etc, the number is getting displayed like 1.0,2.0,3.0,etc.
Can someone help me in solving this issue?
i am using notes 8.5.1
Regards,
Amit