<?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: How do I get the PI tag names from the PI Web Server? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-get-the-PI-tag-names-from-the-PI-Web-Server/m-p/752994#M93478</link>
    <description>&lt;P&gt;Does your Pi Server require say, Basic authorization? if so then you'd want to use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;PI_web = New HTTP Request(
URL([your url]),
Method("GET"),
Secure(0),&lt;BR /&gt;Username([your username]),&lt;BR /&gt;Password([your password]),&lt;BR /&gt;Authentication Method("BASIC"),
QueryString(qrry)
) &amp;lt;&amp;lt; Send&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 May 2024 19:05:52 GMT</pubDate>
    <dc:creator>bryan_boone</dc:creator>
    <dc:date>2024-05-08T19:05:52Z</dc:date>
    <item>
      <title>How do I get the PI tag names from the PI Web Server?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-get-the-PI-tag-names-from-the-PI-Web-Server/m-p/749648#M93007</link>
      <description>&lt;P&gt;Dear JMP user community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;me an my colleague are currently working on an JMP add-in that would allow our internal users to query PI tags as they want and have them all in one table with a few scripts attached and some data manipulation steps done in advance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So essentially, we want to reproduce and utilise the "Import from OSIsoft PI server" feature in JMP but with some adjustments to our needs.&lt;/P&gt;&lt;P&gt;We are currently stuck in dynamically retrieving the desired PI tag names from the PI Web server which we then want to store in a list to run the PI Client on. For now, we have a hard-coded list of some PI tags, but since the naming may change or new Pi tags might be added, that is not an ideal solution.&lt;/P&gt;&lt;P&gt;Using a wildcard like % would help us create finer categories of pitags - those categories will depend on prior user selection of e.g. process step, production line - but we did not have any luck finding a counterpart in jsl for lists.&lt;/P&gt;&lt;P&gt;Also, we cannot use SQL to query the PI web server.&lt;/P&gt;&lt;P&gt;This is our AF path:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Theresa3003_0-1714045705730.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/63681i54067C22A684E8CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Theresa3003_0-1714045705730.png" alt="Theresa3003_0-1714045705730.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Asset_DB and Stat_DB are lists, whose content is based on user selection. Pitags is currently a hard-coded list of a few pi tags, but we want it to be based on user selection too.&lt;/P&gt;&lt;P&gt;My question: How did you (JMP developers) retrieve the pi tag names from the web server based on user selection?&lt;/P&gt;&lt;P&gt;Thanks a lot in advance!&lt;/P&gt;&lt;P&gt;Theresa&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 11:50:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-get-the-PI-tag-names-from-the-PI-Web-Server/m-p/749648#M93007</guid>
      <dc:creator>Theresa3003</dc:creator>
      <dc:date>2024-04-25T11:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the PI tag names from the PI Web Server?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-get-the-PI-tag-names-from-the-PI-Web-Server/m-p/750796#M93211</link>
      <description>&lt;P&gt;I haven't done this in a while... I recall that there was a way to get an excel table of all the pi tags. Once you have that, then open it in JMP and transpose it so the tag names are in the first column. From there you can parse and filter the names to generate lists that you can use in your scripts. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;..sorry I couldn't be more specific.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 17:06:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-get-the-PI-tag-names-from-the-PI-Web-Server/m-p/750796#M93211</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2024-04-30T17:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the PI tag names from the PI Web Server?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-get-the-PI-tag-names-from-the-PI-Web-Server/m-p/750983#M93235</link>
      <description>&lt;P&gt;Theresa,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get the child elements at a particular level of the AF hierarchy, JMP uses the "Element - Get Elements" web API method, which is documented here:&amp;nbsp;&lt;A href="https://docs.aveva.com/bundle/pi-web-api-reference/page/help/controllers/element/actions/getelements.html" target="_blank"&gt;https://docs.aveva.com/bundle/pi-web-api-reference/page/help/controllers/element/actions/getelements.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;JMP makes a request that looks something like this:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;GET elements/{webId}/elements?webidtype=idonly&amp;amp;selectedfields=items.webid;items.name;items.description;items.path;items.haschildren;items.templatename&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The {webId} is replaced by the webId of the path hierarchy for which you want the children. This returns a JSON description of the child elements including their names, descriptions, webIds, whether they have children, and what template they belong to, if any. You might not need all those attributes so you could trim down the 'selectedfields' query parameter to just what you need. You should be able to send a request like this using JSL's 'HTTP Request' methods. You could then parse the result using JSL's 'Parse JSON' function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;--Michael&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 13:37:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-get-the-PI-tag-names-from-the-PI-Web-Server/m-p/750983#M93235</guid>
      <dc:creator>hecht_jmp</dc:creator>
      <dc:date>2024-05-01T13:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the PI tag names from the PI Web Server?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-get-the-PI-tag-names-from-the-PI-Web-Server/m-p/751832#M93302</link>
      <description>&lt;P&gt;Hi Byron,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you very much for you reply!&lt;/P&gt;&lt;P&gt;I also had that option in the back of my head but I was hoping there is an easier way.&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Theresa&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 06:37:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-get-the-PI-tag-names-from-the-PI-Web-Server/m-p/751832#M93302</guid>
      <dc:creator>Theresa3003</dc:creator>
      <dc:date>2024-05-03T06:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the PI tag names from the PI Web Server?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-get-the-PI-tag-names-from-the-PI-Web-Server/m-p/751833#M93303</link>
      <description>&lt;P&gt;Hi Michael,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you very much for this neat solution!&lt;/P&gt;&lt;P&gt;We will go ahead and try implementing that method. :)&lt;/img&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best wishes,&lt;/P&gt;&lt;P&gt;Theresa&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 06:41:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-get-the-PI-tag-names-from-the-PI-Web-Server/m-p/751833#M93303</guid>
      <dc:creator>Theresa3003</dc:creator>
      <dc:date>2024-05-03T06:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the PI tag names from the PI Web Server?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-get-the-PI-tag-names-from-the-PI-Web-Server/m-p/751881#M93312</link>
      <description>&lt;P&gt;Hello Michael,&lt;/P&gt;&lt;P&gt;we have tried the "New HTTP Request" function to retrieve the pi tags from the AF hierarchy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Theresa3003_1-1714726034247.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/63911iD1ACF27565F6983F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Theresa3003_1-1714726034247.png" alt="Theresa3003_1-1714726034247.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script is being executed, but we get the following error message. Are you familiar with that error?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Theresa3003_2-1714726129305.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/63912iA702E1808E7B9FA0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Theresa3003_2-1714726129305.png" alt="Theresa3003_2-1714726129305.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since we can query PI tags with the "New PI Client" function, missing authorization does not seem to be the problem. Our PI systems manager confirmed our access rights and could not find an issue with missing access rights.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance!&lt;/P&gt;&lt;P&gt;Theresa&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 08:50:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-get-the-PI-tag-names-from-the-PI-Web-Server/m-p/751881#M93312</guid>
      <dc:creator>Theresa3003</dc:creator>
      <dc:date>2024-05-03T08:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the PI tag names from the PI Web Server?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-get-the-PI-tag-names-from-the-PI-Web-Server/m-p/752994#M93478</link>
      <description>&lt;P&gt;Does your Pi Server require say, Basic authorization? if so then you'd want to use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;PI_web = New HTTP Request(
