96
Views
4
Comments
Solved
Default Show Current Year in the page

Under Mainflow\JobMaintenance2s, may i know how can I set to show the data which is in Current Year First in sorting ("Year" is calculated attibute here). Please advise.

Test_20230925.oml
2021-06-01 05-56-33
Komal Kumbhar
Solution

Hey Winnie,

I have added this two things in your OML, cant uploading OML here it has errors of IDP,

kindly have a look at screen shots,

Added new filter on year end date =currDate() and added sort,

Kindly check if its working as per your requirement.

komal


2023-01-26 16-03-24
Ana Agostinho

Hello Winnie Lam, 
Can you please be more clear about what you are trying to achieve? 

Best regards, 

Ana


2023-08-07 18-02-23
Parveen Khan

Hii @Winnie Lam,

You want default sorting with the current year on page load, Like this

If yes, Then you should do the year in descending order.


Hope this helps you, If you need more help then please feel free to let me know.

Thanks & Regards

Parveen


2025-12-17 21-10-06
Shlok Agrawal

HEY @Winnie Lam 

From the above description provided and OML attached I presume that you want change the current year according to your convennce but the year is a calculated attribute.

Simply make Local variable in the screen with data type date. Inside the aggregate filter the all the records wrt this date only.

(Note: Make sure to use the refresh aggregate to see the changes required.)
Please let me know if you need any assistance or is there was any misconception in interpreting your question.)

Thanks,
Shlok Agrawal

2021-06-01 05-56-33
Komal Kumbhar
Solution

Hey Winnie,

I have added this two things in your OML, cant uploading OML here it has errors of IDP,

kindly have a look at screen shots,

Added new filter on year end date =currDate() and added sort,

Kindly check if its working as per your requirement.

komal


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.