Hello!
When manually changing a dropdown , I want to select one row in database and take a description field to move in text area.
---------------- Desing -------------

Content = {var:options}
reload event = dynamic
---------------- Setup -------------

Read_Data 18, it works
Designer label : readclasse
Model name : PrimaryDatabase
table : Ark_Classe
Where condition : idclasse:{data:ddclasse}
Select type : Index the results list by one or more
Fields to retrieve : Description
PHP:
$options;
$options = $this->get("read_data18", "default");
return $options;
Custom code17:
Content : {view:field_textarea5}
My debug after that

But my field Area are empty ?? but .. Why ?
small precision, I am not a pro of PHP !!
Sorry for my english and thank you for reading me
When manually changing a dropdown , I want to select one row in database and take a description field to move in text area.
---------------- Desing -------------
Content = {var:options}
reload event = dynamic
---------------- Setup -------------
Read_Data 18, it works
Designer label : readclasse
Model name : PrimaryDatabase
table : Ark_Classe
Where condition : idclasse:{data:ddclasse}
Select type : Index the results list by one or more
Fields to retrieve : Description
PHP:
$options;
$options = $this->get("read_data18", "default");
return $options;
Custom code17:
Content : {view:field_textarea5}
My debug after that
But my field Area are empty ?? but .. Why ?
small precision, I am not a pro of PHP !!
Sorry for my english and thank you for reading me
Hi mikaelpiecoup,
I've never used this combination but I suspect that you need your 'dynamic' event to just return the text string that you need and not an array of results.
Bob
I've never used this combination but I suspect that you need your 'dynamic' event to just return the text string that you need and not an array of results.
Bob
Change select type to First result found
In the Value for the field area, put
In the Value for the field area, put
{var:read_data18}and get rid of that PHP block.
Hi Bob,
Thanks for your reply,
yes, in reality I'm just trying to put a description under the dropdown. The description must be updated each time the dropdown is changed.
I do not know if there is another way to make it easier.
Hi healyhatman,
Thanks for your reply,
with
But, if i put this here !

I get good value except it's under and not in the field.
Mike
Thanks for your reply,
yes, in reality I'm just trying to put a description under the dropdown. The description must be updated each time the dropdown is changed.
I do not know if there is another way to make it easier.
Hi healyhatman,
Thanks for your reply,
with
{var:read_data18}doesn't work.
But, if i put this here !
I get good value except it's under and not in the field.
Mike
Yes forgot the model.field sorry.
And put it in VALUE not DESCRIPTION
And put it in VALUE not DESCRIPTION
maybe overall my solution is not good.
How would you do a dropdown and text link to the dropdown?
How would you do a dropdown and text link to the dropdown?
No no reason it shouldn't work, unless you have your read data set up wrong and it isn't returning anything
For me, my read data is OK.
especially that it works for the description field in the info tab.
especially that it works for the description field in the info tab.
I'm Tried with "text field" same result

a Bug ?
Have you another solution for Link a dropdown and upgrade a text field ?

a Bug ?
Have you another solution for Link a dropdown and upgrade a text field ?
If you're putting it in the text field again put it in the VALUE field not description
Yes, I understood, on the screenshot above I put in value.
It was to show that it works in the fields descriptions and tooltip but not value!
It was to show that it works in the fields descriptions and tooltip but not value!
Works perfectly for me so don't know
OK my bad sorry it's actually not working for me either, I was remembering other scenarios where it did work (dropdowns and on page load). You should let the dev know using the contact link.
I've also made a bug post on the bug forum.
This topic is locked and no more replies can be posted.