@@ -122,6 +162,7 @@ class AddPolicy extends React.Component {
style={{ display: currentStepIndex === 2 ? 'unset' : 'none' }}
>
@@ -130,6 +171,7 @@ class AddPolicy extends React.Component {
style={{ display: currentStepIndex === 3 ? 'unset' : 'none' }}
>
@@ -137,7 +179,10 @@ class AddPolicy extends React.Component {
diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.extensions/src/main/java/org/wso2/carbon/device/mgt/extensions/device/type/template/config/DataPanel.java b/components/device-mgt/org.wso2.carbon.device.mgt.extensions/src/main/java/org/wso2/carbon/device/mgt/extensions/device/type/template/config/DataPanel.java
index efb9fe2edb..2ab613f523 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.extensions/src/main/java/org/wso2/carbon/device/mgt/extensions/device/type/template/config/DataPanel.java
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.extensions/src/main/java/org/wso2/carbon/device/mgt/extensions/device/type/template/config/DataPanel.java
@@ -67,6 +67,10 @@ public class DataPanel {
@XmlElement(name = "PanelItem")
private List
panelItem;
+ @XmlElementWrapper(name = "SubFormsList")
+ @XmlElement(name = "SubForm")
+ private List subFormLists;
+
public String getPaneId() {
return panelId;
}
@@ -99,4 +103,11 @@ public class DataPanel {
this.panelItem = panelItem;
}
+ public List getSubPanelLists() {
+ return subFormLists;
+ }
+
+ public void setSubPanelLists(List subFormLists) {
+ this.subFormLists = subFormLists;
+ }
}
diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.extensions/src/main/java/org/wso2/carbon/device/mgt/extensions/device/type/template/config/SubFormList.java b/components/device-mgt/org.wso2.carbon.device.mgt.extensions/src/main/java/org/wso2/carbon/device/mgt/extensions/device/type/template/config/SubFormList.java
new file mode 100644
index 0000000000..d4a020e823
--- /dev/null
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.extensions/src/main/java/org/wso2/carbon/device/mgt/extensions/device/type/template/config/SubFormList.java
@@ -0,0 +1,24 @@
+package org.wso2.carbon.device.mgt.extensions.device.type.template.config;
+
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElementWrapper;
+import java.util.List;
+
+public class SubFormList {
+ @XmlAttribute(name = "id", required = true)
+ protected String id;
+
+ @XmlElementWrapper(name = "PanelItems")
+ @XmlElement(name = "PanelItem")
+ private List panelItem;
+
+ public List getPanelItemList() {
+ return panelItem;
+ }
+
+ public void setPanelItemList(List panelItem) {
+ this.panelItem = panelItem;
+ }
+}
+