×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
Component item ID in SQL field
Sean Dooley
New Member
Posts: 2
8 年 2 个月 前 #1423
由 Sean Dooley
Component item ID in SQL field was created by Sean Dooley
Is it possible in an SQL field to include the current component item ID in the SQL query? For example, I would like to display a list of Employees assigned to a Business
SELECT * FROM _cc_employees e
WHERE e.business_id = [current business id]
[current business id] would be replace with the ID of the current item.
SELECT * FROM _cc_employees e
WHERE e.business_id = [current business id]
[current business id] would be replace with the ID of the current item.
Please 登录 或 注册一个帐号 to join the conversation.
Nicky Gernhardt
New Member
Posts: 1
6 年 9 个月 前 #1724
由 Nicky Gernhardt
Replied by Nicky Gernhardt on topic Component item ID in SQL field
Does anybody have an idea for that? Seems to be a nice feature I would also look for.
Please 登录 或 注册一个帐号 to join the conversation.
Fran
New Member
Posts: 5
6 年 9 个月 前 #1733
由 Fran
Replied by Fran on topic Component item ID in SQL field
Hello Sean,
It is not currently possible to do this in Component Creator. You could easily do it by modifying the code generated for your component.
Thank you for pointing this out, we are going to investigate whether it's a possible future as it sounds like a good improvement to Component Creator.
Regards.
It is not currently possible to do this in Component Creator. You could easily do it by modifying the code generated for your component.
Thank you for pointing this out, we are going to investigate whether it's a possible future as it sounds like a good improvement to Component Creator.
Regards.
Please 登录 或 注册一个帐号 to join the conversation.
创建页面时间:0.051秒