Elements order at list where more than one group

Status
Not open for further replies.
You can "Randomize elements" inside a group and "Randomize groups" in your form but I think it doesn't affect the list view.
 
You can "Randomize elements" inside a group and "Randomize groups" in your form but I think it doesn't affect the list view.

Yes, it doesn't affect the list view.

Now I think to do a new databasejoin dropdown (or better auto-complete) with filter in option "Joins where and/or order by statement (sql)".

But I have errors.

Code:
WHERE `dbme_entity_performance`.`entity_full_name` 
IN 
(SELECT dbme_entity_repeat_user_access.parent_id FROM dbme_entity_performance, dbme_entity_repeat_user_access WHERE dbme_entity_repeat_user_access.user_access = {$my->id}
)


Error message :
Code:
Unknown column 'dbme_entity_performance.entity_full_name' in 'IN/ALL/ANY subquery' SQL=SELECT DISTINCT(`dbme_entity_1`.`id`) AS value, edrpou_code AS text FROM `dbme_entity` AS `dbme_entity_1` WHERE `dbme_entity_performance`.`entity_full_name` IN (SELECT dbme_entity_repeat_user_access.parent_id FROM dbme_entity_performance, dbme_entity_repeat_user_access WHERE dbme_entity_repeat_user_access.user_access = 944 ) ORDER BY text ASC
 
Use {thistable} (literally)
WHERE {thistable}.`entity_full_name` IN (SELECT dbme_entity_repeat_user_access.parent_id FROM dbme_entity_performance, dbme_entity_repeat_user_access WHERE dbme_entity_repeat_user_access.user_access = {$my->id} )
 
Use {thistable} (literally)
WHERE {thistable}.`entity_full_name` IN (SELECT dbme_entity_repeat_user_access.parent_id FROM dbme_entity_performance, dbme_entity_repeat_user_access WHERE dbme_entity_repeat_user_access.user_access = {$my->id} )

THANKS!

It's work, but some another
WHERE {thistable}.`entity_full_name` IN (SELECT dbme_entity.entity_full_name FROM dbme_entity, dbme_entity_performance WHERE dbme_entity.id IN (SELECT dbme_entity_repeat_user_access.parent_id FROM dbme_entity, dbme_entity_repeat_user_access WHERE dbme_entity_repeat_user_access.user_access = {$my->id} ))

because
{thistable}.`entity_full_name` is varchar(255),
dbme_entity.entity_full_name is varchar(255),
dbme_entity.id is int(11),
dbme_entity_repeat_user_access.parent_id is int(11).

Thank you very much!
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top