﻿// --------------------------------------------------
// Upload purchase requisition items from Excel 
// --------------------------------------------------

// select a file
SelectFile name="xfile" _ 
     title="Select the Excel file to upload" _
     filter="*.xlsx" _
     directory="C:\Puchase Requisitions Excel"

// any file selected? else no action
if not Q[ok]
  return  "S: No file selected"  -statusline
endif
// 

// upload Excel file via JavaScript
CallJSAsync excel_me51n_upload "&V[xfile]" 

Return
