-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to create a custom function in a functionRegistry #146
Comments
@askonev Please take a look |
Hello, @dmziryanov
(function()
{
oWorksheet = Api.GetActiveSheet();
oWorksheet.GetRange("A1").SetValue("=min(B1:B3)");
})(); |
Plugins and macroses are great to help, but the best way to solve our problem is to push a custom function (e.g. foo(A2, B2)) through the table and fill certain cells. This function is impossible to create like combination of the existing functions because it should take data from REST API with token authorization and should be defined in such way that cell analizer could evaluate it like other functions (like MS Excel could evaluate custom function with custom calculations defined in macros). As far as I could understood this is imposible without modification ONLYOFFICE/core |
@dmziryanov Yes, you're right about the fact that adding such functionality will require a modification ONLYOFFICE/core. However, how do you look at the analog of the LAMBDA functions. At the moment we do not have this functionality, but we will think about its implementation. |
I can suggest more straightforward case to discuss. We have a need to call a REST web-service and then store the result in the target cell. Is there a way to make such an operation except the macro above (i.e. SetValue...)? |
How to create a custom simple function, for a example foo() to insert in a cell '=foo()'?
Is it possible without modification the source code?
The text was updated successfully, but these errors were encountered: