Tuto WEBDEV 25

346 Part 9: Useful features of WEBDEV ▶ We will examine the different problems one by one: 1.  The names of the windows: Of course, windows have been transformed into pages. The name of the elements has been changed in the project. This must also be done in the code. Click "Replace all" to automatically perform this operation. 2. Our WINDEV application printed a report in "Report viewer" mode. This option is not available on a WEBDEV site. The code must be modified to create a PDF file. • Double-click "Click (server)" next to "Errors". The click code with the error is displayed. • In the event banner, click on "AJAX enabled" to disable Ajax mode. • Replace the code with: iDestination(iGenericPDF) iPrintReport(RPT_OrderForm) FileDisplay(iLastFile, typeMimePDF, iLastFile) fDelete(iLastFile) • Refresh the display in the audit window: all print errors have disappeared. 3.  The last problem detected is related to the use of fSelect . Indeed, it is not possible to use a file picker in a website. It is preferable to use an Upload control. We have already seen this type of control in Part 3 (paragraph "Managing the image of a product"). This small example allowed us to see the simplicity and assistance provided by WEBDEV to transform a WINDEV project into a site. Remark: In some cases, new developments may be necessary to adapt the application’s behavior to the Web. For example: • If the application was using an Image Editor control, it may be necessary to use an Upload control, which will allow downloading the modified image. • If the application was using a Word Processing control, it may be necessary to use an HTML control with adaptations of the analysis to manage the HTML format. For more details on the webification of a WINDEV project, see the online help.

RkJQdWJsaXNoZXIy NDQ0OA==