I have a sever side javascript from where I am calling Java Class to write the content to the file by reading a view entries.
I can show the loader in xpage front end that there is something happing behind. Now the java class iterates through the view entries, I wish to print the current status by showing the number of entries done in Java class, like 100 of 3000 entries are done and the done entry counts need to be updated dynamically in xpage frontend. To achieve this, I tried:
From the java class I save the counts of processed entries to a document in the database in the field entryCounter
in the while loop and so on, then trying to access the same document field inside the xpage view, but here the count updates after completing the previous script call which is of Java Class Call, after the java class completes and the last server side script call ends the count gets updated, which is of no use, I want to show the real time counts while java class is processing the entries in the front ent to the user, because the server side event takes at least 5 min to complete the event process.
In between, server side event the other server side event don't gets fired to partial update the count component which I am trying get from the document saved by java class.
Is there any other way to dynamically update the count of processed view in java class?
In short I am trying dynamically update the count which is update in document from Java Class, but it is not getting updated if already a server side call is going, one that call completed the value for last count updates to the computed field.