<?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 Using dbquery in dashboard forms - help in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-dbquery-in-dashboard-forms-help/m-p/65247#M3426</link>
    <description>&lt;P&gt;Hello, I am seeing an issue where I cannot see results when trying to use dbquery in a dashboard. It as pre-pending a "search" onto the search and its not finding any results.&lt;/P&gt;

&lt;P&gt;My search normally is this and returns results..&lt;/P&gt;

&lt;P&gt;| dbquery "Database - PROD" limit=1000 "SELECT A.ASET_AMT, A.ID_C FROM ASAP.test A WHERE a.aset_test_id_c = (SELECT A.ASET_test_ID_C FROM ASAP.ACCOUNT A WHERE A.TEST_INSTN_ID_N=$testid$)"&amp;lt;!-- AND a.test_dt_d="$end_date$" --&amp;gt;&lt;/P&gt;

&lt;P&gt;The form is giving this..&lt;/P&gt;

&lt;P&gt;search dbquery "Database - PROD" limit=1000 "SELECT A.ASET_AMT, A.ID_C FROM ASAP.test A WHERE a.aset_test_id_c = (SELECT A.ASET_test_ID_C FROM ASAP.ACCOUNT A WHERE A.TEST_INSTN_ID_N=$testid$)"&amp;lt;!-- AND a.test_dt_d="$end_date$" --&amp;gt;&lt;/P&gt;

&lt;P&gt;and that is NOT returning results. &lt;/P&gt;

&lt;P&gt;Is there a preferred way to use dbquery in these forms?&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 14:06:50 GMT</pubDate>
    <dc:creator>ericrobinson</dc:creator>
    <dc:date>2020-09-28T14:06:50Z</dc:date>
    <item>
      <title>Using dbquery in dashboard forms - help</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-dbquery-in-dashboard-forms-help/m-p/65247#M3426</link>
      <description>&lt;P&gt;Hello, I am seeing an issue where I cannot see results when trying to use dbquery in a dashboard. It as pre-pending a "search" onto the search and its not finding any results.&lt;/P&gt;

&lt;P&gt;My search normally is this and returns results..&lt;/P&gt;

&lt;P&gt;| dbquery "Database - PROD" limit=1000 "SELECT A.ASET_AMT, A.ID_C FROM ASAP.test A WHERE a.aset_test_id_c = (SELECT A.ASET_test_ID_C FROM ASAP.ACCOUNT A WHERE A.TEST_INSTN_ID_N=$testid$)"&amp;lt;!-- AND a.test_dt_d="$end_date$" --&amp;gt;&lt;/P&gt;

&lt;P&gt;The form is giving this..&lt;/P&gt;

&lt;P&gt;search dbquery "Database - PROD" limit=1000 "SELECT A.ASET_AMT, A.ID_C FROM ASAP.test A WHERE a.aset_test_id_c = (SELECT A.ASET_test_ID_C FROM ASAP.ACCOUNT A WHERE A.TEST_INSTN_ID_N=$testid$)"&amp;lt;!-- AND a.test_dt_d="$end_date$" --&amp;gt;&lt;/P&gt;

&lt;P&gt;and that is NOT returning results. &lt;/P&gt;

&lt;P&gt;Is there a preferred way to use dbquery in these forms?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:06:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-dbquery-in-dashboard-forms-help/m-p/65247#M3426</guid>
      <dc:creator>ericrobinson</dc:creator>
      <dc:date>2020-09-28T14:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using dbquery in dashboard forms - help</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-dbquery-in-dashboard-forms-help/m-p/65248#M3427</link>
      <description>&lt;P&gt;It looks like its not because of the extra "search" search string.. Instead, it looks like it is missing the pipe in the searchtemplate in the form, and therefore the dbquery command is not working as its not recognized as a command&lt;/P&gt;

&lt;P&gt;Any idea on how to make the | stick and continue to the underlying search being run?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2013 17:25:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-dbquery-in-dashboard-forms-help/m-p/65248#M3427</guid>
      <dc:creator>ericrobinson</dc:creator>
      <dc:date>2013-06-17T17:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using dbquery in dashboard forms - help</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-dbquery-in-dashboard-forms-help/m-p/65249#M3428</link>
      <description>&lt;P&gt;I think I figured this out.. problem was with not using the CDATA tags, and the leading space. &lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2013 18:24:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-dbquery-in-dashboard-forms-help/m-p/65249#M3428</guid>
      <dc:creator>ericrobinson</dc:creator>
      <dc:date>2013-06-17T18:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using dbquery in dashboard forms - help</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-dbquery-in-dashboard-forms-help/m-p/65250#M3429</link>
      <description>&lt;P&gt;Can your provide a sample of what you were able to get working? I'm facing a similar issue using one of those "must be the first command after a pipe" search commands in a searchTemplate in a dashboard.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2013 16:39:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-dbquery-in-dashboard-forms-help/m-p/65250#M3429</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2013-09-17T16:39:11Z</dc:date>
    </item>
  </channel>
</rss>

