simple form read the first record of database

economyweb 07 Sep, 2021
Hi there.
I have re-created programs with chonoengine

So far I have worked a lot with chronoforms 5 and chronoconnectivity but I had never worked with v7

I am beginning ..

My first big problem.

display a database record in a form.

I have created a new form
I have created the read data base action
I have indicated show the first record
I have named the model "General"

And in the fields the name of the fields are:
General.id
General.nombre
etc..

I have activated the debuger

But it doesn't show me the values.

Debugger show value database
[_vars] => Array
(
[1] => Array
(
[read_data_6] => Array
(
[General] => Array
(
[id] => 1
[user_id] => 978
[created] => 2018-01-02 15:41:12
[modified] => 2021-02-28 21:19:34
[nombre] => Wanderlust gs
[nombre_fiscal] => Wanderlust gs
[nif] => B999999
[direccion] => Puerto
[poblacion] => Tarragona
hansk 10 Dec, 2021
At https://www.youtube.com/watch?v=raXqQcU_OB8&list=PLNdPw6Bog3zcuSKs7NGNi8QPtfj5IsxQA&index=10 you will find an working example. Hope this helps!
Colnem 10 Dec, 2021
Hi

You can use "Advanced Settings", add a "Value & Placeholder", and write Value as {var:read_data_6.General.direccion} for example.
For a drowndown field, you have to use "Dynamic Selection".

Salute from France
You need to login to be able to post a reply.