<?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 Functions in a user input query? in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Functions-in-a-user-input-query/m-p/129181#M23241</link>
    <description>&lt;P&gt;I want to be able to include one of my fucntions in a query for user input. &amp;nbsp;Is this possible and if so what is the formating?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried 'where vserver.name like '%getSVM(${svm})%' but that didn't work (the function takes a customer name, converts it to a two letter code, so the vserver would have that two letter code in it, thus the like %%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried '%{getSVM(${svm})}%' which also didn't work.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 15:18:47 GMT</pubDate>
    <dc:creator>dblackwe</dc:creator>
    <dc:date>2025-06-04T15:18:47Z</dc:date>
    <item>
      <title>Functions in a user input query?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Functions-in-a-user-input-query/m-p/129181#M23241</link>
      <description>&lt;P&gt;I want to be able to include one of my fucntions in a query for user input. &amp;nbsp;Is this possible and if so what is the formating?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried 'where vserver.name like '%getSVM(${svm})%' but that didn't work (the function takes a customer name, converts it to a two letter code, so the vserver would have that two letter code in it, thus the like %%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried '%{getSVM(${svm})}%' which also didn't work.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 15:18:47 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Functions-in-a-user-input-query/m-p/129181#M23241</guid>
      <dc:creator>dblackwe</dc:creator>
      <dc:date>2025-06-04T15:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Functions in a user input query?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Functions-in-a-user-input-query/m-p/129184#M23243</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/12467"&gt;@dblackwe&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;...the function takes a customer name, converts it to a two letter code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The WFA MVEL fuctions can't be called inside a mysql query. &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I suggest you use &lt;STRONG&gt;MYSQL fucntions&lt;/STRONG&gt; to get this done instead of WFA &amp;nbsp;fucntions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Whatever logic you are using to convert the provided customer name into 2 letter code, it must be possible using Mysql fuctions.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;See&amp;nbsp;&lt;A href="https://dev.mysql.com/doc/refman/5.7/en/string-functions.html" target="_self"&gt;here.&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you can't figure it out, provide your Query and the MVEL fuction and I can give it a try.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sinhaa&lt;/SPAN&gt;&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;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Mar 2017 15:51:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Functions-in-a-user-input-query/m-p/129184#M23243</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2017-03-19T15:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Functions in a user input query?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Functions-in-a-user-input-query/m-p/129185#M23244</link>
      <description>&lt;P&gt;Thank you so much for the response. &amp;nbsp;That is upsetting but understandable. &amp;nbsp;I will simply go forward with a user entered volume name instead of a dropdown list. &amp;nbsp;Thank you for the offer to try and figure it out for me, but you have already been more than helpful responding on a weekend.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Mar 2017 16:11:34 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Functions-in-a-user-input-query/m-p/129185#M23244</guid>
      <dc:creator>dblackwe</dc:creator>
      <dc:date>2017-03-19T16:11:34Z</dc:date>
    </item>
  </channel>
</rss>

