Prefilling e-Form
Learn how to pass data to e-Form and pre-fill components with data.
Using Form Parameter
customer-formparam.ozr
customer-formparam.html
<script type="text/javascript" >
var name = "John Kim";
var smoker = "Yes";
function SetOZParamters_OZViewer(){
var oz = document.getElementById("OZViewer");
oz.sendToActionScript("connection.servlet", "/training/server");
oz.sendToActionScript("connection.reportname","/forcs/john.kim/customer-formparam.ozr");
// pass values for form parameters
oz.sendToActionScript("connection.pcount", "2"); // the number of paramters
oz.sendToActionScript("connection.args1", "name=" + name); // for the parameter "name"
oz.sendToActionScript("connection.args2", "smoker=" + smoker); // for the parameter "smoker"
}
start_ozjs("OZViewer", "/html5viewer/");
</script>Using INPUTJSON viewer option
Prepare data string in JSON to fill in customer.ozr
customer.ozr
Using JSON Dataset
customer-jsondataset.ozr
customer-jsondataset.ozr
JSON Dataset from URL
Using ODI Dataset
Last updated