Hi,
In JS header form I have this JS function :
function copierDocJoint(doc,nomDocJoint) {
//Copie un rattachement sur le serveur
//Base courante (chemin/nom fichier)
Base = ‘/’+doc.Base.value+‘/’;
//ID du document courant
UNID = doc.UNID.value;
/*Initialise le champ" NomsRattachmentsModif" : noms des fichiers
qui ont été ouverts en modification, utilisé à l'enregistrement (WebQuerySave) du document NOTES
pour remplacer les docs joints par leurs copies*/
//Si champ vide affecte le nom du document joint (set the field)
if (doc.NomsRattachmentsModif.value == '')
{
doc.NomsRattachmentsModif.value=unescape(nomDocJoint)+';';
}
//Sinon concatène la valeu du champ + le nom du document joint
else
{
doc.NomsRattachmentsModif.value=doc.NomsRattachmentsModif.value+unescape(nomDocJoint)+';';
};
/*Crée l’URL pour lancement de l’agent qui va cooier le document joint
passe en paramètre le nom du fichier à copier */
urlAgent = ‘(CopierUnRattachementSurLeServeurCourant)?OpenAgent&NomDocJoint=’+nomDocJoint+‘&UNID=’+UNID;
//Lance l’agent (run agent)
window.location.href = Base+urlAgent ;
}
This function sets value into field and runs an agent (which copy an attachment on the server and open it in other browser window), that work in 5.0.6 server but not with 6.5.2 server (same browser : IE 6) : the field don’t keep the value!
When I save the document, I look if a field is not empty and I run an other agent to re-create attachment, but my field is ALWAYS empty with R6 server but is good on R5 server, I don’t understand why!
Ideas? Server configuration?
I’m into the fog!!
Thierry