"MySQL query" Query the "Multilevel Dropdown" value of the current record, display the number
-
- Posts: 133
- Joined: 10 Apr 2023, 23:23
- Name: 耀影
- Location: 深圳
- Company Name: 深圳市耀影科技有限公司
- Contact:
"MySQL query" Query the "Multilevel Dropdown" value of the current record, display the number
"MySQL query" Query the "Multilevel Dropdown" value of the current record, display the number
Re: "MySQL query" Query the "Multilevel Dropdown" value of the current record, display the number
It's normal.
It displays the value of the field which is the id parent in the list (top level), and the id.
To get the name of the id value,
use entity_item_value() https://docs.rukovoditel.net/index.php? ... ure_in_3.0
or you can use PHP (with dynamically execution if you don't want to store it in the database)
It displays the value of the field which is the id parent in the list (top level), and the id.
To get the name of the id value,
use entity_item_value() https://docs.rukovoditel.net/index.php? ... ure_in_3.0
or you can use PHP (with dynamically execution if you don't want to store it in the database)
Using Rukovoditel since 2022 --- v3.4 (with extension) in French on PHP 8.2
I keep the French translation up to date
I'm trying to help you (+10 years experience in html, css, php, sql, JS/jquery, python)
I keep the French translation up to date
I'm trying to help you (+10 years experience in html, css, php, sql, JS/jquery, python)
-
- Posts: 133
- Joined: 10 Apr 2023, 23:23
- Name: 耀影
- Location: 深圳
- Company Name: 深圳市耀影科技有限公司
- Contact:
Re: "MySQL query" Query the "Multilevel Dropdown" value of the current record, display the number
How does the field type "MySQL query" get the "Multilevel Dropdown" field value?
"MySQL Formula" uses 'use entity_item_value()' incorrectly?
"MySQL Formula" uses 'use entity_item_value()' incorrectly?
-
- Posts: 53
- Joined: 29 Jul 2016, 12:31
- Name: Shandy Banyutresna
- Location: Indonesia, Jakarta
- Company Name: PT. Kimia Farma
- Contact:
Re: "MySQL query" Query the "Multilevel Dropdown" value of the current record, display the number
i have same issue
any solution
any solution
-
- Posts: 651
- Joined: 30 Oct 2017, 11:24
- Name: Enis Hemedoglu
- Location: Istanbul, Turkey
- Company Name: SCORE DANISMANLIK
- Contact:
Re: "MySQL query" Query the "Multilevel Dropdown" value of the current record, display the number
I think you are using the formula in the wrong way.
It should be something like this.
Let say we have two entities.
Projects (entity id 21), fields:
Be careful, the id of the entity is 21, but in entity_item_value() function, I use the 13 (not 21), because
n Customer Entity, I use an entity field (using project entity) and the id of entity field is 13.
It should be something like this.
Let say we have two entities.
Projects (entity id 21), fields:
- 1. Name, input field ,
2. Status, dropdown field,
3. Start date, date field,
4. End date, date field
- 10. Customer name, input field,
11. Address, input field,
12. Customer type, dropdown field,
13. Project, entity field, (Project Entity selected)
14. Project Status, Mysql Formula Field
Code: Select all
entity_item_value(13,2)
n Customer Entity, I use an entity field (using project entity) and the id of entity field is 13.