I am trying to create a simple dynamic form in Apache Zeppelin using Angular interpreter. I want to pass those values which are coming as input from the form in one notebook to a dynamic MySQL insert query in another notebook. Angular code as given below:
<form>
1) Name: <input type="text" ng-model="firstname">
</br></br>
2) Give a rating for pack:
<input type="radio" ng-model="myVar" value="Good">Good
<input type="radio" ng-model="myVar" value="Average">Average
<input type="radio" ng-model="myVar" value="Bad">Bad
</br></br>
3) Select a Region:
<select ng-model="reg">
<option value="">
<option value="KNZ">KNZ
<option value="Gauteng">Gauteng
<option value="NorthEast">NorthEast
</select>
</form>
This will create a dynamic form Click to see I want to execute an insert query(MySQL) in the next paragraph accessing the above variables "firstname", "myVar" and "reg" from angular dynamic form.
insert into Table (Firstname,Rating,Region) values ("firstname","myVar","reg")
Can anyone help me?