Coder Social home page Coder Social logo

Comments (6)

shanshanzheng-dev avatar shanshanzheng-dev commented on August 10, 2024

Hi @didu9898 Thanks for reporting this issue. But I can't repro your problem, for my side, the behavior is similar in excel web and excel desktop. They all show "null" on console log, and show "0" as result.
Desktop:
image
Online:
image
My excel desktop version is :
image
for web, you can check if your custom function is registered successfully. Thanks.
image
{
"functions": [
{
"description": "Check param value if empty cell is passed as param.",
"id": "BLANKSNIPPET1.CHECKPARAM",
"name": "BLANKSNIPPET1.CHECKPARAM",
"parameters": [
{
"name": "param",
"type": "any"
}
],
"result": {}
},
{
"description": "Check param value if empty cell is passed as param.",
"id": "BLANKSNIPPET.CHECKPARAM",
"name": "BLANKSNIPPET.CHECKPARAM",
"parameters": [
{
"name": "param",
"type": "any"
}
],
"result": {}
}
],
"allowCustomDataForDataTypeAny": true
}

from office-js.

didu9898 avatar didu9898 commented on August 10, 2024

I checked and the custom function is registered successfully.

My excel version is this:
image

I checked with my colleagues, they also are experiencing similar behavior i.e. 0 in desktop and null in web.

from office-js.

didu9898 avatar didu9898 commented on August 10, 2024

Can you please share screenshot with the cell formulas too?

from office-js.

shanshanzheng-dev avatar shanshanzheng-dev commented on August 10, 2024

Desktop:=SCRIPTLAB.BLANKSNIPPET.CHECKPARAM(A1)
Web:=SCRIPTLAB.BLANKSNIPPET.CHECKPARAM(A1)
Hi @didu9898 seem our excel version is different, I'll check with my colleagues, too. Or I'm not sure if you can update a new version?

from office-js.

MiaofeiWang avatar MiaofeiWang commented on August 10, 2024

Hi @didu9898 , thank you for pointing this out. This change is part of a recent improvement we implemented to address feedback from customers who wanted a way to differentiate between empty cells and cells containing the number "0" in custom functions.

This update has been fully deployed to Excel Online and is available in the Win32 version starting from build 17723.20000. This explains the discrepancy you're observing. For users on the Monthly Enterprise Channel, this feature should be available before mid-August.

Please let us know if you have any further concerns or questions. Thank you.

from office-js.

didu9898 avatar didu9898 commented on August 10, 2024

@MiaofeiWang thank you for informing about the upcoming update.

from office-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.