Code Monkey home page Code Monkey logo

Comments (7)

lindalu-MSFT avatar lindalu-MSFT commented on July 28, 2024

Hi @sameera, I assigned this to Sudhi who can verify. Can you provide the link to the documentation where you found this discrepancy? Thanks, lindalu

from office-js-docs-reference.

sameera avatar sameera commented on July 28, 2024

This NOTE appears on the following page after the remarks:
https://github.com/OfficeDev/office-js-docs/blob/master/reference/shared/document.setselecteddataasync.md

But, that note is correct, I believe for the setDataAsync method. This is more of a missing documentation for the addRowsAsync method. In Matrix mode, while the method can append rows with different formulas, each set added causes the formulas of the rows above to change to the first formula in the appended row (which is unexpected as it's undocumented).
Here's a an ani-gif showing this in effect:
https://1drv.ms/i/s!AuIKF3TQj25muDS-8Xn6NOcnwj_Y

from office-js-docs-reference.

sameera avatar sameera commented on July 28, 2024

I did some more testing and even for setDataAsync method, using Matrix (or event Text) coercionType to bypass calculated column behavior works only when you

  1. write to all the cells in the column
  2. the column already has different formulas.
    If you are writing to one cell of the column which is empty, which has the same formula on the entire column or few cells it, will revert back to calculated columns.

from office-js-docs-reference.

lindalu-MSFT avatar lindalu-MSFT commented on July 28, 2024

@sameera Thanks! I'll leave this for @sumurthy to follow up. We're heading into a holiday week so please be patient if it takes us a while. I'll definitely check back on this issue in a few days. lindalu

from office-js-docs-reference.

sumurthy avatar sumurthy commented on July 28, 2024

This is just the default formula column behavior - may be API needs to describe the behavior of underlying table to avoid confusion. We should log a work item to update the doc.

from office-js-docs-reference.

kbrandl avatar kbrandl commented on July 28, 2024

Transferring this issue from OfficeDev/office-js-docs into OfficeDev/office-js-docs-reference.

from office-js-docs-reference.

Rick-Kirkham avatar Rick-Kirkham commented on July 28, 2024

The documentation has been fixed in the source. It should be in the public docs in a few days.

from office-js-docs-reference.

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.