Remove context row(s) from Model on new row leaves Model property hasChanged = true

  • 1
  • Problem
  • Updated 2 years ago
  • Acknowledged
When I use the action "Remove context row(s) from Model" on the only row registered with a change, I expect the model to no longer have the property hasChanged to be true.
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb

Posted 2 years ago

  • 1
Photo of Karen Waldschmitt

Karen Waldschmitt, Official Rep

  • 8,240 Points 5k badge 2x thumb
Pat~

Is this still a problem for you? We are having trouble reproducing this. Can you give us more details of how and when you see this occurring?

Thanks!
Karen
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
My mistake. The model does have the right value for hasChanged, but the Save/Cancel button doesn't reflect this.




<skuidpage unsavedchangeswarning="yes" personalizationmode="server" showsidebar="true" showheader="true" tabtooverride="Event">
    <models>
        <model id="Event" limit="100" query="true" createrowifnonefound="false" adapter="salesforce" service="salesforce" sobject="Event" type="">
            <fields>
                <field id="Subject"/>
                <field id="CreatedDate"/>
            </fields>
            <conditions/>
            <actions/>
        </model>
    </models>
    <components>
        <pagetitle model="Event" uniqueid="sk-wiYO9-79">
            <maintitle>
                <template>{{Model.labelPlural}}</template>
            </maintitle>
            <subtitle>
                <template>Home</template>
            </subtitle>
            <actions>
                <action type="savecancel"/>
            </actions>
        </pagetitle>
        <skootable showconditions="true" showsavecancel="false" searchmethod="server" searchbox="true" showexportbuttons="false" pagesize="10" createrecords="false" model="Event" mode="read" uniqueid="sk-wiYOA-80">
            <fields>
                <field id="Subject" allowordering="true"/>
                <field id="CreatedDate" allowordering="true"/>
            </fields>
            <rowactions>
                <action type="edit"/>
                <action type="delete"/>
            </rowactions>
            <massactions usefirstitemasdefault="true">
                <action type="massupdate"/>
                <action type="massdelete"/>
            </massactions>
            <views>
                <view type="standard"/>
            </views>
            <actions defaultlabel="Global Actions" defaulticon="sk-icon-magic" usefirstitemasdefault="true">
                <action type="multi" label="New Event" icon="sk-icon-add">
                    <actions>
                        <action type="createRow" model="Event" appendorprepend="prepend" defaultmodefornewitems="edit"/>
                        <action type="showPopup">
                            <popup title="[New Event]" width="800px">
                                <components>
                                    <mblazonry__popupcontroller uniqueid="sk-winoY-122" hideclose="true" disableescape="true"/>
                                    <pagetitle uniqueid="sk-wipmM-127" model="Event">
                                        <actions>
                                            <action type="multi" label="Save" icon="sk-icon-save"/>
                                            <action type="multi" label="Cancel" icon="sk-icon-cancel">
                                                <actions>
                                                    <action type="abandonRows" model="Event"/>
                                                    <action type="closeTopmostPopup"/>
                                                </actions>
                                            </action>
                                        </actions>
                                        <conditions>
                                            <condition type="contextrow" field="Id" mergefield="Id"/>
                                        </conditions>
                                    </pagetitle>
                                    <basicfieldeditor showheader="true" showsavecancel="false" showerrorsinline="true" model="Event" buttonposition="" uniqueid="sk-wiqaB-131" mode="edit">
                                        <columns>
                                            <column width="50%">
                                                <sections>
                                                    <section title="Section A" collapsible="no">
                                                        <fields/>
                                                    </section>
                                                </sections>
                                            </column>
                                            <column width="50%">
                                                <sections>
                                                    <section title="Section B">
                                                        <fields/>
                                                    </section>
                                                </sections>
                                            </column>
                                        </columns>
                                        <conditions>
                                            <condition type="contextrow" field="Id" mergefield="Id"/>
                                        </conditions>
                                    </basicfieldeditor>
                                </components>
                            </popup>
                        </action>
                    </actions>
                </action>
            </actions>
        </skootable>
    </components>
    <resources>
        <labels/>
        <css/>
        <javascript/>
    </resources>
    <styles>
        <styleitem type="background" bgtype="none"/>
    </styles>
</skuidpage>
 
Photo of Karen Waldschmitt

Karen Waldschmitt, Official Rep

  • 8,240 Points 5k badge 2x thumb
Pat~
Turns out that you've found a bug! The devs are aware of this issue. We will update this post when a future release addressing this bug is available. 

Thanks for alerting us of this bug and helping make Skuid better!

Karen