Access Params in Custom Datasource?
This is an open discussion with 2 replies, filed under General.
Search
First make sure your second datasource depends on the first, by adding this param name to the dependencies array in the datasource constructor (an array of strings, including the $ symbol). This ensures correct execution order. Then in the second datasource's grab
method you can retrieve this param value from the $param_pool variable that is passed to it.
Thanks, I was able to get this working with your direction and a coworkers help.
Create an account or sign in to comment.
How might I access a parameter that I've set up from another datasource within a custom datasource?
For example, I want to access $ds-project-view-individual in my datasource code.
Thanks for your help.