Forums

Use result of a read data fn in the where conditions box of another read data fn

stikkimorey 15 May, 2019
Hi

I have a read data function which displays correctly when I refer to it using custom code like: {var:read_hub.Hub.value} In this instance, it returns the hub "Cleeve"

I have another function called read_articles which has the models Article and Asset

When I use this Where condition in read_articles it works: Asset.asset_owner:Cleeve

But if I try to refer to the result of read_hub with Asset.asset_owner:{var:read_hub.Hub.value} I don't get any results.

Please tell me what I am doing wrong.

Thanks
stikkimorey 15 May, 2019
Answer
Ahh - I needed the read_hub function to run before the read_articles function. Now it works
This topic is locked and no more replies can be posted.