SFX
V2
16.0.3
Using the Select a field to insert works properly and shows fields on the child object
Using the Open Resource Editor doesn’t work properly and shows fields on the parent object.
<skuid__page unsavedchangeswarning="yes" personalizationmode="server" showsidebar="false" showheader="false">
<models>
<model id="Accounts" limit="20" query="true" createrowifnonefound="false" datasource="salesforce" sobject="Account">
<fields>
<field id="Id"/>
<field id="Name"/>
<field id="Opportunities" type="childRelationship" limit="10">
<fields>
<field id="Name"/>
<field id="StageName"/>
</fields>
</field>
</fields>
<conditions>
<condition type="join" value="" field="Id" operator="in" enclosevalueinquotes="true" joinobject="Opportunity" joinfield="AccountId" fieldtargetobjects="Account"/>
</conditions>
<actions/>
</model>
<model id="Opps" limit="" query="false" createrowifnonefound="false" datasource="salesforce" sobject="Opportunity">
<fields>
<field id="Name"/>
<field id="StageName"/>
<field id="Id"/>
<field id="AccountId"/>
<field id="Account.Name"/>
</fields>
<conditions>
<condition type="fieldvalue" value="" enclosevalueinquotes="true" field="AccountId" fieldtargetobjects="Account" clientorserver="server" state="filterableoff" inactive="true" name="AccountId"/>
</conditions>
<actions/>
</model>
<model id="OppContacts" limit="" query="false" createrowifnonefound="false" datasource="salesforce" sobject="OpportunityContactRole">
<fields>
<field id="ContactId"/>
<field id="Contact.Name"/>
<field id="Role"/>
<field id="OpportunityId"/>
<field id="Opportunity.Name"/>
<field id="IsPrimary"/>
</fields>
<conditions>
<condition type="fieldvalue" value="" enclosevalueinquotes="true" field="OpportunityId" fieldtargetobjects="Opportunity" clientorserver="server" state="filterableoff" inactive="true" name="OpportunityId"/>
</conditions>
<actions/>
</model>
<model id="OppQuotes" limit="" query="false" createrowifnonefound="false" datasource="salesforce" sobject="Quote">
<fields>
<field id="AccountId"/>
<field id="Account.Name"/>
<field id="OpportunityId"/>
<field id="Opportunity.Name"/>
<field id="Name"/>
<field id="GrandTotal"/>
</fields>
<conditions>
<condition type="fieldvalue" value="" enclosevalueinquotes="true" field="OpportunityId" fieldtargetobjects="Opportunity" clientorserver="server" state="filterableoff" inactive="true" name="OpportunityId"/>
</conditions>
<actions/>
</model>
</models>
<components>
<skuid__table allowColumnFreezing="dragDrop" model="Accounts" uniqueid="sk-jwp-31759" mode="read" showSaveCancel="true" pageSize="10" enableDrawers="true">
<fields>
<field id="Name" uniqueid="fi-jwp-32279"/>
<field id="Opportunities" type="CHILDREL" label="Child Opps" delimiter="<br>" uniqueid="fi-k4J-20285" template="{{Name}} - {{StageName}}" allowHtml="true"/>
</fields>
<filtering enableSearch="false"/>
<actions/>
<rowActions/>
<massActions/>
<exportProperties useTableColumns="true"/>
<sorting enable="false"/>
<drawer>
<beforeLoad>
<action type="blockUI" styleSettingsVariant="dark"/>
<action type="updateCondition" model="Opps" behavior="set" condition="AccountId" valuesource="fieldvalue" value="{{Id}}"/>
<action type="requeryModels" behavior="loadmore">
<models>
<model>Opps</model>
</models>
</action>
<action type="unblockUI"/>
</beforeLoad>
<components>
<skuid__table allowColumnFreezing="dragDrop" model="Opps" uniqueid="sk-jz9-42492" mode="read" pageSize="10" enableDrawers="true">
<fields>
<field id="Name" uniqueid="fi-jzN-55459"/>
<field id="StageName" uniqueid="fi-jzN-55460"/>
</fields>
<filtering enableSearch="false"/>
<actions/>
<rowActions>
<action type="multi" label="Quotes">
<actions>
<action type="blockUI" styleSettingsVariant="dark"/>
<action type="updateCondition" model="OppQuotes" behavior="set" condition="OpportunityId" valuesource="fieldvalue" value="{{Id}}"/>
<action type="requeryModels" behavior="standard">
<models>
<model>OppQuotes</model>
</models>
</action>
<action type="showModal">
<skuid__modal title="New Modal" width="640px" ariaRole="dialog">
<components>
<skuid__table allowColumnFreezing="dragDrop" model="OppQuotes" uniqueid="sk-k1q-87138" mode="read">
<fields>
<field id="Name" uniqueid="fi-k1v-91567"/>
<field id="GrandTotal" horizontalAlignment="right" uniqueid="fi-k1v-91568"/>
</fields>
<filtering enableSearch="false"/>
<actions/>
<rowActions/>
<massActions/>
<exportProperties useTableColumns="true"/>
<sorting enable="false"/>
<conditions>
<condition type="contextrow" field="OpportunityId" mergefield="Id" operator="=" fieldtargetobjects="Opportunity"/>
</conditions>
</skuid__table>
</components>
</skuid__modal>
</action>
<action type="unblockUI"/>
</actions>
</action>
</rowActions>
<massActions/>
<exportProperties useTableColumns="true"/>
<sorting enable="false"/>
<drawer>
<beforeLoad>
<action type="blockUI" styleSettingsVariant="dark"/>
<action type="updateCondition" model="OppContacts" behavior="set" condition="OpportunityId" valuesource="fieldvalue" value="{{Id}}"/>
<action type="requeryModels" behavior="loadmore">
<models>
<model>OppContacts</model>
</models>
</action>
<action type="unblockUI"/>
</beforeLoad>
<components>
<skuid__table allowColumnFreezing="dragDrop" model="OppContacts" uniqueid="sk-jzM-54600" mode="read">
<fields>
<field id="Role" uniqueid="fi-k1j-82733"/>
<field id="IsPrimary" uniqueid="fi-k1j-82734"/>
<field id="ContactId" uniqueid="fi-k1j-82735"/>
</fields>
<filtering enableSearch="false"/>
<actions/>
<rowActions/>
<massActions/>
<exportProperties useTableColumns="true"/>
<sorting enable="false"/>
<conditions>
<condition type="contextrow" field="OpportunityId" mergefield="Id" operator="=" fieldtargetobjects="Opportunity"/>
</conditions>
</skuid__table>
</components>
</drawer>
<conditions>
<condition type="contextrow" field="AccountId" mergefield="Id" operator="=" fieldtargetobjects="Account"/>
</conditions>
</skuid__table>
</components>
</drawer>
</skuid__table>
</components>
<resources>
<labels/>
<javascript/>
<css/>
<actionsequences/>
</resources>
<styles>
<styleitem type="background" bgtype="none"/>
</styles>
</skuid__page>