Contextual Action from Analytics Chart
Available since version Paper Plane 11.0.
This example shows how to create a button on a chart in Analytics > Data Analyzer, which will result in creation of a new Action Item with a given Action Item Type, and with provided values.
In Advanced Configuration Options, add a new application property:
The name must start with prefix “pfxContextualAction_”, for example “pfxContextualAction_PAAction”.
The property has the following JSON value:
{
"name": "create_simple_action_from_PA",
"labelTranslations": {
"": "Create Action"
},
"page": "dataAnalyzerPage",
"order": 2,
"conditionToShow": "{typedId} != null",
"contextLinking": {
"targetPage": "newActionPage",
"targetPageTarget": "new",
"targetPageEntityType": "__DEFAULT__",
"targetPageInputs": {
"sourceContext" : {
"queryBuilderState": "{queryBuilderState}"
}
},
"targetPageFields":{
"originatorTypedId": "{chartTypedId}",
"summary": "{chartType}-{chartLabel}-action",
"description": "This action was created from PA Chart {chartType}-{chartLabel}"
}
}
}
Replacements will be changed when the system creates the button on an actual page in frontend. See also list of available placeholders for dataAnalyzerPage.
For details on the context linking parameters, see Context Linking.
Found an issue in documentation? Write to us.