Extensible Control
Extensible Control
by Saim Siddiqui
This class will let you define the properties of the control which you usually saw in the property section
of control. This class is consumed by the run-time class to initialize the state of the control based on the
value of properties.
This class will let you define the server-side logic and data access code for your control.
As dynamic 365 finops is web-based application so for visualization we will use HTML, CSS, JS to
create visualization of control.
Scenario:
Embedding Power BI report into form of the dynamics.
[FormDesignControlAttribute('ExtensibleControl')]
class ExtCtrlDemoBuild extends FormBuildControl
{
Now I am creating an HTML file with extension with .htm (not .html) resource file for the html
part where you will put your html part. Here I am putting <iframe>
Now I am creating the resource file: Add new item> Label and resources> Resource
and adding this html file.
Now I am creating a class which will extends the FormTemplateControl
[FormControlAttribute('ExtensibleControl','/Resources/html/Control',
classStr(ExtCtrlDemoBuild))]
class ExtCtrlDemoControl extends FormTemplateControl
{
public void new(FormBuildControl _build, FormRun _formRun)
{
super(_build, _formRun);
this.setTemplateId('ExtensibleControl');
this.setResourceBundleName('/Resources/html/Control');
}