<?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>question Re: DB View for variable of type reference in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/db-view-for-variable-of-type-reference/m-p/2991182#M420</link>
    <description>&lt;P&gt;Found a solution. Since DB view part is working just fine while submitting the request from catalog item, I created the Display Business rule on sc_req_item table to fetch the display value from the DB view and then created the catalog client script (applicable only to Requested Item) to set the value on load to the variable. Solution is bit twisted, but works.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jul 2024 12:28:22 GMT</pubDate>
    <dc:creator>krishnakumar2</dc:creator>
    <dc:date>2024-07-16T12:28:22Z</dc:date>
    <item>
      <title>DB View for variable of type reference</title>
      <link>https://www.servicenow.com/community/community-central-forum/db-view-for-variable-of-type-reference/m-p/2990191#M417</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using DB view for showing combined value in variable of type reference. It works as expected and I am able to select appropriate value for the reference field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, the issue I am facing is, selected value is not being displayed while viewing the RITM variables. Variable being displayed has one of the sys_id from the DB view (either table1 or table 2 sys_id) but there is not display value being shown like normal reference field. Any suggestions will be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you see in the screenshot below, you can see DOB and Personal email address being fetched and shown properly but not cost code.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krishnakumar2_0-1721052121159.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/372031i6BEECCCCB95FE548/image-size/medium?v=v2&amp;amp;px=400" role="button" title="krishnakumar2_0-1721052121159.png" alt="krishnakumar2_0-1721052121159.png" /&gt;&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;Thanks in advance!&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 14:02:49 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/db-view-for-variable-of-type-reference/m-p/2990191#M417</guid>
      <dc:creator>krishnakumar2</dc:creator>
      <dc:date>2024-07-15T14:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: DB View for variable of type reference</title>
      <link>https://www.servicenow.com/community/community-central-forum/db-view-for-variable-of-type-reference/m-p/2990334#M418</link>
      <description>&lt;P&gt;A database view combines data from two or more tables, but it is not a table itself. It does not store any records and doesn't have any attributes, not even sys_id. Consequently, there is no way to have reference fields or variables to point to "records" in a database view.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your reference variable has to reference actual records from the actual table that is the source of data for the database view. However, your variable can only reference one table, not both at the same time.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 16:09:37 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/db-view-for-variable-of-type-reference/m-p/2990334#M418</guid>
      <dc:creator>Slava Savitsky</dc:creator>
      <dc:date>2024-07-15T16:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: DB View for variable of type reference</title>
      <link>https://www.servicenow.com/community/community-central-forum/db-view-for-variable-of-type-reference/m-p/2991176#M419</link>
      <description>&lt;P&gt;I found solution. I am using Display Business rules to query the vie and send the Display value of the view to client side and then use the catalog client script (applicable only to Request Item) to set the value of the variable. It's twisted approach a bit, but works.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 12:21:45 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/db-view-for-variable-of-type-reference/m-p/2991176#M419</guid>
      <dc:creator>krishnakumar2</dc:creator>
      <dc:date>2024-07-16T12:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: DB View for variable of type reference</title>
      <link>https://www.servicenow.com/community/community-central-forum/db-view-for-variable-of-type-reference/m-p/2991182#M420</link>
      <description>&lt;P&gt;Found a solution. Since DB view part is working just fine while submitting the request from catalog item, I created the Display Business rule on sc_req_item table to fetch the display value from the DB view and then created the catalog client script (applicable only to Requested Item) to set the value on load to the variable. Solution is bit twisted, but works.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 12:28:22 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/db-view-for-variable-of-type-reference/m-p/2991182#M420</guid>
      <dc:creator>krishnakumar2</dc:creator>
      <dc:date>2024-07-16T12:28:22Z</dc:date>
    </item>
  </channel>
</rss>

