List of records by MySql query doesn't work on child entity

Post Reply
pico
Posts: 48
Joined: 13 Jul 2019, 23:13
Name: Pico Seno
Location: Jakarta, indonesia
Company Name: Banda Tech
Contact:

List of records by MySql query doesn't work on child entity

Post by pico »

I have this SLA (36) entity as child of Customer entity, which every SLA records should be listed when the customer selected in customer field of Work Order form.

Apparently when I use the [parent_item_id] it always return 0
mysqllistquery-1.png
mysqllistquery-2.png
Then I change the query using select → it works!
mysqllistquery-3.png
mysqllistquery-5.png
Then another issue came up → when I added record to the entity_36, it broke again. Says it doesn't handle more than 1 record.
mysqllistquery-4.png
==============================


However, it works just fine when I change the structure, moved the SLA to the top level.
I think this is a legit bug.
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: List of records by MySql query doesn't work on child entity

Post by support »

In condition you have to use

Code: Select all

[381] in (select ...)
pico
Posts: 48
Joined: 13 Jul 2019, 23:13
Name: Pico Seno
Location: Jakarta, indonesia
Company Name: Banda Tech
Contact:

Re: List of records by MySql query doesn't work on child entity

Post by pico »

Thank you Sergey.
Post Reply