Giter Site home page Giter Site logo

Comments (3)

thechriskent avatar thechriskent commented on August 22, 2024 2

@johnnyshield according to the documentation, the Filename (in Document libraries) column is NOT supported:

image

It seems like a bug that Format this column is even an option for the column type. In fact, I've opened an issue regarding this on the main Issues list: SharePoint/sp-dev-docs#1524

As a workaround, you can use this format on the filename column since the problem is just with the underlying FileLeafRef's column type causing the @currentField keyword not to work:

{
  "$schema": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json",
  "elmType": "div",
  "txtContent": {
    "operator": "+",
    "operands": [
      "[$FileName]",
      ".",
      "[$File_x0020_Type]"
    ]
  }
}

from list-formatting.

johnnyshield avatar johnnyshield commented on August 22, 2024

From further testing, it's not just text-wrapping that's affected. It appears to be any JSON formatting of the SharePoint Name column.

image

from list-formatting.

aquanikus avatar aquanikus commented on August 22, 2024

I know that's a little bit late, but you could try LinkFilename as a name column. That's a default name of file in sharepoint library. That work for me in FLOW OData question, when I sort returned elements by file name LinkFilename asc
I hope that's help for someone ;)

from list-formatting.

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.