Increment Attachment          
  
   
 


Get Action Returns the index held in an attachment then increments the value

Get Parameters

  • pageName
  • fileName

Server Side Javascript for GET method

if(typeof(pageName)=="undefined") { transaction.setResult(transaction.SHOW_PAGE); } else { fileName = transaction.getParameter( "fileName" ); data = file.incrementAttachment( pageName,fileName ); transaction.sendPage(data); }
by Admin on 21/04/2008 at 10:09 PM