Row actions changing all visible rows

  • 1
  • Problem
  • Updated 2 years ago
  • In Progress
Sometimes when a row action is clicked (e.g. like a field update on the row), all visible rows on that users table are updated at the same time.

There is no reasons why this should happen as these are set up as row actions and 99/100 they work perfectly well.  Could the problem occur if the page hasn't loaded properly so it hasn't set the row context?  Any way to prevent these actions triggering until all the page loads?

Thanks
Photo of Chris Mollan

Chris Mollan

  • 570 Points 500 badge 2x thumb

Posted 2 years ago

  • 1
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Very strange. Can you share the XML?
Photo of Chris Mollan

Chris Mollan

  • 570 Points 500 badge 2x thumb
This is the relevant section...let me know if you need the full xml



<action type="multi" label="Mark as In Progress" icon="fa-coffee">                                    <actions>
                                        <action type="blockUI" snippet="tasks.markProgress" message="Updating task...." timeout="3000"/>
                                        <action type="updateRow" fieldmodel="Taskfeed" affectedrows="context" field="Status" enclosevalueinquotes="true" value="In Progress"/>
                                        <action type="save" rollbackonanyerror="true">
                                            <models>
                                                <model>Taskfeed</model>
                                            </models>
                                        </action>
                                        <action type="requeryModel" model="Taskfeed" behavior="standard"/>
                                        <action type="unblockUI"/>
                                    </actions>
                                    <renderconditions logictype="and">
                                        <rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="true" fieldmodel="Taskfeed" sourcetype="fieldvalue" field="Status" value="Needs Starting"/>
                                        <rendercondition type="fieldvalue" operator="!=" enclosevalueinquotes="false" fieldmodel="Taskfeed" sourcetype="fieldvalue" field="Account.Accounts_To_Review__c" value="true"/>
                                    </renderconditions>
                                </action>
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Yup. No sense to it.
Photo of mB Roman Melnik

mB Roman Melnik

  • 2,802 Points 2k badge 2x thumb
If it's not too much work, maybe just create the page in question again from scratch?
Don't copy/paste any xml. Literally rebuild again from a fresh page.

In an earlier release of Skuid, I remember having issues with a page that I couldn't make sense of. xml was fine... Starting from a new page and deleting the old one worked though.