![]() |
#5 |
Banned
|
А вот что пишут другие спецы:
Цитата:
...
I found this in axapta technet because I need to upload files in Enterpriseportal for import to salestable,salesline... We are working with axapta 3.0 Sp3 It woks fine.... * first of all set the SubmitMethod-property of the design of the webform to Multipart * add a WebUserDefined control to the webform * overwrite the layout-Methode and add following code: webSession().writeTxt( this.label() + ': ' + 'input name="' + this.name() + '" type="file"'); * overwrite the setControl-Methode and use following code: WebSession ws = WebSession(); COMVariant vars = New COMVariant(); BinData BinData = New BinData(); SysInetASPUploadIUploadedFile fileitem = NULL; SysInetASPUploadUploadManager um; FileName strUploadFileName; strUploadFileName = '... filename on server ...'; if (ws.getParm(this.name())) { um = WebSession().aspUpload(); vars.int( 1 ); fileitem = um.Files().Item( vars ); if( fileitem ){ BinData.setVariant( fileitem.binary() ); BinData.saveFile( strUploadFileName ); } } * add a WebButton and set the Command-property to OK andY |
|
|
![]() |
||||
Тема | Ответов | |||
Web-разработка в DAX 4.0 без Enterprise Portal | 19 | |||
Inside Dynamics AX 4.0: The Web Framework | 0 | |||
Web-разработка, документация | 3 | |||
Pokluda: Outbound web service (AIF) | 0 | |||
Web разработка | 1 |
|