-
| Hi! I have a  I tried something like SELECT
    'dynamic' as component, 
    sqlpage.run_sql('component/datagrid-with-timeline.sql?id=' || id) as properties
FROM
    input_table
    ;but such an expression is invalid. I saw a discussion about using recursive CTEs to achieve something similar but it doesn't seem to fit here. Essentially what I have is a "custom component" that is a set of standard components in a  Any input most welcome! | 
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
| editSince SQLPage v0.25, it is possible to call  select 'dynamic' as component,
  sqlpage.run_sql('display_product.sql', json_object('product_id', product_id)) as properties
from products;
 original answerHi ! Yet, you have multiple options to get to the result you want: 
 If I were you, I would go with solution number 1. | 
Beta Was this translation helpful? Give feedback.
-
| I created an issue here to track the implementation of the solution to the initial problem: #337 | 
Beta Was this translation helpful? Give feedback.
edit
Since SQLPage v0.25, it is possible to call
run_sqlon each row of a SQL result set, withjson_objectis calledjson_build_objectin postgresoriginal answer
Hi !
Thanks for raising this. Calling a sqlpage function iteratively on all request results is currently not possible. I want to implement this in the future, but it's quite a big change, and it will take a little time.
Yet, you have multiple options to get to the result you want: