Giter VIP home page Giter VIP logo

Comments (2)

linear avatar linear commented on June 2, 2024

BUDI-8216 Table Block Buttons do not update the state for the clicked row id

from budibase.

aptkingston avatar aptkingston commented on June 2, 2024

Hey @thinkbig1979. I think we'll need more details here - this is a very common flow that does work properly. Could you screenshot your bindings, because if you're using a button to open the side panel then you do not have a {{ Clicked row._id }} binding that you mention. That binding only exists if you're running actions when clicking a row.

When using buttons like you say, the binding would look like {{ Table block.Foo._id }}.

What you describe is almost exactly what we have by default in our "table with side panel" auto-screen, except we use row click actions rather than a button.

It seems that on page load, the {{ Clicked row._id }} state is popolated with the value from the first row of the table rather than being null.

I'm not sure what you mean here. State values (as in {{ State.x }} bindings) will not have any value until you set them to something. If you've checked "Persist this value" then it might contain a value - it will attempt to load whatever value was last persisted. {{ Clicked row._id }} is a binding that only exists when running actions by clicking on a row, so does not exist until you click on a row.

from budibase.

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.