Skip to main content

I am trying to get a drawer to filter on the model that is on the table where the drawer originates. I have tried several versions of conditions and before load actions, and it is not working. Also, is there any way to open the page with all drawers open?  Any help would be appreciated!

Try this XML.


<skuidpage unsavedchangeswarning="yes" personalizationmode="server" showsidebar="true" showheader="true"> <models> <model id="Account" limit="5" query="true" createrowifnonefound="false" adapter="" type="" sobject="Account"> <fields> <field id="Id"/> <field id="Name"/> </fields> <conditions/> <actions/> </model> <model id="AccountOpps" limit="20" query="false" createrowifnonefound="false" adapter="" type="" sobject="Opportunity"> <fields> <field id="Name"/> </fields> <conditions> <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="AccountId" state="filterableoff" inactive="true" name="AccountId"/> </conditions> <actions/> </model> </models> <components> <skootable showconditions="true" showsavecancel="true" showerrorsinline="true" searchmethod="server" searchbox="true" showexportbuttons="false" pagesize="10" createrecords="true" model="Account" buttonposition="" mode="read" uniqueid="sk-sSbyM-154"> <fields> <field id="Name"/> </fields> <rowactions> <action type="edit"/> <action type="delete"/> <action type="drawer" label="See Opps" icon="sk-icon-magic"> <drawer title="Drawer Area" width="90%" closehandle="true"> <components> <skootable showconditions="true" showsavecancel="true" showerrorsinline="true" searchmethod="server" searchbox="true" showexportbuttons="false" pagesize="10" createrecords="true" model="AccountOpps" buttonposition="" mode="read" uniqueid="sk-sSsiN-209"> <fields> <field id="Name"/> </fields> <rowactions> <action type="edit"/> <action type="delete"/> </rowactions> <massactions usefirstitemasdefault="true"> <action type="massupdate"/> <action type="massdelete"/> </massactions> <views> <view type="standard"/> </views> <conditions> <condition type="contextrow" field="Id" mergefield="AccountId" operator="="/> </conditions> </skootable> </components> <beforeload> <action type="setCondition" model="AccountOpps" condition="AccountId" value="{{Id}}"/> <action type="requeryModels" behavior="loadmore"> <models> <model>AccountOpps</model> </models> </action> </beforeload> </drawer> </action> </rowactions> <massactions usefirstitemasdefault="true"> <action type="massupdate"/> <action type="massdelete"/> </massactions> <views> <view type="standard"/> </views> </skootable> </components> <resources> <labels/> <javascript/> <css/> </resources> <styles> <styleitem type="background" bgtype="none"/> </styles> </skuidpage>


Here’s the video and instructions/hiccups for this as well.



Thanks Pat! 


Reply