Skip to main content
Nintex Community Menu Bar
Question

Cannot read property '0' of undefined" javascript exception during popup display"

  • July 10, 2024
  • 7 replies
  • 27 views

Forum|alt.badge.img+13

When a popup is displayed in the model event ‘new row created’, a javascript exception “cannot read property ‘0’ of undefined” is encountered.

Notes

  1. The popup is triggered when a “new row” is added to model
  2. if the model is marked to “process client side” the exception is NOT encountered
  3. Removing the field editor from the popup leaving only the page title, and the popup properly displays without encountering an exception

Steps to reproduce:

  1. Create page using XML below
  2. Preview page

Expected Behavior
Popup displays

Actual Behavior
Javascript exception encountered

Sample Page XML

<skuidpage unsavedchangeswarning="yes" personalizationmode="server" showsidebar="true" showheader="true" tabtooverride="Account">   <models>
  <model id="Account" limit="1" query="false" createrowifnonefound="true" sobject="Account" adapter="" type="" doclone="" processonclient="false">
     <fields>
        <field id="Name"></field>
        <field id="CreatedDate"></field>
     </fields>
     <conditions></conditions>
     <actions>
        <action>
           <actions>
              <action type="showPopup">
                 <popup title="New Popup" width="90%">
                    <components>
                       <pagetitle model="Account" uniqueid="sk-2rU-Jx-105">
                          <maintitle>
                             <template>{{Name}}</template>
                          </maintitle>
                          <subtitle>
                             <template>{{Model.label}}</template>
                          </subtitle>
                          <actions></actions>
                          <conditions>
                             <condition type="contextrow" field="Id" mergefield="Id" operator="="></condition>
                          </conditions>
                       </pagetitle>
                       <basicfieldeditor showheader="true" showsavecancel="true" showerrorsinline="true" model="Account" buttonposition="" uniqueid="sk-2rVuwQ-150" mode="read">
                          <columns>
                             <column width="100%">
                                <sections>
                                   <section title="Section A" collapsible="no">
                                      <fields>
                                         <field id="Name"></field>
                                      </fields>
                                   </section>
                                </sections>
                             </column>
                          </columns>
                          <conditions>
                             <condition type="contextrow" field="Id" mergefield="Id" operator="="></condition>
                          </conditions>
                       </basicfieldeditor>
                    </components>
                 </popup>
              </action>
           </actions>
           <events>
              <event>row.created</event>
           </events>
        </action>
     </actions>
  </model>
{{Name}} {{Model.label}}

7 replies

Forum|alt.badge.img+20

Barry “Steps to Reproduce” Schnell


Forum|alt.badge.img+17
  • Nintex Employee
  • July 10, 2024

And in this case,  the steps were pretty minimal… 

Thanks for the report Barry - we’ll look into this. 


Forum|alt.badge.img+13

Thanks Rob!


Forum|alt.badge.img+17
  • Nintex Employee
  • July 10, 2024

Barry.  We’ve identified this issue and it should be fixed in the next update.  (Which is coming very soon)


Forum|alt.badge.img+13

Awesome news, thank you!


Forum|alt.badge.img+8

This should be fixed in Banzai Update 5. Available from the http://skuidify.com/skuidreleases page.


Forum|alt.badge.img+13

Tested and confirmed as resolved as of Skuid 7.24.  Thank you!