URL([your url]),
Method("GET"),
Secure(0),&lt;BR /&gt;Username([your username]),&lt;BR /&gt;Password([your password]),&lt;BR /&gt;Authentication Method("BASIC"),
QueryString(qrry)
) &amp;lt;&amp;lt; Send&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 19:05:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-get-the-PI-tag-names-from-the-PI-Web-Server/m-p/752994#M93478</guid>
      <dc:creator>bryan_boone</dc:creator>
      <dc:date>2024-05-08T19:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the PI tag names from the PI Web Server?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-get-the-PI-tag-names-from-the-PI-Web-Server/m-p/754636#M93686</link>
      <description>&lt;P&gt;Thank you Bryan, we implemented you solution using Kerberos.&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 14:04:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-get-the-PI-tag-names-from-the-PI-Web-Server/m-p/754636#M93686</guid>
      <dc:creator>Theresa3003</dc:creator>
      <dc:date>2024-05-15T14:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the PI tag names from the PI Web Server?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-get-the-PI-tag-names-from-the-PI-Web-Server/m-p/762810#M94283</link>
      <description>&lt;P&gt;Was it something like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;PI_web = New HTTP Request(
URL([your url]),
Method("GET"),
Secure(0),Authentication Method("KERBEROS"),
QueryString(qrry)
) &amp;lt;&amp;lt; Send&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 06 Jun 2024 21:31:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-get-the-PI-tag-names-from-the-PI-Web-Server/m-p/762810#M94283</guid>
      <dc:creator>bryan_boone</dc:creator>
      <dc:date>2024-06-06T21:31:10Z</dc:date>
    </item>
  </channel>
</rss>

