Child pages
  • Web Client
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 41 Next »

Web Clients are one of the ways to deploy Solutions to end users.

Web Client is a browser-based application of which the  UI is rendered in the browser using pure HTML, CSS and a bit of JavaScript for event handling and communication with the Servoy Application Server. The  business logic of the Solution that is running in the Web Client is executed on the Application Server for security reasons: the code of the business logic is not exposed in the webpage markup.

In This Chapter

Supported browsers

The Servoy Web Client runs in the last few versions of all modern browsers, like Mozilla FireFox, Safari, Google Chrome and Internet Explorer.

Internet Explorer support is split, depending on the use of anchors:

  • IE7 or higher if anchoring enabled
  • IE6 or higher if anchoring is disabled

See #Web Client Settings for more info on enabling/disabling anchors.

Starting Servoy Web Clients

Servoy Web Clients run in a browser and can be started by accessing a URL on the Servoy Application Server.

Web Client Start URL

What is does

Comments

{serverUrl}/servoy-webclient

Opens the "Select Solution" webpage

The "Select Solution" webpage will not list any solutions if solution browsing is disabled, see #Solution browsing.

{serverUrl}/servoy-webclient/ss/s/{mySolutionName}

Opens the specified solution

 

{serverUrl}/servoy-webclient/ss/s/{mySolutionName}/a/{value}

Opens the specified solution. The argument value is passed into the Solutions onOpen event handler.

 

{serverUrl}/servoy-webclient/ss/s/{mySolutionName}/a/{value}/{name1}/{value1}/{name1}/{value2}

The same as the previous scenario, but with additional custom keys for additional arguments

 

{serverUrl}/servoy-webclient/ss/s/{mySolutionName}/m/{myMethodName}

Opens the specified solution and executed the specified method after the solution is opened

 

{serverUrl}/servoy-webclient/ss/s/{mySolutionName}/m/{myMethodName}/a/{value}

The same as the previous scenario, but specifying a single value to be passed as an argument into the onOpen event handler and deeplink method

 

{serverUrl}/servoy-webclient/ss/s/{mySolutionName}/m/{myMethodName}/a/{value}/{name1}/{value1}/{name2}/{value2}

The same as the previous scenario, but with additional custom keys for additional arguments

 

Short vs. long syntax

The urls above use the short syntax. Instead of using the short syntax, the following mapping allows using the longer syntax:

  • ss > solutions (Web Client only)
  • s > solution (Web Client only)
  • m > method
  • a > argument

Using Query parameters instead of ...

In all examples above, the specification of the key and value can also be done through query parameters, for example:

{serverUrl}/servoy-webclient/ss?s={solutionName}&m={methodName}&a={value}&{param1}={value1}&{param2}={value2}

Browser sessions

As browsers share session information between all their tabs and windows, it's not possible the run multiple Web Clients hosted from the same application server within the same browser

Embedding a Web Client in an IFrame

A Web Client solution can be embedded inside another webpage, by utilizing the IFrame HTML tags. Check out the Running Web Clients inside an IFrame tutorial for more details on embedding a Web Client inside an IFrame.

Web Client configuration settings

Through the Servoy Admin page, several settings are exposed related to Web Clients. These settings can be found on the Servoy Server Home > Web Client Settings. For more information on the specific settings see Web Client Settings

Basic authentication support for WebClient login

If a solution running in the Web Client does not define a specific form as login form, Servoy will serve a standard SignIn page to the user (a basic html page with a username and password field).

Instead of showing the default SignIn HTML page, it's also possible to show the default browser basic authentication dialog, using one of the two following approaches:

  1. Append "/sv_auth_type/basic" to the Web Client URL. For example:  {serverUrl}/servoy-webclient/ss/s/{mySolutionName}/sv_auth_type/basic
  2. Or enable it for all Web Clients (or in the developer for testing purposes) by setting the admin page property "servoy.webclient.basic.authentication" to true
  • No labels