cancel
Showing results for 
Search instead for 
Did you mean: 

how can I be informed of repository contend updates?

esafonov
Champ in-the-making
Champ in-the-making
Please, how can my client application talking to Alfresco be informed, that repository content has changed?
I dont ask for a big explanations, a good href is enoughSmiley Happy

I mean:

1) Flex application (RIA-client) talk to Alfresco via CMIS (or any other way),
and this application has opened the documents tree, and waiting for a user input

2) While the app was waiting, Alfresco repository content has changed by other users (processes)

The question is:
Is there a way to tell my application: "hay, while you're waiting, someone has changed a document treeSmiley Happy".
Or I need to reload content over and over again to notice it changed?
2 REPLIES 2

esafonov
Champ in-the-making
Champ in-the-making
Please, does anybody know, is it absolutely necessary to press "Refresh" button in Alfresco explorer navigator, to reload workspace childrens list? Is there any way exists to get application informed of changes? Any help is highly appreciateSmiley Happy

mrogers
Star Contributor
Star Contributor
Unfortunatly internet browsers only pull information from a web server, Its always been a huge restriction in building web applications.

Although the alfresco repository can call your code via a policy when content changes there's no way for that server-side code to contact your browser.

There's two work-arounds for this limitation in your web browser.    One is for your browser to poll the server until you see a change.    You can either do this  through ECMA script or AJAX.     The other solution is to write a Java Applet.