- My View
You can add PA Widgets to a form using the in-form analytics feature/function......or you can choose to add a single chart.
To add a single chart:
Confirure the form and go to the field types where you should see a chart option. Select where you want the chart on the form and save. When you go to the form, it will ask you to select which chart you want to display and you should be good to go....
That almost worked, but the chart is looking for something from the sys_report table.
I need to pull in a graphic from the pa_widgets table.
Is there anyway to do that?
The closes I got was to create a formatter on the form with a UI Macro that included an iframe with a src to the dashboard that contained the widget.
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<iframe src = '/$pa_dashboard.do?dashboard=a64b7031d7201100b96d45a3ce610335'></iframe>
This showed the entire dashboard.
I can't find any documentation on any other parameters that could be passed to indicate what widget to show.
Also, the in-form analytics does not work either because the table on which the form is build does not show up in the table dropdown list.