View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
11832Feature requestsPluginspublic2025-01-10 16:06
Reporteraledesma Assigned ToDenisChenu  
PrioritynoneSeverityfeature 
Status closedResolutionduplicate 
Product Version2.5+ 
Summary11832: access to RegisterFunctions
Description

Seems that the RegisterFunctions function even though it is public it is not accessible via the LimeExpressionManager.
It is not possible to write a plugin to extend the Expression Manager. Currently all changes have to be made in the em_core_helper.php and in em_javascript.js

Additional Information

A possible solution is to enable the LimeExpressionManager singleton to access the function RegisterFunctions. Upon registering user defined expressions, it is necessary to provide also a JavaScript function. An additional file or similar solution should be provided. For instance, have a JavaScript file that extends the em_javascript functions in a modular fashion.
In summary: a mechanism should be provided for developers to add to the RegisterFunctions method the function so that it can also be defined in the JavaScript file.

Tagsexpression manager
Bug heat4
Story point estimate
Users affected %

Relationships

duplicate of 13513 closedDenisChenu Update save way to add custom made EM functions 

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2016-10-27 02:22

developer   ~41575

Really strong support : a must have in fact .

But : EM is brittle and capricious ... then a lot of work

javifinarfin

javifinarfin

2025-01-10 13:07

reporter   ~81804

Wouldn't be this solved with this? https://github.com/LimeSurvey/LimeSurvey/commit/2a7490b5fd5559a96882e88774c37530b9415bcc

DenisChenu

DenisChenu

2025-01-10 16:05

developer   ~81805

Totally !

DenisChenu

DenisChenu

2025-01-10 16:06

developer   ~81806

https://www.limesurvey.org/manual/SetVariableExpressionEnd
and
https://www.limesurvey.org/manual/ExpressionManagerStart

Issue History

Date Modified Username Field Change
2016-10-25 16:34 aledesma New Issue
2016-10-27 02:22 DenisChenu Note Added: 41575
2016-10-27 02:23 DenisChenu Tag Attached: expression manager
2016-10-27 02:23 DenisChenu Category Expression Manager => Plugins
2016-10-27 02:23 DenisChenu Product Version => 2.5+
2025-01-10 13:07 javifinarfin Note Added: 81804
2025-01-10 13:07 javifinarfin Bug heat 2 => 4
2025-01-10 16:05 DenisChenu Note Added: 81805
2025-01-10 16:05 DenisChenu Relationship added duplicate of 13513
2025-01-10 16:06 DenisChenu Note Added: 81806
2025-01-10 16:06 DenisChenu Assigned To => DenisChenu
2025-01-10 16:06 DenisChenu Status new => closed
2025-01-10 16:06 DenisChenu Resolution open => duplicate