https://bz.apache.org/bugzilla/show_bug.cgi?id=62969

--- Comment #3 from Dominik Stadler <dominik.stad...@gmx.at> ---
Created attachment 36288
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36288&action=edit
Workaround by overloading FunctionEval.functions

I had the same problem some time ago and used a workaround by putting a class
into the org.apache.poi.ss.formula.eval package and accessing the protected
FunctionEval.functions-array this way, see the attached sample code.

// MyHyperlink returns the URL Value instead of the normal text-value returned
usually by the Hyperlink function
Function func = new MyHyperlink();

BuiltinFunctionsOverloader.replaceBuiltinFunction(359, func);


Maybe we can make it possible to override functions this way in FunctionEval
natively via a static FunctionEval.replaceBuiltinFunction() and provide the
alternative implementation of Hyperlink together with sample code? This would
spare us from breaking existing interfaces.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to