<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is there any possibility to read endpoint tag values in JSP page? in Windchill Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Is-there-any-possibility-to-read-endpoint-tag-values-in-JSP-page/m-p/836669#M2895</link>
    <description>&lt;P&gt;Hi - first, take out that&amp;nbsp;activexobject code. Obsolete and confusing.&amp;nbsp; Next, replace&amp;nbsp;EndpointName with something real. Try an experiment at&lt;/P&gt;&lt;PRE&gt;server/Windchill/netmarkets/html/wrs/doc.html&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A small amount of trial-and-error on that site tells me that a working request is GET:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;server/Windchill/servlet/odata/v5/ChangeMgmt/ChangeNotices?%24count=false&lt;/PRE&gt;&lt;P&gt;You need to send that with a header of accept: application/json because {mumble}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PTC has a document describing WRS (Windchill Rest Services). Here is the 2.2 version (there is a 2.3 version but I don't have the link handy).&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.ptc.com/support/-/media/support/refdocs/Windchill_REST_Services/2,-d-,2/wrs_pdf.pdf?sc_lang=en" target="_blank" rel="noopener"&gt;https://www.ptc.com/support/-/media/support/refdocs/Windchill_REST_Services/2,-d-,2/wrs_pdf.pdf?sc_lang=en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cheers -- Rick&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2022 09:44:45 GMT</pubDate>
    <dc:creator>rleir</dc:creator>
    <dc:date>2022-11-08T09:44:45Z</dc:date>
    <item>
      <title>Is there any possibility to read endpoint tag values in JSP page?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Is-there-any-possibility-to-read-endpoint-tag-values-in-JSP-page/m-p/836656#M2893</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm just trying to read the values first.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;script&amp;gt;
	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;
		}
	}
&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
	&amp;lt;marquee&amp;gt;
		&amp;lt;h1&amp;gt;This is an example of ajax&amp;lt;/h1&amp;gt;
	&amp;lt;/marquee&amp;gt;
	&amp;lt;form name="vinform"&amp;gt;
		&amp;lt;input type="text" name="t1"&amp;gt; 
		&amp;lt;input type="button" value="ShowTable" onClick="sendInfo()"&amp;gt;
	&amp;lt;/form&amp;gt;
	&amp;lt;span id="amit"&amp;gt; &amp;lt;/span&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to read required JSON tags from the output and pass them to the&amp;nbsp; Dropdown values to select.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/241117"&gt;@HelesicPetr&lt;/a&gt;&amp;nbsp; any idea on this?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 14:05:53 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Is-there-any-possibility-to-read-endpoint-tag-values-in-JSP-page/m-p/836656#M2893</guid>
      <dc:creator>Manoj_Dokku4</dc:creator>
      <dc:date>2024-03-15T14:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any possibility to read endpoint tag values in JSP page?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Is-there-any-possibility-to-read-endpoint-tag-values-in-JSP-page/m-p/836665#M2894</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/620967"&gt;@Manoj_Dokku4&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For JSP pages I use taglibs that can be used in windchill Wizards&lt;/P&gt;
&lt;P&gt;so I can build a dropdown selection (ComboBox)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;&amp;lt;%@ &lt;/SPAN&gt;&lt;SPAN&gt;taglib &lt;/SPAN&gt;&lt;SPAN&gt;prefix="&lt;/SPAN&gt;&lt;SPAN&gt;wrap&lt;/SPAN&gt;&lt;SPAN&gt;" uri="&lt;/SPAN&gt;&lt;SPAN&gt;http://www.ptc.com/windchill/taglib/wrappers&lt;/SPAN&gt;&lt;SPAN&gt;" %&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;%&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;//search for a list in the ComboBox&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;List&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;String&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;order_internal_vals &lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;AVCommands&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;getSubTypePartAttributesforcomboBox&lt;/SPAN&gt;&lt;SPAN&gt;(); // my own java function&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;request&lt;/SPAN&gt;&lt;SPAN&gt;.setAttribute&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"order_display_vals"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;order_internal_vals&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;; // save output in a request for display list&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;request&lt;/SPAN&gt;&lt;SPAN&gt;.setAttribute&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"order_internal_vals"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;order_internal_vals&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;; // save output in a request internal list&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;%&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;wrap&lt;/SPAN&gt;&lt;SPAN&gt;:comboBox &lt;/SPAN&gt;&lt;SPAN&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;="orderPart2" &lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;="orderPart2" &lt;/SPAN&gt;&lt;SPAN&gt;multiSelect&lt;/SPAN&gt;&lt;SPAN&gt;="false" &lt;/SPAN&gt;&lt;SPAN&gt;size&lt;/SPAN&gt;&lt;SPAN&gt;="1"&lt;BR /&gt;&lt;/SPAN&gt; &lt;SPAN&gt;displayValues&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN&gt;${&lt;/SPAN&gt;&lt;SPAN&gt;order_display_vals&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;BR /&gt;&lt;/SPAN&gt; &lt;SPAN&gt;internalValues&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN&gt;${&lt;/SPAN&gt;&lt;SPAN&gt;order_internal_vals&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;BR /&gt;&lt;/SPAN&gt; &lt;SPAN&gt;onchange&lt;/SPAN&gt;&lt;SPAN&gt;="selectProject('orderPart2','zipProject2')" &lt;/SPAN&gt;&lt;SPAN&gt;editable&lt;/SPAN&gt;&lt;SPAN&gt;="true"&lt;/SPAN&gt;&lt;SPAN&gt;/&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;script &lt;/SPAN&gt;&lt;SPAN&gt;type&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN&gt;text&lt;/SPAN&gt;&lt;SPAN&gt;/javascript"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;function &lt;SPAN&gt;selectProject&lt;/SPAN&gt;&lt;SPAN&gt;(lokotable&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;projectTable) {&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;var &lt;/SPAN&gt;comboLokomotive = &lt;SPAN&gt;document&lt;/SPAN&gt;.&lt;SPAN&gt;getElementById&lt;/SPAN&gt;(lokotable)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt; if &lt;/SPAN&gt;(comboLokomotive != &lt;SPAN&gt;null &lt;/SPAN&gt;&amp;amp;&amp;amp; comboLokomotive != &lt;SPAN&gt;undefined&lt;/SPAN&gt;) {&lt;BR /&gt;&lt;SPAN&gt;var &lt;/SPAN&gt;index = comboLokomotive.&lt;SPAN&gt;selectedIndex&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt; &lt;SPAN&gt;//itemValue = comboLokomotive.options[index].value;&lt;BR /&gt;&lt;/SPAN&gt; &lt;SPAN&gt;setValueProject&lt;/SPAN&gt;(index&lt;SPAN&gt;, &lt;/SPAN&gt;projectTable)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt; }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;function &lt;/SPAN&gt;&lt;SPAN&gt;setValueProject&lt;/SPAN&gt;(value&lt;SPAN&gt;, &lt;/SPAN&gt;projectTable) {&lt;BR /&gt;&lt;SPAN&gt;var &lt;/SPAN&gt;comboProject = &lt;SPAN&gt;document&lt;/SPAN&gt;.&lt;SPAN&gt;getElementById&lt;/SPAN&gt;(projectTable)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt; if &lt;/SPAN&gt;(comboProject != &lt;SPAN&gt;null &lt;/SPAN&gt;&amp;amp;&amp;amp; comboProject != &lt;SPAN&gt;undefined&lt;/SPAN&gt;) {&lt;BR /&gt;comboProject.&lt;SPAN&gt;selectedIndex &lt;/SPAN&gt;= value&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt; }&lt;BR /&gt;}&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Maybe it can help you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PetrH&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 09:29:49 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Is-there-any-possibility-to-read-endpoint-tag-values-in-JSP-page/m-p/836665#M2894</guid>
      <dc:creator>HelesicPetr</dc:creator>
      <dc:date>2022-11-08T09:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any possibility to read endpoint tag values in JSP page?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Is-there-any-possibility-to-read-endpoint-tag-values-in-JSP-page/m-p/836669#M2895</link>
      <description>&lt;P&gt;Hi - first, take out that&amp;nbsp;activexobject code. Obsolete and confusing.&amp;nbsp; Next, replace&amp;nbsp;EndpointName with something real. Try an experiment at&lt;/P&gt;&lt;PRE&gt;server/Windchill/netmarkets/html/wrs/doc.html&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A small amount of trial-and-error on that site tells me that a working request is GET:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;server/Windchill/servlet/odata/v5/ChangeMgmt/ChangeNotices?%24count=false&lt;/PRE&gt;&lt;P&gt;You need to send that with a header of accept: application/json because {mumble}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PTC has a document describing WRS (Windchill Rest Services). Here is the 2.2 version (there is a 2.3 version but I don't have the link handy).&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.ptc.com/support/-/media/support/refdocs/Windchill_REST_Services/2,-d-,2/wrs_pdf.pdf?sc_lang=en" target="_blank" rel="noopener"&gt;https://www.ptc.com/support/-/media/support/refdocs/Windchill_REST_Services/2,-d-,2/wrs_pdf.pdf?sc_lang=en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cheers -- Rick&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 09:44:45 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Is-there-any-possibility-to-read-endpoint-tag-values-in-JSP-page/m-p/836669#M2895</guid>
      <dc:creator>rleir</dc:creator>
      <dc:date>2022-11-08T09:44:45Z</dc:date>
    </item>
  </channel>
</rss>

