Looking for alternative to querysave for xpages

I am trying to change a field when the user submits but before the save happens, being as how there is a bug with querysavedocument that won’t be fixed until 8.5.1 I was wondering if anyone had any suggestions, I already tried putting a simple action in the submit button but that didn’t work either. Any advice would be appreciated, thank you.

Subject: Is that the following bug? And what’s your scenario?

http://www-10.lotus.com/ldd/nd85forum.nsf/5f27803bba85d8e285256bf10054620d/4a4243cbc6692f848525751b005b71b8?OpenDocument&Highlight=0,querysavedocument

This will be fixed for 8.5.1

For a workaround, what is you scenario?

Subject: scenario

Hi Paul,

So I have an xpage which has an additional panel that does a DBLookup on a separate set of documents to get values that adjust depending on the 1st document fields on the xpage. Then when a user submits it adds a 1 to the second document in the panel. However in playing around some more I think I might have figured out that I can’t change values from one panel to the other. I noticed when I tried calling the field value in a button from the first panel and it wouldn’t give me the value that was listed, however when I added the same button to the second panel and pressed it, I get an alert with the correct value.

I’m going to try saving both documents and see if that corrects this issue.

Subject: solution found

After looking into it more, I couldn’t get server-side scripting to do what I wanted, when I tried Client-side I was able to get it to work only if I put the submit button into the second panel where the value was being changed. If I had the submit button outside of the second panel it would not recognize the data in the field and would put “NAN” instead of the correct integer value.