Other screen close

If I want to close screen2 and go back screen1 and refresh data automatically in screen1.
How to use other screen close block or any other idea you have suggest me.
Thank you in advance to all of you.

Hey @pkdev585

Before giving you the answer, what data you want to refresh??

Screen1 data refresh only when come back from screen2

Try using On screen resume block then call all blocks again from screen1 initialize

I am not understanding your suggestion

Can I use if then condition with this block

Repeat all method you’re using in when screen initialize

1 Like

Hi pk,

If Ibrahim’s solution doesn’t fix it,
it would be very helpful if you could post the blocks you’re using and explain better what you mean by “refreshing” the data.

The data reload when coming back from Screen2 because Screen1 is being initialized again?
If that’s the case, you could add these blocks to Screen2

so that as soon as it initializes, it reopens Screen1

though I don’t recommend it, since it’s unprofessional and looks bad :grin:

2 Likes

I want to refresh data which in listview1 of screen1. Screen1 have 3 listview.

That would be done after opening the screen in the screen initialize event.

We used both methods like other screen close name and on app resume but errors give like screen 2 data show in screen 1

Here both methods work but with error like when screen 1 button click then go to desired screen but when come back then desired screen value also show in screen1.

Can you just drop how you’re loading data when screen1intiallize I think we will still discuss till tomorrow if you don’t

Use your item ither from database or declared variable

:thinking::thinking::thinking::thinking:

Is this possible doing it from screen2 to screen1?

@solomon_zerihun

Can you read it again :grin: the

Sorry for screenshot i was on screen 2, hey @pkdev585 use screen1. Initialize event instead of screen 2.

Yeah finally use this method

1 Like

Yeah i see that :joy: it’s my bad i was on screen 2 and my tab confused me​:joy:…

1 Like

Hey @pkdev585 i don’t recommend you to use this block since it only switch your screens in my opinion.

I agree with @solomon_zerihun the guide of @RaYzZz is about closing the screen not reload the data in screen one, @RaYzZz can you please drop another guide how to reload the wdata with on screen1 app resume I leave it for you since you provide this method, hope you will understand

Please @RaYzZz