-
New Feature
-
Resolution: Done
-
Major
-
None
-
None
-
Security Level: Jimmy
-
None
User Story
As an app dev, I want to use a custom function in a formula under collaboration edit mode.
Details
Step to reproduce
1. run the attached example
Current result
check C4 that has =EXCHANGE(D4,E4), its value is #NAME?
Expected result
the number value, 313
Related code
the code below avoids adding a page function mapper, so that zss can't locate a xel function or taglib function declared on a zul page
Spreadsheet.java
private void initBook0(SBook book) { ... if(isBelowDesktopScope(_book) && _book instanceof EvaluationContributorContainer && ((EvaluationContributorContainer)_book).getEvaluationContributor()==null){ ((EvaluationContributorContainer)_book).setEvaluationContributor(new ComponentEvaluationContributor(this)); }
public class ComponentEvaluationContributor implements EvaluationContributor,Serializable { @Override public FunctionMapper getFunctionMaper(SBook book) { if(!checkAlive() && !isBelowDesktopScope(book)){ //should contribute any thing if the scope large then desktop return null; }
- relates to
-
ZSS-1371 ZSS can resolve a custom function under collaboration mode
- Open