Hi guys.
Would there be a doc/tutorial for non-webdev on how to use data/queries/results in topics/posts? I searched but failed to find one. Thanks.
Did you find
Maybe the other topics with sql-tutorial help you too.
Thanks. I’ve thumbed through it - perhaps I’ve gone blind - but cannot see bits which would mention “incorporating” queries/results into a topic/post, into its content.
I don’t believe this is currently something you can do. There is an Automation that will send results to a PM or email. Perhaps you could check that out and see how it does it?
How people do it then or how to understand when someone says “… manually created a new topic using the data from the Published Pages query above, then published it at `/pub/index…” ?
That is a quote from another topic about “indexing published pages”
Copy and paste?
“manually created” for means that they created the topic normally and pasted in the stuff from the data explorer.
It might help if you say more about the specific problem that you are actually trying to solve.
Oh. I presumed that - since it looked like a “hot” topic to me - that proposed idea was a solution to have a dynamic index of published pages. I thought that was the idea behind it - to have TOC/index for published pages, dynamic index.
I am stuck. I’m trying to use the query to. create a new group and copy all existing members into that group.
I understand the part of getting to data explorer, naming it etc.
I’ve copied the query - now where to do I paste it? I’ve pasted it to the text box to the right of the Select area but nothing happens.
sorry for the elementary question but I’m on a time crunch to get this done.
tx
Bronwyn
Data explorer is only for exploring data, not changing it.
If you need to change something with code, and don’t have access to run stuff in rails, then you need to use the API.
What problem is this solving? Do you really want to create a new group that has every user on the system on it? You can’t use @everyone
or @tl0
?
Hi Jay:
There is a post on running a query that copies all users from certain groups into a new group.
I wasn’t to copy from the current Everyone into a new group.
Going forward, some of the Everyone group won’t be in the new group.
I found the post that showed this query:
–[params]
– string_list :group_name
– string_list :new_group_names
SELECT ue.email as “address@email”, :new_group_names as “new group”
FROM users u
INNER JOIN group_users gu ON u.id = gu.user_id
INNER JOIN groups g on g.id = gu.group_id
INNER JOIN user_emails ue on u.id = ue.user_id
WHERE g.name IN (:group_name)
AND ue.primary = true
I pasted that into the box to the right of the SELECT item. It said that two new input fields should appear at the bottom. But they haven’t.
Wondering what I have done wrong.
Bron
You cannot change data with the data explorer plugin. I promise.
You’ll need to use the API (which will be hard unless you don’t have many users) or get the folks that are hosting you to do it from Rails.
Got it, thanks. I thought I used the data explorer to get the list and then I used that to upload to the group. I must have misunderstood. thanks for your quick advice. I’ll wait for Richard O to do it for me. Born
OH! I missed that part. But I don’t know if there’s a way to upload a list for a group, except as an invite?
But if it doesn’t actually add them but sends an invitation then it is of no use and I think you are probably correct.
thanks again Jay.