How to use datepicker to implement Zeppelin jdbc dynamic SQL statement query

%angular<link rel="stylesheet" href="//code.jquery.com/ui/1.12.0/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.0/jquery-ui.js"></script>
<script>
$( function() {
$( "#todatepicker" ).datepicker({ dateFormat: 'yymmdd',changeMonth: true,changeYear: true });
$( "#fromdatepicker" ).datepicker({ dateFormat: 'yymmdd',changeMonth: true,changeYear: true });
} );
</script>

<form class="form-inline">
<div class="form-group">
<label for="fromDateId">From: </label>

<input type="text" id="fromdatepicker" ng-model="fromDate"></input>
<label for="toDateId">to: </label>
<input type="text" id="todatepicker" ng-model="toDate"></input>

</div>
</p>
</p>

<button type="submit" class="btn btn-primary" ng-click=
"z.angularBind('toDate',toDate,'20200907-163420_1173838812');z.angularBind('fromDate',fromDate,'20200907-163420_1173838812');z.runParagraph('20200907-163420_1173838812')">search</button>
</form>
%jdbc
select * from test where date >='${fromDate}' and date <'${toDate}' limit 5
"z.angularBind('toDate',toDate,'20200907-163420_1173838812');z.angularBind('fromDate',fromDate,'20200907-163420_1173838812');z.runParagraph('20200907-163420_1173838812')"

--

--

--

spark kafak flink develop

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Review: Alpha JX Bidet

Redux unit testing with Jest

The Basics Of Fetch

Calculating Azimuth, Distance, and Altitude from a Pair of GPS Locations in JavaScript

Angular-Firebase authentication with LocalStorage

An adventure in sparse arrays

Web Component: Why You Should Stick to React

Leetcode — Range Sum Query — Mutable

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
hivefans

hivefans

spark kafak flink develop

More from Medium

Performance Testing

JVM ARCHITECTURE

Extract a Text File from included Jar Programatically (with Gradle)

Fundamentals of Liquibase