I have a model with a modelmerge condition that I need to dynamically refresh (call updateData) when the underlying dependent model use in the modelmerge condition has changed. I’ve tried to refresh the dependent model and then updateData on the parent model with no success, have tried deactivating and reactivating conditions and still no luck, I can’t get the condition merge values to change once they’ve been set?Is there a way to force a model’s modelmerge condition to re-query/evaluate itself? Have attached sample models (not a whole page) so hopefully this make sense.
<model id="EntitySubscriptionFollowers" limit="999" query="true" createrowifnonefound="false" sobject="EntitySubscription"> <fields> <field id="SubscriberId"/> <field id="Subscriber.Name"/> <field id="ParentId"/> <field id="Parent.Name"/> </fields> <conditions> <condition type="param" value="id" field="ParentId" operator="=" userinfotype="userid" enclosevalueinquotes="true"/> </conditions> </model> <model id="Followers" limit="999" query="true" createrowifnonefound="false" sobject="User" orderby="Name"> <fields> <field id="Name"/> <field id="Id"/> <field id="SmallPhotoUrl"/> <field id="FirstName"/> <field id="LastName"/> <field id="Country"/> <field id="State"/> <field id="Title"/> <field id="MobilePhone"/> <field id="TimeZoneSidKey"/> <field id="AboutMe"/> <field id="City"/> <field id="CompanyName"/> <field id="Department"/> <field id="Division"/> <field id="Email"/> <field id="Extension"/> <field id="LanguageLocaleKey"/> <field id="Phone"/> <field id="Street"/> <field id="FullPhotoUrl"/> <field id="Username"/> <field id="PostalCode"/> </fields> <conditions> <condition type="modelmerge" value="" field="Id" operator="in" model="EntitySubscriptionFollowers" enclosevalueinquotes="true" mergefield="SubscriberId" state="filterableon" inactive="false" name="Followers"/> <condition type="fieldvalue" value="true" enclosevalueinquotes="false" field="IsActive"/> </conditions> </model>