<?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 How to set value to a field after a record has been opened using the  g_aw.openRecord function in HRSD forum</title>
    <link>https://www.servicenow.com/community/hrsd-forum/how-to-set-value-to-a-field-after-a-record-has-been-opened-using/m-p/1293874#M5002</link>
    <description>&lt;P&gt;After a record has been opened by using the&amp;nbsp;g_aw.openRecord() function how can we set values to specific fields?&lt;/P&gt;
&lt;P&gt;Any help would be appreciated.&lt;/P&gt;
&lt;P&gt;Thanks and Regards,&lt;/P&gt;
&lt;P&gt;Vasu&lt;/P&gt;</description>
    <pubDate>Fri, 11 Feb 2022 09:02:52 GMT</pubDate>
    <dc:creator>Vasu20</dc:creator>
    <dc:date>2022-02-11T09:02:52Z</dc:date>
    <item>
      <title>How to set value to a field after a record has been opened using the  g_aw.openRecord function</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-to-set-value-to-a-field-after-a-record-has-been-opened-using/m-p/1293874#M5002</link>
      <description>&lt;P&gt;After a record has been opened by using the&amp;nbsp;g_aw.openRecord() function how can we set values to specific fields?&lt;/P&gt;
&lt;P&gt;Any help would be appreciated.&lt;/P&gt;
&lt;P&gt;Thanks and Regards,&lt;/P&gt;
&lt;P&gt;Vasu&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 09:02:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-to-set-value-to-a-field-after-a-record-has-been-opened-using/m-p/1293874#M5002</guid>
      <dc:creator>Vasu20</dc:creator>
      <dc:date>2022-02-11T09:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to set value to a field after a record has been opened using the  g_aw.openRecord function</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-to-set-value-to-a-field-after-a-record-has-been-opened-using/m-p/1293875#M5003</link>
      <description>&lt;P&gt;Hi @Vasu&lt;/P&gt;
&lt;P&gt;Check this thread once&lt;/P&gt;
&lt;P&gt;https://community.servicenow.com/community?id=community_question&amp;amp;sys_id=fba18f50db716810f21f5583ca961969&lt;/P&gt;
&lt;P&gt;Thank you&lt;BR /&gt;Prasad&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 09:20:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-to-set-value-to-a-field-after-a-record-has-been-opened-using/m-p/1293875#M5003</guid>
      <dc:creator>Prasad Pagar</dc:creator>
      <dc:date>2022-02-11T09:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to set value to a field after a record has been opened using the  g_aw.openRecord function</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-to-set-value-to-a-field-after-a-record-has-been-opened-using/m-p/1293876#M5004</link>
      <description>&lt;P&gt;Hi Prasad,&lt;/P&gt;
&lt;P&gt;Thank you so much for the response.The record i am looking to fetch is already saved and i want to reopen it and update a field value.Can you help out?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards,&lt;/P&gt;
&lt;P&gt;Vasu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 10:18:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-to-set-value-to-a-field-after-a-record-has-been-opened-using/m-p/1293876#M5004</guid>
      <dc:creator>Vasu20</dc:creator>
      <dc:date>2022-02-11T10:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to set value to a field after a record has been opened using the  g_aw.openRecord function</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-to-set-value-to-a-field-after-a-record-has-been-opened-using/m-p/1293877#M5005</link>
      <description>&lt;P&gt;Can you show me your current code?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 10:20:39 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-to-set-value-to-a-field-after-a-record-has-been-opened-using/m-p/1293877#M5005</guid>
      <dc:creator>Prasad Pagar</dc:creator>
      <dc:date>2022-02-11T10:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to set value to a field after a record has been opened using the  g_aw.openRecord function</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-to-set-value-to-a-field-after-a-record-has-been-opened-using/m-p/1293878#M5006</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;function saveForm(result) { &lt;BR /&gt; result = JSON.parse(result);&lt;BR /&gt; if (!result.error) {&lt;BR /&gt; g_aw.closeRecord();&lt;BR /&gt; g_aw.openRecord(result.table, result.id);&lt;BR /&gt; }&amp;nbsp;&lt;BR /&gt; &lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;here after the record has been opened i need to update it with the value&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 10:23:37 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-to-set-value-to-a-field-after-a-record-has-been-opened-using/m-p/1293878#M5006</guid>
      <dc:creator>Vasu20</dc:creator>
      <dc:date>2022-02-11T10:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to set value to a field after a record has been opened using the  g_aw.openRecord function</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-to-set-value-to-a-field-after-a-record-has-been-opened-using/m-p/1293879#M5007</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Can you try something similar to below code and see if that works:&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;function onClick(g_form) {
g_aw.openRecord("sys_user",g_form.setValue("caller_id",'value here'), { "mode": "form" });
}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Change the parameter accordingly as per your requirement.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Hope this helps. Please mark the answer as correct/helpful based on impact.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Shloke&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 11:25:19 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-to-set-value-to-a-field-after-a-record-has-been-opened-using/m-p/1293879#M5007</guid>
      <dc:creator>shloke04</dc:creator>
      <dc:date>2022-02-11T11:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to set value to a field after a record has been opened using the  g_aw.openRecord function</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-to-set-value-to-a-field-after-a-record-has-been-opened-using/m-p/1293880#M5008</link>
      <description>&lt;P&gt;We had a sys_property to ignore fields and added the current field to it and the issue got resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thank you so much for all your responses.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Vasu&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 06:58:18 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-to-set-value-to-a-field-after-a-record-has-been-opened-using/m-p/1293880#M5008</guid>
      <dc:creator>Vasu20</dc:creator>
      <dc:date>2022-02-18T06:58:18Z</dc:date>
    </item>
  </channel>
</rss>

