You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A remote datasource doesn't seem to properly set other datasource-parameters that are used in the remote-datasource-url as dependencies.
This seems to be a bug, because the remote datasource won't work as expected if the needed datasource-parameter isn't available at the execution time of the remote-datasource.
The datasource-parameter $ds-page.system-id is created by another datasource that's attached to the same page.
When trying to make this work I didn't get any results from the remote datasource because the parameter $ds-page.system-id wasn't available. I needed to manually add it as a dependency to the __construct-function to make the remote datasource work as expected:
public function __construct($env=NULL, $process_params=true)
{
parent::__construct($env, $process_params);
$this->_dependencies = array(
'$ds-page.system-id'
);
}
Setup:
Symphony 2.7.2
Remote Datasource 2.3.0
The text was updated successfully, but these errors were encountered:
A remote datasource doesn't seem to properly set other datasource-parameters that are used in the remote-datasource-url as dependencies.
This seems to be a bug, because the remote datasource won't work as expected if the needed datasource-parameter isn't available at the execution time of the remote-datasource.
Example
The url for my remote datasource looks like this:
The datasource-parameter
$ds-page.system-id
is created by another datasource that's attached to the same page.When trying to make this work I didn't get any results from the remote datasource because the parameter
$ds-page.system-id
wasn't available. I needed to manually add it as a dependency to the__construct
-function to make the remote datasource work as expected:Setup:
The text was updated successfully, but these errors were encountered: