24
Views
10
Comments
Difficulty in Month Picker Search Across Different Pages in OutSystems .
Application Type
Reactive
Service Studio Version
11.54.36 (Build 62983)
Platform Version
11.23.0 (Build 40636)

Hello everyone,I'm encountering an issue with the month picker functionality in OutSystems and could use some guidance. I've implemented a month picker to search for specific months, and it works flawlessly on the 'dailyattendancelog' page. However, when I replicate the exact same process on the 'dailyattendancelog2' and 'attendancerequests' pages, the search fails to yield accurate results.I've meticulously checked my implementation, ran the debugger, and even verified the values in the aggregate, and everything seems to be in order. I've placed variables on the screen to monitor the values, and they appear correct (e.g., month=12 for December). Despite this, the search results remain inaccurate.Could anyone offer insights into why the month picker search works on one page ('dailyattendancelog') but not on the others? I'd appreciate any suggestions or pointers to troubleshoot and resolve this issue. Thank you!




HumanResourceManagementSystem.oml
NotWorkingDailyAttendanceLog2page.png
WorkingDailyAttendanceLogPage.png
NotWorkingDailyAttendanceRequestpage.png
2024-05-08 06-29-37
Prince Aadil Khan Panwar

I believe, there may be problem with names of aggregates and values. Try to delete this log2 screen and copy paste the first one and try to check it works or not.

Thanks

Prince

UserImage.jpg
Prem Ganwani

Thank you for your suggestion! I've reviewed the aggregate names and values thoroughly, and they seem to be consistent across the screens. However, the issue persists even after careful scrutiny.It appears that the problem might lie elsewhere, as the names of aggregates and values have been cross-verified and seem to be in line with the working 'dailyattendancelog' screen.I'm exploring other potential causes for the discrepancy in functionality between the screens. If you have any other suggestions or troubleshooting steps that could help isolate the issue, I'd greatly appreciate your input. Thank you for your assistance!


2024-05-08 06-29-37
Prince Aadil Khan Panwar

Try to attach an OML file would be able to review the code for sure


UserImage.jpg
Prem Ganwani

Thank you for your guidance. I've attached the OML file and accompanying screenshots as you suggested. The code and visual representations should provide a detailed overview of the implementation.

If there are specific areas or sections within the attached files that you think need closer examination or explanation, please let me know. Your insights and expertise in reviewing these materials are incredibly helpful in resolving this issue. Thank you for your assistance!

NotWorkingDailyAttendanceLog2page.png
NotWorkingDailyAttendanceRequestpage.png
WorkingDailyAttendanceLogPage.png
HumanResourceManagementSystem.oml
2024-05-08 06-29-37
Prince Aadil Khan Panwar
UserImage.jpg
Prem Ganwani


Absolutely, take your time going through the attached files. If you have any questions, need further clarification, or notice anything specific while reviewing, feel free to reach out.

2024-05-08 06-29-37
Prince Aadil Khan Panwar

@Prem Ganwani i checked each n everything there is no difference in the screen still not working so do one thing try to copy that screen which is working well and delete the not working one and paste and then check working or not. and yes i will suggest you check records related to the entities in which you are putting the filter 


UserImage.jpg
Prem Ganwani


Sure, I'll replace the attendance log screen as suggested. However, for the attendance request screen .

2021-09-06 15-09-53
Dorine Boudry
 
MVP

@Prem Ganwani ,

Don't know the answer to your question of why it sometimes works and sometimes not, but here are some general observations :

  • unless you are looking for some seasonal trends across all years, your query will not yield what you want once there are data for multiple years in your entity, as you only look at month, not year
  • your monthvar variable is not text, which it should be according to documentation
  • it looks odd that you have 2 events, the picker selected event, and the on change event, and one of them is changing a local month variable, while the other is refreshing the aggregate ? Are these events even both firing, and in the correct sequence ??  There is probably no need for the OnChange event, and you want your refresh to happen in the MonthPickerSelected event.

Dorine

UserImage.jpg
Prem Ganwani

Thanks for your thorough observations and for fixing the second and third points. I completely understand the rationale behind focusing on the month functionality for testing purposes. It's a smart approach to isolate specific areas before implementing broader changes. Your attention to detail is greatly appreciated!

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