Get/Read the value of a calculated field on the web application!

Hi,

I am lead to the passage of the notes application to web.

I found that it’s not possible to get/read the value of a calculated field in an agent launched from the form and an object documentcontext. Only editable fields are readable by document context.

After some research that I did, I found that to read these calculated fields, you must save the document before starting the agent.

i used this code in button:

var sParam = ‘&UID=’ + wDocUID + ‘&User=’ + sUser ;

saveDoc.click();

window.location = sPath + ‘/wTansmettreFiche?OpenAgent?&Req=Transmettre’ +sParam

The results that i can’t get the value of calculated field.

Any ideas for this problem?!

Tkx

Subject: Put some computed text on the page.

with the same formula as your computed field onto the page.

Example Passthreu text that has:

Then you can reference the javascript variable.

Subject: Get/Read the value of a calculated field on the web application!!

Hi,

i used this code im my boutton:

var sUser = window.wUserName;

var check = document.getElementsByName(“siege”)[0].value;

var sParam = ‘&UID=’ + wDocUID + ‘&User=’ + sUser + ‘&check=’ + check;

alert(check);

window.location = sPath + ‘/wTansmettreFiche?OpenAgent?’ +sParam

Variable Check must get the field value.

it recovers the field blank, but it’s well informed.

any ideas?

Subject: I can’t see how that code relates to what I posted to do?