Quintiq file version 2.0
|
#parent: #root
|
Method BrowseFiles () id:Method_LibSOPImpExp_DialogExcelImport_BrowseFiles
|
{
|
#keys: '[144528.1.509618324]'
|
Body:
|
[*
|
// Prompt user to browse the files.
|
webfiles := Application.GetFiles();
|
|
if( webfiles <> '' )
|
{
|
jsonArray := JSON::Parse( webfiles );
|
jsonArraysize := jsonArray.Size();
|
|
filenames := construct( Strings );
|
filedata := construct( Strings );
|
for( i := 0; i < jsonArraysize; i := i + 1 )
|
{
|
json := jsonArray.Get( i );
|
name := json.Get( "name" ).GetString();
|
data := json.Get( "data" ).GetString();
|
|
// Build up the array and send once to server (avoid one call per loop)
|
filenames.Add( name );
|
filedata.Add( data );
|
}
|
|
this.O_GetAppImportObject().astype( LibSOPImpExp_ImportExcel ).SaveUserUploadedExcels( filenames, filedata );
|
}
|
*]
|
}
|