Skip to main content

The model is loading correctly with the filtered value, but the filter itself displays “----” instead of the manual option that matches the condition.


Condition:



Filter:


Pageload: the filter displays “----” instead of “Scheduled”

Matt~

Unfortunately, I am not able to reproduce the error you are experiencing by adding a condition and its associated manual filter. Is is possible something else on your page is influencing what gets displayed in your filter? 

Thanks!
Karen


Matt.  Do you still have the “Create None Selected Option” turned on?  This does not work for filterable default on conditions (as you have discovered) but if you have both the manual source and this option on - you get the wierdness…


Create None Selected Option is off (false).


Here’s the XML for my model:


<model id="FollowupInteractions" limit="25" query="true" createrowifnonefound="false" sobject="Interaction__c" doclone="no" type="" orderby="Date__c ASC" forview="false" adapter="salesforce">
<fields>
<field id="Interaction_Purpose__c"/>
<field id="Status__c"/>
<field id="Date__c"/>
<field id="Patient_Case__r.Patient__c"/>
<field id="Patient_Case__r.Patient__r.Name"/>
<field id="Interaction_Category__c"/>
<field id="Interaction_Type__c"/>
<field id="Timeless_Date__c"/>
<field id="Patient_Case__r.Name"/>
<field id="Follow_up_Attempts__c"/>
<field id="Primary_Staff__c"/>
<field id="Primary_Staff__r.Name"/>
<field id="Patient_Case__r.Id"/>
<field id="Patient_Case__r.Patient__r.Id"/>
<field id="Patient_Case__c"/>
<field id="UnreportedPositiveSTDs" uionly="true" displaytype="FORMULA" label="Unreported Positive STDs" readonly="true" returntype="DOUBLE" precision="2" scale="0">
<formula>MODEL_LOOKUP("STDResults","tests","caseId",{{Patient_Case__r.Id}})</formula>
</field>
<field id="Patient_Case__r.Pregnancy_Intention__c"/>
<field id="Primary_User__c"/>
<field id="Primary_User__r.Name"/>
<field id="Interaction_Intention__c"/>
</fields>
<conditions logic="(1 OR (2 AND 3) OR (5 AND 6)) AND 4 AND 7 AND 8 AND 9 AND 10 AND 11 AND 12">
<condition type="fieldvalue" value="Follow-up" field="Interaction_Category__c" operator="=" state="" enclosevalueinquotes="true"/>
<condition type="fieldvalue" value="Scheduling" enclosevalueinquotes="true" field="Interaction_Category__c"/>
<condition type="fieldvalue" value="No show follow-up" field="Interaction_Purpose__c" state="" inactive="false" operator="=" enclosevalueinquotes="true"/>
<condition type="fieldvalue" value="" enclosevalueinquotes="true" field="Interaction_Purpose__c" state="filterableoff" inactive="true" name="Purpose"/>
<condition type="fieldvalue" value="Referral" enclosevalueinquotes="true" field="Interaction_Category__c"/>
<condition type="fieldvalue" value="Scheduled" enclosevalueinquotes="true" field="Status__c"/>
<condition type="fieldvalue" value="Referral" enclosevalueinquotes="true" field="Interaction_Category__c" state="filterableoff" inactive="true" name="CategoryReferral"/>
<condition type="multiple" value="" field="Status__c" state="filterableon" inactive="false" name="Status__c" operator="in" enclosevalueinquotes="true">
<values>
<value>Scheduled</value>
</values>
</condition>
<condition type="fieldvalue" value="" enclosevalueinquotes="false" field="Date__c" state="filterableoff" inactive="true" name="StartDate" operator="gte"/>
<condition type="fieldvalue" value="" enclosevalueinquotes="false" field="Date__c" operator="lte" state="filterableoff" inactive="true" name="EndDate"/>
<condition type="fieldvalue" value="" enclosevalueinquotes="true" field="Interaction_Type__c" state="filterableoff" inactive="true" name="Type"/>
<condition type="param" value="caseid" field="Patient_Case__c" operator="=" enclosevalueinquotes="true" novaluebehavior="deactivate"/>
</conditions>
<actions>
<action>
<actions>
<action type="requeryModel" model="STDResults" behavior="standard"/>
</actions>
<events>
<event>models.loaded</event>
</events>
</action>
</actions>
</model>

