Updating a page include in a popup closes popup

  • 3
  • Problem
  • Updated 3 months ago
  • Solved
After upgrading to 11.2.2, when updating a page include rendered within a popup, the popup will close rather than load the content of the desired page.  In our scenario, we have a set of pages to create new records and a set of pages to display record details, where related lists and additional details are included.  After the save of a new record, we reload the page include with the detail page to provide confirmation that the record was saved and provide the user the ability to add related records, attachments, etc.  We are using a simple snippet to perform the update to the page include and the behavior is triggered on the load() function.  This is able to be replicated from the console.  Note that this script works fine when updating includes not in a popup.  Here is the script:

var target = arguments[0],
    content = arguments[1],
    query = arguments[2];
$ = skuid.$;
    var pageInclude = skuid.$('#'+target).data('object');
        pageInclude.pagename = content;
        pageInclude.querystring = query;
        pageInclude.load();



This is invoked by the following URL:
javascript:skuid.snippet.getSnippet('UpdatePageInclude')('NewLead','INTP_LeadDetail','Id={{{Id}}}',);


And here's a sample page where this issue can be observed:

<skuidpage unsavedchangeswarning="yes" personalizationmode="server" useviewportmeta="true" showsidebar="true" showheader="true" tabtooverride="Lead">
    <models>
        <model id="INTP_New_Lead_Lead" limit="1" query="false" createrowifnonefound="true" datasource="salesforce" sobject="Lead" type="">
            <fields>
                <field id="FirstName"/>
                <field id="LastName"/>
                <field id="Company"/>
                <field id="Address"/>
                <field id="City"/>
                <field id="Country"/>
                <field id="CreatedById"/>
                <field id="CreatedBy.Name"/>
                <field id="CreatedDate"/>
                <field id="Description"/>
                <field id="DoNotCall"/>
                <field id="Email"/>
                <field id="HasOptedOutOfEmail"/>
                <field id="Phone"/>
                <field id="RecordTypeId"/>
                <field id="RecordType.Name"/>
                <field id="Street"/>
                <field id="Website"/>
                <field id="PostalCode"/>
                <field id="State"/>
                <field id="Status" overridemetadata="false" ogdisplaytype="PICKLIST" displaytype="PICKLIST" picklistsource="manual">
                    <picklistentries/>
                </field>
            </fields>
            <conditions>
                <condition type="param" value="Owner" field="OwnerId" fieldtargetobjects="Group,User" operator="=" enclosevalueinquotes="true" novaluebehavior=""/>
            </conditions>
            <actions/>
        </model>
    </models>
    <components>
        <grid uniqueid="sk-qSN0o-238">
            <divisions>
                <division behavior="flex" minwidth="60%" ratio="1" verticalalign="top">
                    <components>
                        <basicfieldeditor showsavecancel="false" showheader="true" model="INTP_New_Lead_Lead" mode="edit" uniqueid="sk-26rXP5-95" buttonposition="">
                            <columns>
                                <column width="100%">
                                    <sections>
                                        <section title="Basics" collapsible="no" showheader="false">
                                            <fields>
                                                <field id="FirstName" uniqueid="sk-26rXOl-88" valuehalign="" type=""/> <field id="LastName" uniqueid="sk-26rXOr-90" valuehalign="" type=""/>
                                                <field uniqueid="sk-tQTRR-265" id="Company" showhelp="true" valuehalign="" type=""/> <field uniqueid="sk-qTu2X-520" id="RecordTypeId" showhelp="true" valuehalign="" type="REFPICK" optionsource="" pagesize="5" redirecttype="datasourcedefault">
                                                <searchfields/>
                                                <label>Record Type</label>
                                            </field>
                                            <field uniqueid="sk-tQUo9-276" id="Email" showhelp="true" valuehalign="" type=""/>
                                            <field uniqueid="sk-tQVTv-285" id="Phone" showhelp="true" valuehalign="" type=""/>
                                            <field uniqueid="sk-tSJWo-547" id="Status" showhelp="true" valuehalign="" type=""/>
                                        </fields>
                                    </section>
                                </sections>
                            </column>
                        </columns>
                    </basicfieldeditor>
                </components>
            </division>
            <division behavior="flex" verticalalign="top" minwidth="40%" ratio="1">
                <components>
                    <buttonset uniqueid="sk-qSOce-254" model="INTP_New_Lead_Lead">
                        <buttons>
                            <button type="multi" label="Save" uniqueid="sk-qSXuE-331" icon="sk-icon-save">
                                <actions>
                                    <action type="blockUI" message="Saving"/>
                                    <action type="save">
                                        <models>
                                            <model>INTP_New_Lead_Lead</model>
                                        </models>
                                    </action>
                                    <action type="redirect" window="self" url="javascript:skuid.snippet.getSnippet('UpdatePageInclude')('NewLead','INTP_LeadDetail','Id={{{Id}}}',);"/>
                                    <action type="unblockUI"/>
                                </actions>
                            </button>
                            <button type="multi" label="Cancel" uniqueid="sk-qSXw_-335" icon="sk-icon-cancel" secondary="true">
                                <actions>
                                    <action type="cancel">
                                        <models>
                                            <model>INTP_New_Lead_Lead</model>
                                        </models>
                                    </action>
                                    <action type="closeTopmostPopup"/>
                                </actions>
                            </button>
                        </buttons>
                    </buttonset>
                </components>
            </division>
        </divisions>
        <styles>
            <styleitem type="background" bgtype="none"/>
        </styles>
    </grid>
</components>
<resources>
    <labels/>
    <css/>
    <javascript/>
    <actionsequences uniqueid="sk-qTDl4-466"/>
</resources>
<styles>
    <styleitem type="background" bgtype="none"/>
</styles>
</skuidpage>
Photo of John Dahlberg

John Dahlberg, Champion

  • 2,442 Points 2k badge 2x thumb

Posted 5 months ago

  • 3
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 11,050 Points 10k badge 2x thumb
Official Response
Thank you for your patience! Skuid has fixed the issue you raised here (issue CORE-1979) in the new 11.2.7 release which is now available on the Skuid Releases page.
As a reminder, Salesforce does NOT allow reverting back to prior versions of managed packages. Skuid always recommends installing new versions in a non-business critical sandbox environment to test all mission critical functionality before installing into a production environment. We also recommend that you update out of date themes when you upgrade. Please let us know if you continue to encounter any problems with this issue after upgrading. 
Thanks again for alerting us of these issues!