Saving a document on the web

hello there.I have a document opened on the web in edit mode and I modify the contents of a field.

When I save (using @command([filesave])), I am redirected to a view which contains the document.

I open the document that I just modified and my modifications have dissapeared!

When I press F5 I can see my modifications…

I get into edit mode and the same thing happens: I have to press F5 to see the latest modifications.

If I modify the doc, close the browser and reenter, I can see my modifications.

I have noticed that if I make an agent run after saving (the doc’s id is passed as a parameter and it is saved in the agent)

it works…no need for refreshing

I’m guessing it could be some problem with my cache…

Does anybody have a possible solution?

PS: I have also tried using @postedcommand([filesave]) and it doesn’t work

Subject: saving a document on the web

Hi Shamia,

Indeed it has to do with browser caching. For that I always add these lines in the html head section of the form:

Greetings,

Martin Vereecken

http://www.bizzybee.be (Notes blog)