Is there any possibility to read endpoint tag values in JSP page?
My Requirement is to read a (CR)text box value, when Clicked to fetch the values, I have to show a Dropdown list of (CN's) associated to it.
I'm just trying to read the values first.
<html>
<head>
<script>
var request;
function sendInfo() {
var v = document.vinform.t1.value;
var url = "http://Server/Windchill/servlet/odata/v1/ProjFolder/EndpointName?%24count=false";
if (window.XMLHttpRequest) {
request = new XMLHttpRequest();
} else if (window.ActiveXObject) {
request = new ActiveXObject("Microsoft.XMLHTTP");
}
try {
request.onreadystatechange = getInfo;
request.open("GET", url, true);
request.send();
} catch (e) {
alert("Unable to connect to server");
}
}
function getInfo() {
if (request.readyState == 4) {
var val = request.responseText;
document.getElementById('amit').innerHTML = val;
}
}
</script>
</head>
<body>
<marquee>
<h1>This is an example of ajax</h1>
</marquee>
<form name="vinform">
<input type="text" name="t1">
<input type="button" value="ShowTable" onClick="sendInfo()">
</form>
<span id="amit"> </span>
</body>
</html>
I'm trying to read required JSON tags from the output and pass them to the Dropdown values to select.

