Skip to content

Accessing data "globally" #14430

Answered by mikesealey
Fabio53443 asked this question in Help
Aug 21, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hey @Fabio53443

I'll take you through how I would get the last row of the customers table as a default value for the Customer field.

Firstly, I've mocked up some sample tables, customers and orders, with some columns including a relationship between the two.

Next, in the design section, I added a Form Block (although this walkthrough would also apply to a Form component, as well as a Multi-Step Form Block). Set the Data Source of the form to be Orders.

I also added a Data Provider on the screen, and set the Data Source to be the customers table. Set the limit to 1, and disable pagination. Add a Headline component to the Data Provider, and set the value to be the binding of {{ New Data Pr…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Fabio53443
Comment options

@Fabio53443
Comment options

Answer selected by mikesealey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants