sliding panel context is lost

Hi Bill -

I watched your video but given I’m unfamiliar with the objects in your system and can’t quite make out from the video which SObject links to which, I took what I think you are trying to do and converted the concept to use standard objects.

It’s always best when trying to tackle these types of issues to baseline with standard SObjects and reduce complexity with the scenario as much as possible. Not only does this strip away components/config that isn’t relevant to the issue but also allows those of us in the community to get a better understanding of the scenario in order to help :slight_smile: For example, the collapsible wrapper doesn’t have anything to do with what you are trying to accomplish so its a layer that can be removed from troubleshooting.

I think Stephen is on the right track with the “Standard” vs “Get More” but again, not really sure which model is which from watching the video.

In your case, I think you are using a “Model in field” condition instead of a specific value condition. This could be what’s throwing you off as well. Again, difficult to really understand without seeing the entire page.

In the example below I’m using Opportunities & Accounts to demonstrate what I think you are trying to accomplish.

Main Table - List of Opportunities which would be analogous to your “Phone Numbers” I think
Sliding Panel - Details of a single opportunity and details of the account referenced by the opportunity

In the page below, when the sliding panel row action is hit, the following occurs:

  1. Use the {{id}} from the Opportunities model to query the “Opportunity” model
  2. Use the {{AccountId}} from the Opportunities model to query the “Account” model
  3. Query “Opportunity” and “Account”
  4. Show the panel

There are some other ways that you could do this that would be better performing (e.g. re-use Opportunities model and avoid having Opportunity Model) but functionally the below works.

If I’ve misunderstood what you are trying to do or if you want to optimize some, let me know but let’s use Opportunities & Accounts so we’re speaking the same language :slight_smile:

Hope this helps!

<skuidpage unsavedchangeswarning="yes" personalizationmode="server" useviewportmeta="true" showsidebar="true" showheader="true" tabtooverride="Opportunity">    <models>
        <model id="Opportunities" limit="100" query="true" createrowifnonefound="false" datasource="salesforce" sobject="Opportunity" type="">
            <fields>
                <field id="Name"/>
                <field id="CreatedDate"/>
                <field id="AccountId"/>
                <field id="Account&#46;Name"/>
                <field id="Id"/>
            </fields>
            <conditions/>
            <actions/>
        </model>
        <model id="Opportunity" limit="1" query="false" createrowifnonefound="false" datasource="salesforce" type="" doclone="" sobject="Opportunity">
            <fields>
                <field id="Name"/>
                <field id="AccountId"/>
                <field id="Account&#46;Name"/>
                <field id="StageName"/>
                <field id="Id"/>
            </fields>
            <conditions>
                <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="Id" state="filterableoff" inactive="true" name="Id"/>
            </conditions>
            <actions/>
        </model>
        <model id="Account" limit="1" query="false" createrowifnonefound="false" datasource="salesforce" type="" sobject="Account" doclone="">
            <fields>
                <field id="Name"/>
                <field id="Id"/>
                <field id="CreatedById"/>
                <field id="CreatedBy&#46;Name"/>
                <field id="CreatedDate"/>
            </fields>
            <conditions>
                <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="Id" state="filterableoff" inactive="true" name="Id"/>
            </conditions>
            <actions/>
        </model>
    </models>
    <components>
        <pagetitle model="Opportunities" uniqueid="sk-ZzVHy-87">
            <maintitle>
                <template>{{Model&#46;labelPlural}}</template>
            </maintitle>
            <subtitle>
                <template>Home</template>
            </subtitle>
            <actions>
                <action type="savecancel"/>
            </actions>
        </pagetitle>
        <skootable showconditions="true" showsavecancel="false" searchmethod="server" searchbox="true" showexportbuttons="false" pagesize="10" createrecords="true" model="Opportunities" mode="read" allowcolumnreordering="true" uniqueid="sk-ZzVHy-88">
            <fields>
                <field id="Name" hideable="true" allowordering="true" uniqueid="fi-ZzUbT-245"/>
                <field id="CreatedDate" hideable="true" allowordering="true" uniqueid="fi-ZzUbT-246"/>
                <field id="Id" hideable="true" uniqueid="fi-a5g_G-594" valuehalign="" type=""/>
                <field id="AccountId" hideable="true" uniqueid="fi-a5dyc-581" valuehalign="" type=""/>
            </fields>
            <rowactions>
                <action type="multi" label="Run multiple actions" icon="sk-icon-magic">
                    <actions>
                        <action type="setCondition" model="Opportunity" condition="Id" value="{{Id}}"/>
                        <action type="setCondition" model="Account" condition="Id" value="{{AccountId}}"/>
                        <action type="requeryModels" behavior="standard">
                            <models>
                                <model>Opportunity</model>
                                <model>Account</model>
                            </models>
                            <onerroractions>
                                <action type="blockUI" message="There was an error" timeout="3000"/>
                            </onerroractions>
                        </action>
                        <action type="openSlidingPanel">
                            <panel title="Sliding Panel Contents" uniqueid="sk-a1HaF-358" size="350px" origin="right" closeonpageclick="true" behavior="overlay">
                                <components>
                                    <grid uniqueid="sk-a1T-J-362">
                                        <divisions>
                                            <division behavior="flex" minwidth="100px" ratio="1">
                                                <components>
                                                    <basicfieldeditor showheader="true" showsavecancel="false" showerrorsinline="true" model="Opportunity" buttonposition="" uniqueid="sk-a1Vi3-367" mode="read">
                                                        <columns>
                                                            <column width="100%">
                                                                <sections>
                                                                    <section title="Opportunity Details" collapsible="no">
                                                                        <fields>
                                                                            <field id="Id" valuehalign="" type="" uniqueid="fi-a5bSJ-566"/>
                                                                            <field id="Name" valuehalign="" type="" uniqueid="fi-a5bSJ-567"/>
                                                                            <field id="AccountId" valuehalign="" type="" uniqueid="fi-a5bSJ-568"/>
                                                                            <field id="Account&#46;Name" valuehalign="" type="" uniqueid="fi-a5bSK-569"/>
                                                                            <field id="StageName" valuehalign="" type="" uniqueid="fi-a5bSK-570"/>
                                                                        </fields>
                                                                    </section>
                                                                </sections>
                                                            </column>
                                                        </columns>
                                                    </basicfieldeditor>
                                                    <basicfieldeditor showheader="true" showsavecancel="false" showerrorsinline="true" model="Account" buttonposition="" uniqueid="sk-a1WNy-377" mode="read">
                                                        <columns>
                                                            <column width="100%">
                                                                <sections>
                                                                    <section title="Account Details" collapsible="no">
                                                                        <fields>
                                                                            <field id="Id" valuehalign="" type="" uniqueid="fi-a5bSK-571"/>
                                                                            <field id="Name" valuehalign="" type="" uniqueid="fi-a5bSK-572"/>
                                                                            <field id="CreatedBy&#46;Name" valuehalign="" type="" uniqueid="fi-a5bSK-573">
                                                                                <label>Created By</label>
                                                                            </field>
                                                                            <field id="CreatedDate" valuehalign="" type="" uniqueid="fi-a5bSK-574"/>
                                                                        </fields>
                                                                    </section>
                                                                </sections>
                                                            </column>
                                                        </columns>
                                                    </basicfieldeditor>
                                                </components>
                                            </division>
                                        </divisions>
                                        <styles>
                                            <styleitem type="background" bgtype="none"/>
                                        </styles>
                                    </grid>
                                </components>
                            </panel>
                        </action>
                    </actions>
                </action>
            </rowactions>
            <massactions usefirstitemasdefault="true"/>
            <views>
                <view type="standard"/>
            </views>
        </skootable>
    </components>
    <resources>
        <labels/>
        <css/>
        <javascript/>
    </resources>
    <styles>
        <styleitem type="background" bgtype="none"/>
    </styles>
</skuidpage>