Child pages
  • New in 7.4

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • SVY-3659 HTML-based Form Editor (currently only in use for Servoy Mobile)
    By default Servoy Mobile Forms  will still open in the existing Form Editor. To enable the HTML-based form Editor, go to Window > Preferences > Servoy > Form Editor  and uncheck the "Use classic form editor for mobile forms" checkbox.
    Note that by default the browser provided by the operating system is used as internal browser in Servoy Developer. For the best experience it is advised to replace the default browser with the Mozilla XulRunner browser component. See Install Mozilla XulRunner as internal browser for the steps involved.
  • Made Mozilla XulRunner available as plugin to replace the OS-specific browser using as internal browser inside Servoy Developer
    See Install Mozilla XulRunner as internal browser for the installation steps.
  • SVY-3518 Upgraded to Eclipse 4.3.1
    • Color preview on hover over color declarations in the CSS Editor
    • SVY-5252 Support for CSS3 in the CSS Editor: this does not enable CSS3 usage in StyleSheets used on Forms, but allows setting a CSS3 Profile on .css files stored in the media library.
      To set the CSS Profile, open the Navigator View, locate the .ccs file, select 'Properties' from the context menu > Web Content Settings > select desired CSS Profile)
  • SVY-170 Added support to group Forms together in the Solution Explorer
    The context the forms node of the Solution Explorer provides an entry to "Add working set". Through this option a 'folder' can be created, into which Forms can be dragged and dropped.
    The  folders or working sets are stored in the Resources project and thus can be shared with other developers through the team provider used
  • SVY-5033 Added ability to drag and drop media entries around folders inside the media library
  • SVY-5202 Grouped layout related properties in the Properties View
  • SVY- 4448SVY-5195 Improved deleting of User Groups by allowing multi-select
  • SVY-375 Improved the "Select Dataprovider" dialog with option to create new scope variables
  • SVY-5145 Exposed encapsulation and deprecation properties in the ValueList and Relation Editors
  • SVY-3149 Ability to locate scopes using the Servoy Locator
  • SVY-132 Implemented Search for References on entries in the Media Library
  • SVY-5257 Better indication of what type of update is available through the auto-update mechanism
    The Servoy Developer entry in the overview of available updates will have a version that includes details on whether the update is a release candidate or final and similar information is provided in the Description area of the overview.
    Additionally, the non-final updates are exposed through a different new update site, which is disabled by default and should be enabled to receive updates for release candidate updates (see Window > Preferences > Install/Update > Available software Sites). The new update site will be available in new Developer installations from Servoy 7.4 onwards. In Developer installations that were created with Servoy versions prior to Servoy 7.4, the update site can be added manually. The url is https://www.servoy.com/developer/70x_updates/releasecandidate
  • SVY-5194 Improved error reporting when attempting to work on Solutions that are created/modified using a newer version of Servoy Developer

