Within the Designer on a form there is a checkbox within the Field properties called "Compute after validation".
Alike that I wish there would be a similar option having computed fields to recalculate AFTER the WebQueryOpen Agent ran on a web form.
This could be of use in any cases of web forms like:
- OpenDocument
- EditDocument
- OpenForm
- OpenView (using a ViewTemplate Form)
Having a WebQueryOpen Script Agent which sets a field with "ReplaceItemValue" the other field with the new option described above could recalculate to include the information written by the WebQueryOpen Agent.
So you ask why the WebQueryOpen Agent did not write the corresponding field in the first place?
There are cases where this is unfortunately not possible like using the Formula command @SetHTTPHeader when you want to populate the header value to set from information being set from the WebQueryOpenAgent. The computation order does not support this scenario cause it calculated the computed fields (with the @SetHTTPHeader statement) first and after that running the WebQueryOpen Agent.
Of cource also it would be nice if there would be a command to set HTTP Header within Lotus Script WebQueryOpen Agents itself - like:
Call session.setHTTPHeaderVariable(name, value)
Mark Reiser, sirius-net GmbH