204
Views
20
Comments
How to auto refresh the screen whenever user make some changes
Discussion

I need to auto refresh the screen whenever user make changes in the criticality flag so that when user made any changes in any one of the daily,weekly,monthly,yearly then it will reflect in all other.

Below is my oml attached in that WH_Requirement suggestion is my screen i am working on.

ISCOP_MDM_CW16012024.oml
2022-10-28 15-16-30
Vinita Sangle

In the criticality flag action, you can set the end node to destination pointing to the current screen.

2021-10-17 12-36-16
Amreen Shaikh

Hi Shalini,

Refresh your aggregate you want to.


Reagrds,
Amreen

UserImage.jpg
Shalini D M

I am working on WH_requirement suggestion screen 

UserImage.jpg
Himani Sharma

Hi @Shalini D M 

If you want to refresh the data displayed on screen then in that case, you need to refresh the aggregate from which you are fetching the data.

Or If you want to refresh entire screen  then replace the End node of the trigger action  with destination widget that already highlighted in below attached image. Select your current screen on which you are working on as your destination. 


Thanks,

Himani

2023-05-23 04-55-55
Wasimkhan Syed Abuthahir

Hi Shalini,

Since you are using Navigation tab, you can achieve this by refreshing the tabs on change.

Check this below post on how to refresh the tabs on change, this will help on how to resolve your issue.

https://www.outsystems.com/forums/discussion/73800/trigger-refresh-aggregate-of-block-when-tabsonchangetabs-from-parent-navigation/


Document for Tabs,

https://success.outsystems.com/documentation/11/developing_an_application/design_ui/patterns/using_mobile_and_reactive_patterns/navigation/tabs/

I have attached the OML which was added in above post for your reference.

Regards,

Wasimkhan S

TabsOnChage.oml
UserImage.jpg
Shalini D M

Still not working

UserImage.jpg
Shalini D M

Whenever i change the critical flag in any of the daily tab then it is reflecting in every other tabs like weekly and monthly only when the user refresh or when he logout and re login , but what i need is when i change the criticality flag in daily it should automatically reflect in all other weekly and monthly without user manually refresh the screen. @Prince Aadil khan Panwar can you please help

ISP-345.docx
2023-05-16 06-18-07
Aalhad Rangnekar

Hi Shalini, 

From what I understand you are trying to update three other blocks when you change the data in one block for which you would have to trigger the OnParametersChange of the blocks which you can achieve by toggling a boolean in your WH_Requirement_Suggestion block which would be an input into your 4 child blocks and in the OnParameterChange of the blocks you would refresh the data actions.

2023-05-23 04-55-55
Wasimkhan Syed Abuthahir

I have updated your OML. Can you check and confirm if it works.


Regards,
Wasimkhan S

ISCOP_MDM_CW16012024 Modifed.oml
UserImage.jpg
Shalini D M

I tried this but its working for daily, weekly, quaterly but its not working for monthly and yearly @Wasim Khan 

2023-05-23 04-55-55
Wasimkhan Syed Abuthahir

Kindly follow the same steps for month and year that was followed in daily, weekly, quarterly. 

Regards,

Wasimkhan S

UserImage.jpg
Shalini D M

i have done the same thing but its not displaying 

2023-05-23 04-55-55
Wasimkhan Syed Abuthahir

Were you able to add record in monthly and yearly tab. Can you share the document like you have shared earlier. 

Regards,

Wasimkhan S

UserImage.jpg
Shalini D M

unable to send the file as it is too large 

the thing is yearly and monthly datas are linked so they are not  working but when i change monthly ,yearly is working can i know how they are linked together

2023-05-23 04-55-55
Wasimkhan Syed Abuthahir

Am not getting you. Can you please elaborate.

If it works for Daily, weekly and Quarterly tabs. If we follow the same steps , it will work for other tabs as well.


Regards,
Wasimkhan S

UserImage.jpg
Shalini D M

Thank you for the help, its working now.

2023-05-23 04-55-55
Wasimkhan Syed Abuthahir

Great. 

Happy coding. Can you mark the solution to end the discussion.


Regards,

Wasimkhan S

UserImage.jpg
Shalini D M

I have one more query.

If we modify in day tab ,its reflecting in all tabs , but in reverse order if i modify in year tab ,its not reflecting in other tabs.

what might be the reason can you please help me with this.

2023-05-23 04-55-55
Wasimkhan Syed Abuthahir

Can you share the document by modifying data in Years tab and click on other tabs and show the result.

Like the one you have shared the document earlier.


ISP-345.docx
2023-05-23 04-55-55
Wasimkhan Syed Abuthahir

Hi Shalini,

Did you check?


Regards,

Wasimkhan S

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