Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Highlighted
sidneylu
Contributor III

Clear last viewed state

Hello,

Is it possible to change this behavior.  QV Server seems to "remember" the last viewed state.  So when I

re-open the app, it puts me back to the last known state.  Is there a way to disable this and set a default state

to always open the first tab/sheet of the app?

Thanks

Tags (1)
11 Replies
trdandamudi
Honored Contributor II

Re: Clear last viewed state

See if the below link is helpful:

Removing Last Document State | Qlik Community

trdandamudi
Honored Contributor II

Re: Clear last viewed state

One way is to have a trigger on open like below screen shot:

sidneylu
Contributor III

Re: Clear last viewed state

I forgot to mention in my original post that I do have a trigger -> OnOpen to activate my first sheet.

But when I re-opened the app, it put in sheet2 because that was the last sheet I was in just right before

I closed the browser.  Is there something else I need to handle?

trdandamudi
Honored Contributor II

Re: Clear last viewed state

May be below link should help...

Force "Remove last document state" for all users

sidneylu
Contributor III

Re: Clear last viewed state

I didn't see a solution in the link you provided in above.  In addition, some of the threads talked about

making configuration changes on the QV server which is not what I want.  Thanks for sharing the link.

sidneylu
Contributor III

Re: Clear last viewed state

Looking at my code again, I actually have the following:

1. Settings -> Document Properties -> OnOpen -> Activate Sheet (sheet1)

2. On "Sheet1", I have Trigger -> Run Macro -> Clear All (in sub routine).

But it still doesn't produce the behavior I want.

trdandamudi
Honored Contributor II

Re: Clear last viewed state

We don't use Macros...

Instead of Macro, did you tried the way I mentioned above (Where Clear all as First step ) ?

sidneylu
Contributor III

Re: Clear last viewed state

Are you suggesting to do under Document Properties?

1. Clear All

2. Activate Sheet1

trdandamudi
Honored Contributor II

Re: Clear last viewed state

Yes.. Please.