Updating a page include in a popup closes popup

  • 3
  • Problem
  • Updated 2 years 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;

This is invoked by the following URL:

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">
        <model id="INTP_New_Lead_Lead" limit="1" query="false" createrowifnonefound="true" datasource="salesforce" sobject="Lead" type="">
                <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">
                <condition type="param" value="Owner" field="OwnerId" fieldtargetobjects="Group,User" operator="=" enclosevalueinquotes="true" novaluebehavior=""/>
        <grid uniqueid="sk-qSN0o-238">
                <division behavior="flex" minwidth="60%" ratio="1" verticalalign="top">
                        <basicfieldeditor showsavecancel="false" showheader="true" model="INTP_New_Lead_Lead" mode="edit" uniqueid="sk-26rXP5-95" buttonposition="">
                                <column width="100%">
                                        <section title="Basics" collapsible="no" showheader="false">
                                                <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">
                                                <label>Record Type</label>
                                            <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=""/>
            <division behavior="flex" verticalalign="top" minwidth="40%" ratio="1">
                    <buttonset uniqueid="sk-qSOce-254" model="INTP_New_Lead_Lead">
                            <button type="multi" label="Save" uniqueid="sk-qSXuE-331" icon="sk-icon-save">
                                    <action type="blockUI" message="Saving"/>
                                    <action type="save">
                                    <action type="redirect" window="self" url="javascript:skuid.snippet.getSnippet('UpdatePageInclude')('NewLead','INTP_LeadDetail','Id={{{Id}}}',);"/>
                                    <action type="unblockUI"/>
                            <button type="multi" label="Cancel" uniqueid="sk-qSXw_-335" icon="sk-icon-cancel" secondary="true">
                                    <action type="cancel">
                                    <action type="closeTopmostPopup"/>
            <styleitem type="background" bgtype="none"/>
    <actionsequences uniqueid="sk-qTDl4-466"/>
    <styleitem type="background" bgtype="none"/>
Photo of John Dahlberg

John Dahlberg, Champion

  • 4,670 Points 4k badge 2x thumb

Posted 2 years ago

  • 3
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 12,990 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!