928 new features of WINDEV 28, WEBDEV 28 and WINDEV Mobile 28

215 N e w f e a t u r e W D W B WM COMBINE 2 EXISTING SETS OF ELEMENTS: DESKTOP APPLICATION AND WEBSITE By integrating a website into a window in a desktop applica- tion, you can share existing elements and boost productivity. Benefit of this new feature in version 28: Reuse existing elements 216 N e w f e a t u r e W D W B WM INTEGRATE A WEBDEV PAGE INTO A WINDEV WINDOW WINDEV's new "WEBDEV Page" control allows you to inte- grate a website into a WINDEV application, and to interact with this site programmatically. Simply specify the URL of the page to insert. The window that contains the control interacts with the page via browser procedures. These procedures are accessible in the WINDEV code editor and benefit from code completion. Benefit of this new feature in version 28: No need to write code twice 217 N e w f e a t u r e W D W B WM INTERACTION: CALL PAGE PROCEDURES FROM THE WINDOW The WEBDEV page procedures that can be called from a WIN- DEV window must be declared in a shared interface. These procedures can make AJAX calls to the server. Code example: Code in the WEBDEV page // Declarations implements Interface_containing_accessible_methods_of_the_page uses Interface_containing_the_available_callbacks_from_page_to_window // Use MyUserHostControl. ACallback () Code in the WINDEV window // Declaration uses Interface_containing_accessible_methods_of_the_page implements Interface_containing_the_available_callbacks_from_page_to_window // Use MyPage. APageProcedure () Benefit of this new feature in version 28: Page and window interact using WLanguage 218 N e w f e a t u r e W D W B WM INTERACTION: CALL WINDOW PROCEDURES FROM THE PAGE The WINDEV procedures that can be called from the WEBDEV page must be declared in a shared interface. This interface generates a configuration file. This configuration file must be provided to the WEBDEV envi- ronment, which will then allow you to natively call the proce- dures. You will be able to call the window procedures directly from the code of the Browser procedures of the page. Benefit of this new feature in version 28: Call the window from the page 219 N e w f e a t u r e W D W B WM NEW LAYOUT AVAILABLE FOR THE WEBDEV PAGE A web page can contain menus, an ad banner, style controls, a footer with the legal notice... This information may no longer be useful when the page is integrated into a WINDEV application. To solve this, a new type of layout specific to the WINDEV and WINDEV Mobile integration is now available in WEBDEV. This layout allows you to avoid displaying certain information. Benefit of this new feature in version 28: Easily adapt the web page layout to the app 220 N e w f e a t u r e W D W B WM FIRST-LEVEL SECURITY The page and the window must exchange data in a secure way. To start with, navigation in the WEBDEV page is limited to the domain of the URL provided in the application: this eliminates the risk of cross-site scripting attacks (XSS). If the WEBDEV page contains sensitive data, there are several methods to secure access to the page: • Setting up an authentication method with Windows ses- sion login credentials (Single sign-on (SSO)) • Requesting site login credentials at the start of the session and storing the encrypted login information in memory • Requesting site login credentials every time the user tries to access the page,... AWEBDEV SITE IN AWINDEVWINDOW INTEGRATE AWEBDEV SITE INTO AWINDEVWINDOW WITH BI-DIRECTIONAL COMMUNICATION USING WLANGUAGE N ew f e a t u r e s i n W I ND E V 2 8 WE BD E V 2 8 W I ND E V Mo b i l e 2 8 44

RkJQdWJsaXNoZXIy NDQ0OA==