Child pages
  • New in 7.0

Versions Compared

Key

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

...

In order for all this to work, the builder process needs to be able to infer typing information from the JavaScript source. With JavaScript being a weak-typed and dynamic language, this information can't always be inferred from the source-code itself. The typing information that cannot be inferred from the source-code itself can be supplied using JSDoc. In order to supply all the relevant information the JSDoc support within Servoy Developer has been extended as well. Migration When importing Servoy solutions created in earlier version of Servoy into Servoy 6, most likely a lot of new warnings will be generated for the existing JavaScript source-code. The majority of these warnings will relate to the following scenario's:

  1. Calls to functions that do not have the proper JSDoc to specify the number and type of their parameters and whether or not the parameters are optional:
     

Refactoring support

Added support for automated JavaScript source code refactoring. The following refactoring options are available:

...

  • Wiki Markup
    Support for typed Arrays: String\[\] or Array\<String\>
  • Support for typing JSFoundSets and JSRecord to be of a specific datasource: JSFoundset\<datasource\> or JSRecord\<datasource\> (a datasource string is build up like this: "
    Wiki Markup
    db:/{serverName}/{tableName}", so for example "
    db:/udm/contacts")

Misc.

  • Better support for advanced JavaScript code structures
  • Better support for inline Java code
  • Automatic JSDoc @type setting on global and Form variables 

...

  • Made all possible builder markers for JavaScript file configurable:
    See Window > Preferences > JavaScript > Error/Warnings: Each possible builder marker on JavaScript files is listed and can be set to be ignored or to generate either an Error or a Warning marker 
  • Added QuickFix to create the unresolved method on builder markers for unresolved methods attached to events and commands 
  • Added "Element in form "...." is outside the bounds of form." builder marker for elements placed below the last Form part. Note: elements placed below the last form part on a form are not instantiated at runtime, thus are not in the elements array or visible on the Form
  • Added builder marker to warn about dataprovider of type text with a small length that are attached to HTMLArea's or RTFArea's, as these type of fields generate more markup in the dataprovider than the user actually sees
  • Added builder marker to warn about fields with a format setting that isn't appropriate for the type of the data provider: 'Element in form "..." has incompatible format with its data type (...) : "..."'
  •  Description Resource Path Location Type
    Element in form "sybaseCalc" has incompatible format with its data type (Text) : "####.00". sybaseCalc.frm /servoy_office/forms servoy_office/forms/sybaseCalc.frm Form Problem
Miscellaneous 
  • Added a Servoy Active Solution Working set: the workset functionality of Eclipse allows to limit the scope of operations like searching or display of builder markers. The Servoy Active Solution workset is a pre-defined workset that contains the Active Solution and all it's modules. The Servoy Active Solution working set can be used in:
    • Problems view: The contents of the Problems view can be filtered to only show the builder markers for the active solution. Click "View menu" > Configure Contents > Select "Servoy Active Solution Filter"
    • Searching: In the Search dialog, the scope of the Search can also be restricted to the Servoy Active Solution workset:
  • Servoy MarketPlace integration
    • Servoy MarketPlace can be opened in Servoy Developer, through Help > Servoy MarketPlace
    • When supported by the product in the MarketPlace, the product can by instantly downloaded and installed into Servoy Developer 
  • Added option to show the firstForm of the solution that is being activated (see Window > Preferences > Servoy > Form Editor) 
  • Wiki Markup
    Improved output to console of Javascript objects: \{name: someValue}&nbsp;instead of \[object Object\]
  • Added predefined update url for JSDoc plugin (https://www.servoyforge.net/projects/jsdoc)
  • Updated Servoy Developer to Eclipse Helios (3.6)
  • Reduced memory footprint of solutions in Servoy Developer by about 40% 
  • Reduced startup time of Servoy Developer by lazy loading not active solutions
  • Added command line Solution Exporter
  • Added JUnit testclass for running JSUnit tests contained in a solution within the JUnit framework
  • Made update of Calculations and Aggregates in the Replace Table action optional
  • In the Debug Smart Client, a call to application.showUrl(...) will open the URL in a browser within Servoy Developer
  • In Table Editor, when creating a new column containing the text "email" or "url" in the columnName, automatically set the type to "Text" and the length to resp. 254 or 2048 (based on the specifications for email addresses and urls)
  • Added "Maximum prepared statements idle" property in Database Server Editor (was already exposed on the Admin page)
  • Made "Link with Editor" work for Styles, Tables and Database Servers as well
  • Added "FoxPro DBF" New server template
  • Added ability to to also externalize hard-coded Strings inside JavaScript code (See Externalize Messages dialog)

...