...

  • SVY-5532SVY-5523SVY-5531SVY-5527 Improved support for JavaScript prototype inside code
    Servoy's Script Editor and Build system now have good support for JavaScript prototyping. This allows creating JavaScript objects using prototyping and having proper code completion and builder markers. Supports both setting an Object as prototype or directly assigning new members to the prototype. Prototype members can be marked as deprecated or protected through JSDoc annotations.

    Expand
    titleSample code
    Code Block
    /**
     * @param {String} name
     */
     * @properties={typeid:24,uuid:"AACFB629-BDC1-4250-BCFA-E564C686153E"}
     */
    function BaseEntity(function BaseEntity(name) {
    	/**
    	 * Storing name as a protected instance variable
    	 * @protected
    	 */
    	this.name = name
    }
    /**
     * Self executing function (IIFE) to setup the prototype of BaseEntity when the scope in which the functions reside gets instantiated
     * 
     * @private
     * @SuppressWarnings(unused)
     * @properties={typeid:35,uuid:"13635962-8720-4666-9955-6D8BEF94CE38",variableType:-4}
     */
    var initBaseEntity = (function() {
    		//Setting the prototype of BaseEntity to an object with a set of methods
    		BaseEntity.prototype = {
    			publicMethod: function() {},
    			/**
    			 * This is bananas
    			 * @protected
    			 */
    			protectedMethod: function() {},
    			/**
    			 * and this
    too
    			 * @deprecated
    			 */
    			deprecatedMethod: function() {}
    		}
    		//Extending the previously set prototype object with another method
    		BaseEntity.prototype.getName = function() {
    			return this.name
    		}
    	}())
    
    /**
     * The extends tag signals the build system that public & protected members added through super constructor are known to code completion and the build system<br>
     * <br>
     * The constructor tag takes care of removing the inconsistent return value warning<br>
     * <br>
     *
     * @constructor 
     * @extends {BaseEntity}
     * @param {String} name
     * @param {String} type
     *
     * @properties={typeid:24,uuid:"1D55BCFC-CEE2-4445-95E7-792152E36876"}
     String} type
     */
    function ExtendedEntity(name, type) {
    	//Fail-save for when the ExtendedEntity gets called without the 'new' keyword
    	if (! (this instanceof ExtendedEntity)) {
    		return new ExtendedEntity(name, type)
    	}
    	//Calling the BaseEntity constructor, so that the logic defined in the constructor is invoked
    	BaseEntity.call(this, name)
    	/**@protected*/
    	this.type = type
    }
    /**
     * Self executing function (IIFE) to setup the prototype of ExtendedEntity when the scope in which the functions reside gets instantiated
     * 
     * @private
     * @SuppressWarnings(unused)
     * @properties={typeid:35,uuid:"8F148031-763B-47B8-A69C-35458EDB6857",variableType:-4}
     */
    var initExtendedEntity = (function() {
    		/* Setting the prototype of ExtendedEntity to an object that has BaseEntity.prototype as prototype
    		 * BaseEntity.prototype is not used directly as prototype for ExtendedEntity, as this would mean that any additions made to
    		 * the prototype of ExtendedEntity would actually be made on the prototype of BaseEntity
    		 */
    		ExtendedEntity.prototype = Object.create(BaseEntity.prototype, {})
    		//Properly set the constructor
    		ExtendedEntity.prototype.constructor = ExtendedEntity
    		ExtendedEntity.prototype.getType = function() {
    			return this.type
    		}
    	}())
    /**
     * @properties={typeid:24,uuid:"586D324D-F1D9-474B-B4EE-E9238E73F80E"}
     */this.type
    		}
    	}())
    
    function test() {
    	var x = new ExtendedEntity('Servoy', 'company')
    	application.output(x.getName()) //Yields 'Servoy'
    	application.output(x.getType()) //Yields 'company'
    	
    	//These bits of code will result in warnings
    	x.protectedMethod()
    	x.deprecatedMethod()
    	x.name
    	x.type
    }
  • SVY-5615 Improved build system to handle special JavaScript methods like function.call, function.apply, function.bind and Object.create
    For .apply/call/bind, the build system will recognize that the .apply/call/bind method will return the same type as the function on which it is called, for example:

    Expand
    titleSample code
    Code Block
    var x = Object.prototype.toString.call(object) //Build system will know that .call will return a String, as it is called on the .toString() method of Object, which returns a String value
     
    function test() {
        var y = Array.prototype.slice.call(arguments) //Build system will know that y is an Array, as .slice() of Array returns an Array
    }

    For Object.create(object, properties) the build system will know that what Object.create returns has the same type as the value of the object parameter, enhanced with the (optional) properties (See Object.create for more info)

  • SVY-5827 support function types with rest parameters in typedefs

    Expand
    titleSample code
    Code Block
    /**
     * @typedef {{
     * 	name: String,
     *  handler: function(String, Number|*...)
     * }}
     */
    var MyType
  • SVY-5114 Improved support for Union Types in JSDoc
    For example function parameters can now be declared to take an Array containing Strings and/or Numbers.

    Expand
    titleSample code
    Code Block
    /**
     * Method defined to take one argument, which is an Array that can contains both Numbers and Strings
     * @param {Array<String|Number>} arg
     */
    function method(arg) {}
    function demo() {
     //These are fine
     method([1, 'one', 2, 'two', 3, 'three'])
     method([1,2,3])
     method(['one','two','three'])
     
     //This invocation raises a builder marker, as false is neither a Number or a String
     method([1, 'two', false])
    }
  • SVY-5113 Support builder markers when supplying a reference to a function object as value to another functions parameter, but the signature does not match

    Expand
    titleSample code
    Code Block
    /**
     * @param {function(String, Number):Boolean} f
     */
    function method(f) {
    	
    }
    
    
    function demo() {
    	/**
    	 * @param {String} name
    	 * @param {Number} age
    	 * @return {Boolean}
    	 */
    	function one(name, age){
    		return true
    	}
    	
    	//No warnings here because the signature of function 'one' matches the requires signature for the 'f' parameter of 'method'
    	method(one)
    	
    	/**
    	 * @param {Number} age
    	 * @param {String} name
    	 * @return {Boolean}
    	 */
    	function two(age, name){
    		return true
    	}
    	
    	//These raise builder markers for obvious reasons
    	method(two)
    	method(function(){})
    }
  • SVY-3555 Enabled the strike-through of deprecated member declarations in the Script Editor

  • SVY-5524 Exposed Error.stack property in scripting
    Allows getting the stacktrace of JavaScript Error objects 
  • SVY-5371 Support returning an instance of itself inside Constructor functions without warnings being generated
    This allows building in a fail-save for Constructor function not being called with the new keyword

    Expand
    titleSample code
    Code Block
    /**
     * @public
     * @constructor
     */
    function MyConstructor(name) {
    	if (!(this instanceof MyConstructor)) { //constructor is not called with the 'new' keyword
    		return new MyConstructor(name)
    	}
    	//rest of the constructor logic
    };
  • SVY-3049 Made the preference to initially fold the Header comment work (Preferences > JavaScript > Editor > Folding)
  • SVY-4876 Fixed the generation of JSDocs through the "Generate Element Comment" option to not insert an @return tag if the function does not return anything 
  • SVY-4226 Improved "move code" option of the Solution Explorer to not insert the scope prefix if inserting into the same scope

...

  • SVY-69 Disabled text-selection while a Drag 'n' Drop operation is taking place
    The side effect is that selecting text on elements that also have an onDragStart event handling that starts a Drag 'n' Drop event is not possible anymore 
  • SVY-521 Added ability to customize internal icons of Calendar and Image fields
    See Replacing default element imagesDefault Element Images
  • SVY-1419 Made Calendar  popup style able
    See Replacing default element imagesDefault Element Images
  • SVY-5176 Improved onRender performance on consecutive calls
    onRender will now only cause client side updates if there are actual changes to make. 
  • SVY-5701 Updated HTML Editor (in editable HTMLArea) to TimyMCETinyMCE
    The old editor was replaced as it was not supported anymore and caused issues on newer browsers
    The  TinyMCE integration is a basic version of TinyMCE. It can be customized through the APP_UI_PROPERTY.HTML_EDITOR_CONFIGURATION client property of the HTML Area element
  • SVY-5774 Option to hide the loading indicator separately from the blockInputOnRequest
    Whether or not the Loading indicator is visible can now be controlled through the servoy.webclient.hideloadingindicator setting on the Servoy Admin page. Prior to Servoy 7.4 when enabling the servoy.webclient.blockinputonrequest setting, the Loading indicator would be disabled automatically.
  • SVY-5730 Added Array Arrow Up/down keyboard navigation to TableViews

...

Note
titleBehavior Change

SVY-5695: Since Servoy 6.1 the name of the Solution was automatically appended to the name of the shortcut created by Java Webstart when branding was enabled, to get the same behavior as when branding was not enabled and to be able to have multiple shortcuts be created for multiple solutions hosted on the same Servoy Application Server. However, this change did not take into account the fact that if only one solution was hosted, it might be preferred to not have the name of the Solution included, but only the value of the servoy.branding.webstart.shortcuttitle setting. It also did not take into account the fact that the name of the Solution is usually something internal to the developer and the public "name" is set in the title property of the Solution. Hence Servoy 7.4 reverts the behavior of including the name of the solution into the title of the shortcut by default when branding is enabled. Instead it now supports to put the value of the title property of the Solution into the name of the icon, by including the following syntax in the value of the servoy.branding.webstart.shortcuttitle setting: %%solution.title%%

SVY-5876 In the case of exceptions occurring in the Web Client, the default error page offers a link to return to the homepage. Prior to Servoy 7.4 this link would redirect the user to the main entry point of the Servoy Application Server. As of Servoy 7.4 this instead redirects to /servoy-webclient/

  • SVY-3072 Added support for exporting the scale of columns when exporting to a .servoy file
  • SVY-5357 Ability to include Solutions in a WAR export
    See the additional checkbox on the War Export Wizard (Solution Explorer > Active solutions > Context menu > Export Solution > War Export )
  • SVY-5774 Introduced servoy.webclient.hideloadingindicator setting to control the display of the Loading Indicator independent from the servoy.webclient.blockinputonrequest

Plugin & Bean Development

...