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

Compare with Current View Page History

« Previous Version 12 Next »

Find a Code Example


Overview

The Scripting Reference provides comprehensive documentation for developing custom logic in FrameworX 10.1. With support for multiple programming languages including C#, VB.NET, Python, and JavaScript, you can implement complex calculations, automation logic, and integrations. This guide covers syntax, APIs, best practices, and practical examples for all scripting scenarios.

Scripts Module

→ Scripts Module: follow this link with information about the Scripts Modules

This section focus on the usage of the programming, not the Script Modules itself. 

This section is recommended to be used, only after the understanding of the Scripts Module.



Supported Languages

Language Comparison

LanguageUse CasesPerformanceLearning CurveKey Features
C#Complex logic, performance-criticalExcellentModerateFull .NET access, strongly typed
VB.NETLegacy systems, simple logicExcellentEasyFamiliar syntax, .NET access
PythonData analysis, ML, scriptingGoodEasyLibraries, readable syntax
JavaScriptClient-side, expressions ,HTML5 (*1)GoodEasyWeb integration, JSON

(1) Use Portable pages instead of HTML

JavaScript is available only in HTML5-only, displays.  Prefer always to the Portable Pages, which allows the configuration on Desktop Rich Clients (.NET WPF) and Web/Mobile clients (WebAssembly).

Keep JavaScript and HTML5 only required for code compatibility  or use of external HTML5 controls.

Language Selection Guide

Decision Tree:
Need maximum performance? => C#
Need higher level of runtime security & Reliably => C#
Legacy VB code? => VB.NET Data science/ML? => Python Client-side logic? => C# & Python server classes
Simple expressions => any language. Platform expression editor can parse different languages.


Scripts Module

→ Scripts Module: follow this link with information about the Scripts Modules

This section focus on the usage of the programming, not the Script Modules itself. 

This section is recommended to be used, only after the understanding of the Scripts Module.



Supported Languages

Language Comparison

LanguageUse CasesPerformanceLearning CurveKey Features
C#Complex logic, performance-criticalExcellentModerateFull .NET access, strongly typed
VB.NETLegacy systems, simple logicExcellentEasyFamiliar syntax, .NET access
PythonData analysis, ML, scriptingGoodEasyLibraries, readable syntax
JavaScriptClient-side, expressions ,HTML5 (*1)GoodEasyWeb integration, JSON

(1) Use Portable pages instead of HTML

JavaScript is available only in HTML5-only, displays.  Prefer always to the Portable Pages, which allows the configuration on Desktop Rich Clients (.NET WPF) and Web/Mobile clients (WebAssembly).

Keep JavaScript and HTML5 only required for code compatibility  or use of external HTML5 controls.

Language Selection Guide

Decision Tree:
Need maximum performance? => C#
Need higher level of runtime security & Reliably => C#
Legacy VB code? => VB.NET Data science/ML? => Python Client-side logic? => C# & Python server classes
Simple expressions => any language. Platform expression editor can parse different languages.

  • No labels