Use JSON with big-number #654
Answered
by
lovasoa
DSMejantel
asked this question in
Q&A
-
I use this code to generate a dropdowm menu : select
'big_number' as component;
select
count(distinct id) as value,
'Photographies dans la base' as title,
'blue' as color,
json_group_array(json_object(
'label', tag_image,
'link', 'album_vue.sql?tag='||tag_image )) as dropdown_item
FROM image LEFT JOIN tag on image.id=tag.image_id; This is my debug : {"component":"debug"}
{"value":2,"title":"Photographies dans la base","color":"blue","dropdown_item":"[{\"label\":\"cadre\",\"link\":\"album_vue.sql?tag=cadre\"},{\"label\":\"abeille\",\"link\":\"album_vue.sql?tag=abeille\"},{\"label\":\"fleur\",\"link\":\"album_vue.sql?tag=fleur\"}]"} What is wrong from my part ? |
Beta Was this translation helpful? Give feedback.
Answered by
lovasoa
Oct 29, 2024
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
DSMejantel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi David !
The good news is that everything works as you would expect in SQLPage v0.30. Your exact code gives the following :
and the following debug values
This is thanks to the following change from the 0.30 release: