This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Oct 31, 2013, 10:34 AM
22 Posts

Attachment + Save action

  • Category: Server Side JavaScript
  • Platform: Linux
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 1

I've 2 identically XPages applications they are in 2 different folders.

When I create with the first application a new document and I upload an attachment, save ==> OK

When I create on the 2nd application a new document and I Upload an attachment, save ==> NOK  ==> Error Page

I've compared all the database properties, ACL, signatures and there is no difference.

Anyone a clue ?

 

Exception

Erreur lors de l'exécution de l'expression d'action JavaScript
Erreur lors de l'enregistrement de la source de données : document
Zugriff auf die Datei {0} bzw. diese zu ändern ist nicht zulässig


Expression

   1: #{javascript:if (!document.isNewNote()){
   2: 	var nowfld:javax.faces.component.UIComponent = getComponent("nowFormatted");
   3: 	var nowfmt = @LeftBack(@Text(nowfld.getValue()),3)
   4: 	var userfld:javax.faces.component.UIComponent = getComponent("commonUsername");
   5: 	var userfmt = userfld.getValue();
   6: 	var newAudit = document.getItemValueArray('auditTrail');
   7: 	var newVal = nowfmt + ' - document gewijzigd door ' + userfmt;
   8: 	newAudit.unshift(newVal);
   9: 	document.setValue('auditTrail', newAudit);
  10: }
  11: 
  12: save();
  13: //context.redirectToPage("jap.xsp", true);
  14: var url=view.getPageName()+"?action=openDocument&documentId="+document.getNoteID();
  15: context.redirectToPage(url, true);
  16: 
  17: }

 

 

    com.ibm.domino.xsp.bridge.http.engine.XspCmdManager.service(XspCmdManager.java:272)
com.ibm.xsp.exception.EvaluationExceptionEx: Erreur lors de l'exécution de l'expression d'action JavaScript
    com.ibm.xsp.binding.javascript.JavaScriptMethodBinding.invoke(JavaScriptMethodBinding.java:126)
...


    com.ibm.domino.xsp.bridge.http.engine.XspCmdManager.service(XspCmdManager.java:272)
com.ibm.xsp.FacesExceptionEx: Erreur lors de l'enregistrement de la source de données : document
...


com.ibm.domino.xsp.bridge.http.engine.XspCmdManager.service(XspCmdManager.java:272)
java.lang.SecurityException: Zugriff auf die Datei {0} bzw. diese zu ändern ist nicht zulässig
    lotus.notes.AgentSecurityManager.checkRead(Unknown Source)
    java.io.File.exists(File.java:742)

 

 

Nov 6, 2013, 1:17 PM
30 Posts
Just a guess

 

Just a guess... Is your underlying form to which you save documents in old application?

If yes, you must add datasource in your new application which points to your form in old app.Here is picture of that setup:

 

pic

 

Hope it helps


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal