ButtonSet error encountered if no model specified

  • 1
  • Idea
  • Updated 12 months ago
  • Implemented
The ButtonSet component requires a model despite the fact that it exists in the "Layout" section of the component toolbox.  No other components in the "Layout" section even have a model property let along require one.

If you do not specify a model for the ButtonSet, you encounter the error:

"Invalid Model 'undefined' on Button Set component. This Model's Id may have been changed, or the Model may have been deleted."

There is no reason for ButtonSet to require a model. If a ButtonSet does not have a model, it should still function.  Requiring a model creates unnecessary overhead - the model should be optional.

Steps to reproduce:
1) Create page using XML below
2) preview page

Expected Behavior
Page displays successfully

Actual Behavior
Encounter "Invalid Model 'undefined' on Button Set component. This Model's Id may have been changed, or the Model may have been deleted." error.

Sample Page XML
<skuidpage unsavedchangeswarning="yes" personalizationmode="server" showsidebar="true" useviewportmeta="true" showheader="true">    <models/>
    <components>
        <buttonset uniqueid="sk-2sKqZI-85">
            <buttons/>
        </buttonset>
    </components>
    <resources>
        <labels/>
        <javascript/>
        <css/>
    </resources>
    <styles>
        <styleitem type="background" bgtype="none"/>
    </styles>
</skuidpage>
Photo of Barry Schnell

Barry Schnell, Champion

  • 18,076 Points 10k badge 2x thumb

Posted 2 years ago

  • 1
Photo of Stephen Sells

Stephen Sells, Official Rep

  • 16,856 Points 10k badge 2x thumb
Official Response
Thank you again for bringing this to our attention. Skuid has implemented the solution in the new Miller 11.0.0 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.