Other than through XML can "__autofilter__" Conditions use URL params?

  • 1
  • Question
  • Updated 3 weeks ago
  • (Edited)
I would like to be able to set model "__autofilter__" condition using a URL parameter. Like this page. Preview and add a URL parameter from your org.

/apex/skuid__ui?page=TestMultipleURLParamValues&id=UserIDHere

<skuidpage unsavedchangeswarning="yes" personalizationmode="server" showsidebar="false" useviewportmeta="true" showheader="false">
    <models>
        <model id="Opps" limit="20" query="true" createrowifnonefound="false" datasource="salesforce" sobject="Opportunity">
            <fields>
                <field id="RecordTypeId"/>
                <field id="Name"/>
                <field id="StageName"/>
            </fields>
            <conditions>
                <condition type="param" field="OwnerId" operator="=" inactive="false" enclosevalueinquotes="true" name="__autofilter__OwnerId" state="filterableoff" value="id" novaluebehavior="deactivate"/>
            </conditions>
            <actions/>
        </model>
    </models>
    <components>
        <skootable showconditions="true" showsavecancel="true" showerrorsinline="true" searchmethod="server" searchbox="true" showexportbuttons="false" hideheader="false" hidefooter="false" pagesize="10" alwaysresetpagination="false" createrecords="true" model="Opps" buttonposition="" mode="read" allowcolumnreordering="true" responsive="true" uniqueid="sk-2dGe-598">
            <fields>
                <field id="RecordTypeId" uniqueid="fi-2dGe-599"/>
                <field id="Name" uniqueid="fi-2dGe-600"/>
                <field id="StageName" uniqueid="fi-2dGe-601"/>
            </fields>
            <rowactions>
                <action type="edit"/>
                <action type="delete"/>
            </rowactions>
            <massactions usefirstitemasdefault="true">
                <action type="massupdate"/>
                <action type="massdelete"/>
            </massactions>
            <views>
                <view type="standard"/>
            </views>
            <filters>
                <filter type="select" createfilteroffoption="true" affectcookies="true" autocompthreshold="25" conditionsource="auto" filtermethod="server" conditionfield="OwnerId" fieldtargetobjects="User" filteroffoptionlabel="--- Any ---" labelmode="no" condition="OwnerId"/>
            </filters>
        </skootable>
    </components>
    <resources>
        <labels/>
        <javascript/>
        <css/>
        <actionsequences uniqueid="sk-2dG0-256"/>
    </resources>
    <styles>
        <styleitem type="background" bgtype="none"/>
    </styles>
</skuidpage>

Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb

Posted 3 weeks ago

  • 1

Be the first to post a reply!