And here’s the table:


<skootable showconditions="true" showsavecancel="true" searchmethod="server" searchbox="true" showexportbuttons="false" pagesize="10" createrecords="true" model="FollowupInteractions" mode="read" buttonposition="" emptysearchbehavior="query" allowscrollbars="false" tokenizesearch="true" uniqueid="sk-1oC7w8-80">
<fields>
<field id="Patient_Case__r.Patient__r.Name" valuehalign="" type="" allowordering="true"/>
<field id="Date__c" valuehalign="" type="CUSTOM" snippet="renderHighlightLate">
<label>Date and Time</label>
</field>
<field id="Interaction_Purpose__c" valuehalign="" type="" allowordering="true">
<label>Purpose</label>
</field>
<field id="Follow_up_Attempts__c" valuehalign="" type="">
<label>Attempt</label>
</field>
<field id="Interaction_Type__c" valuehalign="" type="" allowordering="true">
<label>Type</label>
</field>
<field id="Status__c" allowordering="true" readonly="false" valuehalign="" type=""/>
<field id="Interaction_Intention__c" valuehalign="" type="">
<label>Intention</label>
</field>
<field type="COMBO" valuehalign="" allowordering="false">
<label>Primary Staff</label>
<template>{{#$Model.DefaultCenter.data.0.UserAccounts}}{{Primary_User__c}}{{/$Model.DefaultCenter.data.0.UserAccounts}}{{#$Model.DefaultCenter.data.0.RoleAccounts}}{{Primary_Staff__c}}{{/$Model.DefaultCenter.data.0.RoleAccounts}}</template>
</field>
<field id="UnreportedPositiveSTDs" decimalplaces="" valuehalign="" type="CUSTOM" snippet="renderUnreportedPositiveSTDS"/>
</fields>
<rowactions>
<action type="redirect" label="View Patient Profile" url="/{{Patient_Case__r.Patient__r.Id}}" icon="sk-icon-personal-info" window="blank">
<drawer title="Drawer Area" width="800" closehandle="true">
<components/>
</drawer>
</action>
<action type="redirect" label="Launch {{Interaction_Purpose__c}}" icon="sk-icon-phone-call" window="self" url="/apex/skuid__ui?page=Followup_PositivePregnancy&amp;amp;id={{Id}}">
<drawer title="Drawer Area" width="800" closehandle="true">
<components/>
</drawer>
<actions>
<action type="save"/>
</actions>
<renderconditions logictype="and">
<rendercondition type="multiple" operator="in" fieldmodel="FollowupInteractions" sourcetype="fieldvalue" field="Interaction_Purpose__c" value="" enclosevalueinquotes="true">
<values>
<value>Immediate follow-up</value>
<value>2 week follow-up</value>
<value>4 week follow-up</value>
<value>8 week follow-up</value>
<value>16 week follow-up</value>
<value>After due-date follow-up</value>
<value>Pregnancy confirmation</value>
</values>
</rendercondition>
</renderconditions>
</action>
<action type="edit">
<drawer title="Drawer Area" width="90%" closehandle="true">
<components/>
</drawer>
</action>
<action type="redirect" label="Launch No-Show Follow-up" icon="sk-icon-phone-call" window="self" url="/apex/skuid__ui?page=Followup_NoShow&amp;amp;id={{Id}}">
<drawer title="Drawer Area" width="90%" closehandle="true">
<components/>
</drawer>
<renderconditions logictype="and">
<rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="true" fieldmodel="FollowupInteractions" sourcetype="fieldvalue" field="Interaction_Purpose__c" value="No show follow-up"/>
</renderconditions>
</action>
<action type="redirect" label="Launch Closing Summary" icon="fa-envelope-square" window="self" url="/apex/skuid__ui?page=Followup_ClosingSummary&amp;amp;id={{Id}}">
<renderconditions logictype="and">
<rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="true" fieldmodel="FollowupInteractions" sourcetype="fieldvalue" field="Interaction_Purpose__c" value="Chart closing"/>
</renderconditions>
</action>
<action type="redirect" label="Launch Negative Pregnancy Test Follow-up" icon="sk-icon-phone-call" window="self" url="/apex/skuid__ui?page=Followup_NegativePregnancy&amp;amp;id={{Id}}">
<drawer title="Drawer Area" width="90%" closehandle="true">
<components/>
</drawer>
<renderconditions logictype="and">
<rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="true" fieldmodel="FollowupInteractions" sourcetype="fieldvalue" field="Interaction_Purpose__c" value="Negative test follow-up"/>
</renderconditions>
</action>
<action type="redirect" label="Medical Chart Closing" icon="sk-icon-solutions" window="self" url="/apex/skuid__ui?page=MD_MedicalChart&amp;amp;caseid={{Patient_Case__r.Id}}#chart-closing">
<renderconditions logictype="and">
<rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="true" fieldmodel="FollowupInteractions" sourcetype="fieldvalue" field="Interaction_Purpose__c" value="Medical chart closing"/>
</renderconditions>
</action>
<action type="redirect" label="Launch Referral Follow-up" icon="sk-icon-account-transfer" window="self" url="/apex/skuid__ui?page=Followup_Referral&amp;amp;id={{Id}}">
<renderconditions logictype="and">
<rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="true" fieldmodel="FollowupInteractions" sourcetype="fieldvalue" field="Interaction_Category__c" value="Referral"/>
</renderconditions>
</action>
<action type="multi" label="Assign Staff" icon="sk-icon-config">
<actions>
<action type="showPopup">
<popup title="Assign Staff to {{Interaction_Purpose__c}} for {{Patient_Case__r.Patient__c}} on {{Date__c}}." width="60%">
<components>
<pagetitle model="FollowupInteractions" uniqueid="sk-1-ny-L-787">
<maintitle>{{Interaction_Purpose__c}}: {{Date__c}}</maintitle>
<actions>
<action type="multi" label="Save" icon="sk-icon-save">
<actions>
<action type="save">
<models>
<model>FollowupInteractions</model>
</models>
</action>
<action type="closeTopmostPopup"/>
</actions>
</action>
<action type="multi" label="Cancel" icon="sk-icon-close">
<actions>
<action type="cancel">
<models>
<model>FollowupInteractions</model>
</models>
</action>
<action type="closeTopmostPopup"/>
</actions>
</action>
</actions>
<subtitle>{{Patient_Case__r.Patient__c}}</subtitle>
<conditions>
<condition type="contextrow" field="Id" mergefield="Id" operator="="/>
</conditions>
</pagetitle>
<basicfieldeditor showheader="true" showsavecancel="false" showerrorsinline="true" model="FollowupInteractions" buttonposition="" uniqueid="sk-1-nOxk-674" mode="edit">
<columns>
<column width="100%">
<sections>
<section title="Staff" collapsible="no">
<fields>
<field id="Primary_Staff__c" valuehalign="" type="">
<renderconditions logictype="and" onhidedatabehavior="keep">
<rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="true" fieldmodel="DefaultCenter" sourcetype="fieldvalue" nosourcerowbehavior="deactivate" field="Account_System__c" value="Role"/>
</renderconditions>
<enableconditions/>
</field>
<field id="Primary_User__c" valuehalign="" type="">
<renderconditions logictype="and" onhidedatabehavior="keep">
<rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="true" fieldmodel="DefaultCenter" sourcetype="fieldvalue" nosourcerowbehavior="deactivate" field="Account_System__c" value="User"/>
</renderconditions>
<enableconditions/>
</field>
</fields>
</section>
</sections>
</column>
</columns>
<conditions>
<condition type="contextrow" field="Id" mergefield="Id" operator="="/>
</conditions>
</basicfieldeditor>
</components>
<afterclose/>
</popup>
</action>
</actions>
</action>
</rowactions>
<massactions usefirstitemasdefault="true">
<action type="massupdate"/>
<action type="massdel

Reply