Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: GUI for complex expressions

GUI for complex expressions 5 years 5 months ago #62306

  • TMSWhite
  • TMSWhite's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 758
  • Thank you received: 84
  • Karma: 37
Now that ExpressionManager appears to be working, we need a GUI to help people create and debug the more complex expressions it enables.

The attached .jpg files are screen captures of how ExpressionManager renders errors. If it tries to parse an invalid Expression (or other macro, INSERTANS, etc.), it:
(1) Highlights the entire expression yellow
(2) Red-Boxes characters that are known syntax errors -like undefined variables or functions, or unsupported syntax
(3) Provides ToolTips for both - so a mouse-over will provide an error message.

There is an open ticket here.

If people want to play with the ExpressionManager directly, there is a patch here. Via that patch, it is tightly integrated with LS1. It is working for me, but needs to be tested and validated by others before we can seriously consider incorporating it into the main branch.
Last Edit: 5 years 5 months ago by TMSWhite. Reason: added screen shots
The administrator has disabled public write access.
Time to create page: 0.347 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form