<?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 auto populate (dot-walked fields in the table) variables in form in Employee Slate and Employee Center forum</title>
    <link>https://www.servicenow.com/community/employee-slate-and-employee/how-to-auto-populate-dot-walked-fields-in-the-table-variables-in/m-p/3053062#M10327</link>
    <description>&lt;P&gt;hey everyone,&lt;/P&gt;&lt;P&gt;i have a catalog client script where i autopopulate the fields, based on some conditions. i will do for example&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; g_form.setValue(&lt;/SPAN&gt;&lt;SPAN&gt;'notesVariable'&lt;/SPAN&gt;&lt;SPAN&gt;, myTableGlideRecord.notes);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;but in my table i have a dot walked field and dont know what to do in this case. i tried&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; g_form.setValue('requestorsEmail', myTableGlideRecord.requestor.email);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;or in another case the field in my table would be company.supplier.product&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;How to do set field in this case?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 23 Sep 2024 12:49:07 GMT</pubDate>
    <dc:creator>jennv</dc:creator>
    <dc:date>2024-09-23T12:49:07Z</dc:date>
    <item>
      <title>how to auto populate (dot-walked fields in the table) variables in form</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/how-to-auto-populate-dot-walked-fields-in-the-table-variables-in/m-p/3053062#M10327</link>
      <description>&lt;P&gt;hey everyone,&lt;/P&gt;&lt;P&gt;i have a catalog client script where i autopopulate the fields, based on some conditions. i will do for example&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; g_form.setValue(&lt;/SPAN&gt;&lt;SPAN&gt;'notesVariable'&lt;/SPAN&gt;&lt;SPAN&gt;, myTableGlideRecord.notes);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;but in my table i have a dot walked field and dont know what to do in this case. i tried&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; g_form.setValue('requestorsEmail', myTableGlideRecord.requestor.email);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;or in another case the field in my table would be company.supplier.product&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;How to do set field in this case?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 Sep 2024 12:49:07 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/how-to-auto-populate-dot-walked-fields-in-the-table-variables-in/m-p/3053062#M10327</guid>
      <dc:creator>jennv</dc:creator>
      <dc:date>2024-09-23T12:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to auto populate (dot-walked fields in the table) variables in form</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/how-to-auto-populate-dot-walked-fields-in-the-table-variables-in/m-p/3053096#M10331</link>
      <description>&lt;P&gt;Hi jennv,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The dotwalk "company.supplier.product" is that from the ".requestor" related field ?&lt;BR /&gt;&lt;BR /&gt;If so, then in most cases you can just use g_form.setValue('FIELDNAME', myTableGLideRecord.requestor.company.supplier.product); But to dotwalk the fields need to be reference fields. The last value you want to get can be any types of fields.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In some cases its beter to first use something like&amp;nbsp; var xx = g_form.getValue('Full dotwalkstring); and then use the variable to set a value.&lt;BR /&gt;&lt;BR /&gt;Let me know if this helps, if not please provide more info about the script in total.&lt;BR /&gt;&lt;BR /&gt;Kind Regards,&lt;BR /&gt;&lt;BR /&gt;Collin&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 13:29:36 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/how-to-auto-populate-dot-walked-fields-in-the-table-variables-in/m-p/3053096#M10331</guid>
      <dc:creator>Collin Romeijn</dc:creator>
      <dc:date>2024-09-23T13:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to auto populate (dot-walked fields in the table) variables in form</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/how-to-auto-populate-dot-walked-fields-in-the-table-variables-in/m-p/3053117#M10332</link>
      <description>&lt;P&gt;Hi Cloin, thank you for your fast answer... Thats what i did but doesnt work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;let me give you more info :&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;function&lt;/SPAN&gt;&lt;SPAN&gt; onChange(control, oldValue, newValue, isLoading) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (isLoading || newValue == &lt;/SPAN&gt;&lt;SPAN&gt;''&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; rda = g_form.getValue(&lt;/SPAN&gt;&lt;SPAN&gt;'scegli_la_riga_che_vuoi_duplicare'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; prlGR = &lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;GlideRecord&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'sn_shop_purchase_line'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; prlGR.addQuery(&lt;/SPAN&gt;&lt;SPAN&gt;'sys_id'&lt;/SPAN&gt;&lt;SPAN&gt;, rda);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; prlGR.query(prlResponse);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;function&lt;/SPAN&gt;&lt;SPAN&gt; prlResponse(prlGR) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;while&lt;/SPAN&gt;&lt;SPAN&gt; (prlGR.next()) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; g_form.setValue(&lt;/SPAN&gt;&lt;SPAN&gt;'u_priority'&lt;/SPAN&gt;&lt;SPAN&gt;, prlGR.u_priority);&amp;nbsp; &amp;nbsp;//this and other fields like this work&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; g_form.setValue(&lt;/SPAN&gt;&lt;SPAN&gt;'u_categoria_3_livello'&lt;/SPAN&gt;&lt;SPAN&gt;, prlGR.supplier_product.product_category);&amp;nbsp; &amp;nbsp;//these dont work&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;........&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 Sep 2024 13:45:04 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/how-to-auto-populate-dot-walked-fields-in-the-table-variables-in/m-p/3053117#M10332</guid>
      <dc:creator>jennv</dc:creator>
      <dc:date>2024-09-23T13:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to auto populate (dot-walked fields in the table) variables in form</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/how-to-auto-populate-dot-walked-fields-in-the-table-variables-in/m-p/3053193#M10339</link>
      <description>&lt;P&gt;ok i think i understood better what you are saying , and no, im not trying to do that. the field i want to dot walk, is not in the form, but in a table, in the same table that this record producer submits the form. for context: i have a variable : do you want to duplicate an existing record?&lt;/P&gt;&lt;P&gt;if yes, another variable is shown : choose the record you want to duplicate.&amp;nbsp;&lt;BR /&gt;here i do a gliderecord, query on the record that end user chose,&amp;nbsp; and i get each field in the table (existing record that user chose) and fill the variables in the form with those values. I hope I was clear.&amp;nbsp; (Im replying for the second time, sorry my replies are taking too long to get approved)&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 14:57:57 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/how-to-auto-populate-dot-walked-fields-in-the-table-variables-in/m-p/3053193#M10339</guid>
      <dc:creator>jennv</dc:creator>
      <dc:date>2024-09-23T14:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to auto populate (dot-walked fields in the table) variables in form</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/how-to-auto-populate-dot-walked-fields-in-the-table-variables-in/m-p/3053271#M10340</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/715493"&gt;@jennv&lt;/a&gt;&amp;nbsp;Instead of using a client script. You can use the Auto populate feature available on variable form in Service Catalog. For more information please refer to the blog&amp;nbsp;&lt;A href="https://www.servicenow.com/community/developer-articles/auto-populate-a-variable-based-on-a-reference-type-variable-utah/ta-p/2475511" target="_blank"&gt;https://www.servicenow.com/community/developer-articles/auto-populate-a-variable-based-on-a-reference-type-variable-utah/ta-p/2475511&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 16:11:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/how-to-auto-populate-dot-walked-fields-in-the-table-variables-in/m-p/3053271#M10340</guid>
      <dc:creator>Sandeep Rajput</dc:creator>
      <dc:date>2024-09-23T16:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to auto populate (dot-walked fields in the table) variables in form</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/how-to-auto-populate-dot-walked-fields-in-the-table-variables-in/m-p/3053603#M10342</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/715493"&gt;@jennv&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;g_form.setValue('u_categoria_3_livello', prlGR.supplier_product.product_category);   //these dont work
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This multi-level dot walking won't work in client script. If your really want to extract this value then I recommend you to return this value from script include itself.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 02:41:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/how-to-auto-populate-dot-walked-fields-in-the-table-variables-in/m-p/3053603#M10342</guid>
      <dc:creator>Sandeep Rajput</dc:creator>
      <dc:date>2024-09-24T02:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to auto populate (dot-walked fields in the table) variables in form</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/how-to-auto-populate-dot-walked-fields-in-the-table-variables-in/m-p/3060915#M10420</link>
      <description>&lt;P&gt;thank you very much for your answers, really appreciate it. I decided to use script include with glide ajax, as it seemed like the best approach.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 09:50:10 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/how-to-auto-populate-dot-walked-fields-in-the-table-variables-in/m-p/3060915#M10420</guid>
      <dc:creator>jennv</dc:creator>
      <dc:date>2024-10-01T09:50:10Z</dc:date>
    </item>
  </channel>
</rss>

