Hello,
If there is a Salesforce Model which has ‘Query on page load’ off, and the model has ‘Model required’ for its initialising event. Are the actions meant to be executed.
If not, anyway around this?
I want to have a filter model, which gets queried when a filter is selected and in turn runs certain actions. Though, currently its executing actions on Page load which only be executed during ‘Model required’ event and this is interfering with initialisation of page or causes things very messy initialisation.
Best,
Lukas
<skuid__page unsavedchangeswarning=“yes” personalizationmode=“server” showsidebar=“true” showheader=“true”>
<models>
<model id="SkuidPages" limit="" query="false" createrowifnonefound="false" datasource="salesforce" sobject="skuid__Page__c">
<fields>
<field id="Name"/>
</fields>
<conditions/>
<actions>
<action>
<actions>
<action type="custom" snippet="newSnippet"/>
</actions>
<events>
<event>models.loaded</event>
</events>
</action>
</actions>
</model>
</models>
<components/>
<resources>
<labels/>
<javascript>
<jsitem location="inlinesnippet" name="newSnippet" cachelocation="false">const params = arguments&0];
console.log('test');
console.log(params);
</javascript>
<css/>
<actionsequences/>
</resources>
<styles>
<styleitem type="background" bgtype="none"/>
</styles>
</skuid__page>