<?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: Client Scripts and and overriding parent table  in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/client-scripts-and-and-overriding-parent-table/m-p/2166388#M823314</link>
    <description>&lt;P&gt;I do not see any other way other than making a copy of the OOB client script. deactivate the OOB. And in the custom one add an if condition to check for the table name. Something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if(g_form.getTableName()!='sn_si_incident'){&lt;/P&gt;
&lt;P&gt;//put the logic here&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;</description>
    <pubDate>Thu, 21 Feb 2019 22:13:02 GMT</pubDate>
    <dc:creator>Abhinay Erra</dc:creator>
    <dc:date>2019-02-21T22:13:02Z</dc:date>
    <item>
      <title>Client Scripts and and overriding parent table</title>
      <link>https://www.servicenow.com/community/developer-forum/client-scripts-and-and-overriding-parent-table/m-p/2166387#M823313</link>
      <description>&lt;P&gt;Hey coders,&lt;/P&gt;
&lt;P&gt;Use case:&lt;/P&gt;
&lt;P&gt;1. The client wants the location set differently for SIR then the OOB Client&amp;nbsp;Scripts that are inherited from Service Order.&lt;/P&gt;
&lt;P&gt;2. I would like to minimize&amp;nbsp;the changes to the OOB Client Scripts. (i.e. not change the OOB scripts if possible)&lt;/P&gt;
&lt;P&gt;3. I would like to preserve the OOB functionality.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- I do realize&amp;nbsp;I could uncheck Inherited, but what if other tables wanted to use these inherited scripts?&lt;/P&gt;
&lt;P&gt;- I do realize&amp;nbsp;I could copy the OOB scripts then test for the table I am on and apply custom&amp;nbsp;logic... but that seems like a&amp;nbsp;brute force approach.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to "override"&amp;nbsp; or not inherit the client scripts?&lt;/P&gt;
&lt;P&gt;Thanks in advance for your help,&lt;/P&gt;
&lt;P&gt;-Chris&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/77729iE84240FA533941BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 22:01:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/client-scripts-and-and-overriding-parent-table/m-p/2166387#M823313</guid>
      <dc:creator>chrismcdevi</dc:creator>
      <dc:date>2019-02-21T22:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Client Scripts and and overriding parent table</title>
      <link>https://www.servicenow.com/community/developer-forum/client-scripts-and-and-overriding-parent-table/m-p/2166388#M823314</link>
      <description>&lt;P&gt;I do not see any other way other than making a copy of the OOB client script. deactivate the OOB. And in the custom one add an if condition to check for the table name. Something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if(g_form.getTableName()!='sn_si_incident'){&lt;/P&gt;
&lt;P&gt;//put the logic here&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 22:13:02 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/client-scripts-and-and-overriding-parent-table/m-p/2166388#M823314</guid>
      <dc:creator>Abhinay Erra</dc:creator>
      <dc:date>2019-02-21T22:13:02Z</dc:date>
    </item>
  </channel>
</rss>

