Feature(s) impacted
I am building a Smart Chart, where the user can select the time period. Inspired by this comment:
When the time period has been selected and the user presses a button, in the custom frontend. I call the Smart Chart forest/_charts/chart-name
, as below. The plan is to inject the time period, which was selected in the UI, as a parameter to the lianaServerFetch
call. No documentation exists online, which explains the API of lianaServerFetch
and thus, how this can be achieved.
Observed behavior
I can’t find a way to pass a parameter to the call /forest/_charts/chart-name
. I tried with test: true
, but I can not retrieve this in the addChart callback on the server.
export default class extends Component {
@service lianaServerFetch;
constructor(...args) {
super(...args);
}
async load() {
// Load data from agent
const response = await this.lianaServerFetch.fetch(
'/forest/_charts/chart-name',
{
test: true;
},
);
Expected behavior
I would expect to be able to pass some parameters from the frontend, in order to make smart charts interactive, not sure if it has been built in yet. Any guidance on the topic would be greatly appreciated.
Failure Logs
No failure logs.
Context
- Project name: jurata-2
- Team name: jurata
- Environment name: Development
"@forestadmin/agent": "^1.27.1",
"@forestadmin/datasource-mongoose": "1.5.15",
"@forestadmin/datasource-replica": "^1.0.16",
"@forestadmin/plugin-flattener": "^1.0.53",