Uploaded image for project: 'ZK Spreadsheet'
  1. ZK Spreadsheet
  2. ZSS-1371

ZSS can resolve a custom function under collaboration mode

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • None
    • Security Level: Jimmy
    • None

      Steps to Reproduce

      =EXCHANGE(1,23)

      Current Result

      Expected Result

      root cause

      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;			
      		}
      

            Unassigned Unassigned
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: