• Alex Z 16
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 2
    Replies

I have two orgs created in the Environment Hub, both on AP15.
The 'Partner Developer' org actually lists 'small' as a valid factor in LWC (e.g. in Lightning Page Builder you can select 'phone'); the 'Partner Professional' org fails to deploy the managed package I created and the Page Builder does NOT have 'phone' as an option.


I can't find any setting where i would be able to switch that on? The Lightning experience on iPad is off on both of them.


I can create multiple records using /services/data/v46.0/composite/sobjects API.
Unfortunately, the response does not handle referenceId the same way as the stree API does.
So when i try this payload:
{"allOrNone":true, "records":[ {"attributes":{"type":"Account", "referenceId" : "ref1"},"name":"SampleAccount1"}, {"attributes":{"type":"Account", "referenceId" : "ref2"},"name":"SampleAccount2"} ]}
I get a simple
[{"id":"SomeId1","success":true,"errors":[]},{"id":"SomeId2","success":true,"errors":[]}]
Looking at the data in the UI it seems that SampleAccount1 is the first id, and 2 is the second.
However, i can't find any documentation confirming that this is guaranteed.
Considering the API works in batches of up to 200, how are you meant to marry up those ids back to the original records you sent (unless you somehow use external Ids which is not always the case for all objects).

With regards to standard composite API (containing up to 25 subrequests) we have information re: API consumption here:
Documentation (https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite.htm)


Which reads:

The entire request counts as a single call toward your API limits.


However, I can't find anything similar for the SObject Tree/SOBject Collections API (the one with 200 subrequests).


Does it work like batch (each sub is 1 API call) or as composite (all subs together are 1 API call)?

There is an issue that seems to only affect orgs that are developing managed packages. What happens is if you have one custom component import another custom component, the js can't compile as it can't find the module (for whatever reason now?)


To replicate this, do the following in Summer 19:
1) Create the first component (e.g. here called TestCo)
Html

<template> Hello world! </template>

Js

import { LightningElement } from 'lwc'; export default class TestCo extends LightningElement {}


Metadata

<?xml version="1.0" encoding="UTF-8"?> 
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="testCo"> 
<apiVersion>45.0</apiVersion> 
<isExposed>false</isExposed> </LightningComponentBundle>

2) Create the second component (here called DummyEditor)
Html

<template> <c-test-co></c-test-co> </template>

Js
 

import { LightningElement, api, wire, track } from "lwc"; 
import { TestCo } from 'c/testCo'; // note: this doesn't make any difference export default class DummyEditor extends LightningElement { }

Metadata

<?xml version="1.0" encoding="UTF-8"?> <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="dummyEditor"> <apiVersion>45.0</apiVersion> 
<isExposed>true</isExposed> 
<masterLabel>DUMMY</masterLabel> 
<targets> 
  <target>lightning__RecordPage</target> 
</targets> 
</LightningComponentBundle>

3) Now add the second component anywhere to a LWC record page
4) Try to open the record (note: it WILL work in App Builder, but not in the console)

Trying to repro this in a brand new dev org I first added this component to Account object - THAT worked. However, when i created a Custom object, and added the component to that - it fails the same way.

So there is definitely an issue, and it is reproducible on a brand new org, the conditions are:

1) Dev org
2) My Domain enabled (so LWC can work)
3) Managed package enabled -> namespace + package created, package can be empty
4) Custom object
5) The components as per below
6) LWC record page for CUSTOM object contains these components

I have added a LWC component onto an APP page:
 
<?xml version="1.0" encoding="UTF-8"?>
    <FlexiPage xmlns="http://soap.sforce.com/2006/04/metadata">
        <flexiPageRegions>
            <componentInstances>
                <componentName>myComponent</componentName>
            </componentInstances>
            <name>main</name>
            <type>Region</type>
        </flexiPageRegions>
        <masterLabel>Something</masterLabel>
        <template>
            <name>flexipage:defaultAppHomeTemplate</name>
        </template>
        <type>AppPage</type>
    </FlexiPage>


I have then set the App Page as a tab for my App.

When my flexipage is rendered, there is a default header with my tab icon and tab name rendered in the UI.

How can i hide that header so that the only thing rendered is my flexipage LWC component?
<table aria-multiselectable="true" class="slds-table slds-table_bordered slds-table_fixed-layout slds-table_resizable-cols" role="grid">
<thead>
<tr class="slds-line-height_reset">
<th class="slds-text-align_right" scope="col" style="width:3.25rem">
<span id="column-group-header" class="slds-assistive-text">Choose a row</span>
<div class="slds-th__action slds-th__action_form">
<div class="slds-checkbox">
<input type="checkbox" name="options" id="checkbox-289" value="checkbox-289" tabindex="0" aria-labelledby="check-select-all-label column-group-header" />
<label class="slds-checkbox__label" for="checkbox-289" id="check-select-all-label">
<span class="slds-checkbox_faux"></span>
<span class="slds-form-element__label slds-assistive-text">Select All</span>
</label>
</div>
</div>
</th>
<th aria-label="Service Location" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Service Location">Service Location</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown"></use>
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input type="range" aria-label="Service Location column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-526" max="1000" min="20" tabindex="0" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="Location" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Location">Location</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown"></use>
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input type="range" aria-label="Account Name column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-527" max="1000" min="20" tabindex="0" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="ICC Subscriber ID" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="ICC Subscriber ID">ICC Subscriber ID</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown"></use>
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input type="range" aria-label="ICC Subscriber ID column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-528" max="1000" min="20" tabindex="0" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="Legacy ID" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Legacy ID">Legacy ID</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown"></use>
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input type="range" aria-label="Legacy ID column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-529" max="1000" min="20" tabindex="0" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="Acquired Company or Biller" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Acquired Company or Biller">Acquired Company or Biller</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown"></use>
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input type="range" aria-label="Acquired Company or Biller column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-530" max="1000" min="20" tabindex="0" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="BillingID" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="BillingID">BillingID</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown"></use>
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input type="range" aria-label="BillingID column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-531" max="1000" min="20" tabindex="0" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="Billable" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Billable">Billable</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown"></use>
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input type="range" aria-label="Billable column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-532" max="1000" min="20" tabindex="0" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="Parent Service Location" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Parent Service Location">Parent Service Location</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown"></use>
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input type="range" aria-label="Parent Service Location column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-533" max="1000" min="20" tabindex="0" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th class="" scope="col" style="width:3.25rem">
<div class="slds-truncate slds-assistive-text" title="Actions">Actions</div>
</th>
</tr>
</thead>
<tbody>
<tr aria-selected="false" class="slds-hint-parent">
<td class="slds-text-align_right" role="gridcell">
<div class="slds-checkbox">
<input type="checkbox" name="options" id="checkbox-01" value="checkbox-01" tabindex="0" aria-labelledby="check-button-label-01 column-group-header" />
<label class="slds-checkbox__label" for="checkbox-01" id="check-button-label-01">
<span class="slds-checkbox_faux"></span>
<span class="slds-form-element__label slds-assistive-text">Select item 1</span>
</label>
</div>
</td>
<th scope="row">
<div class="slds-truncate" title="437 Jarvis Street">
<a href="javascript:void(0);" tabindex="0">437 Jarvis Street</a>
</div>
</th>
<td role="gridcell">
<div class="slds-truncate" title="Acme">Acme</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title=""></div>
</td>
<td role="gridcell">
<div class="slds-truncate" title=""></div>
</td>
<td role="gridcell">
<div class="slds-truncate" title=""></div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="25665">25665</div>
</td>
<td role="gridcell">
<button class="slds-button slds-button_icon slds-button_icon-border-filled slds-button_icon-x-small" aria-haspopup="true" tabindex="0" title="More actions for Acme - 1,200 Widgets">
<svg class="slds-button__icon slds-button__icon_hint slds-button__icon_small" aria-hidden="true">
<use xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#down"></use>
</svg>
<span class="slds-assistive-text">More actions for Acme - 1,200 Widgets</span>
</button>
</td>
<td role="gridcell">
<div class="slds-truncate" title="2571 Lundigan DR">
<a href="javascript:void(0);" tabindex="0">2571 Lundigan Dr</a>
</div>
</td>
</tr>
<tr aria-selected="false" class="slds-hint-parent">
<td class="slds-text-align_right" role="gridcell">
<div class="slds-checkbox">
<input type="checkbox" name="options" id="checkbox-02" value="checkbox-02" tabindex="0" aria-labelledby="check-button-label-02 column-group-header" />
<label class="slds-checkbox__label" for="checkbox-02" id="check-button-label-02">
<span class="slds-checkbox_faux"></span>
<span class="slds-form-element__label slds-assistive-text">Select item 2</span>
</label>
</div>
</td>
<th scope="row">
<div class="slds-truncate" title="5160 Orbitor Dr">
<a href="javascript:void(0);" tabindex="0">5160 Orbitor Dr</a>
</div>
</th>
<td role="gridcell">
<div class="slds-truncate" title="Acme">Acme</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title=""></div>
</td>
<td role="gridcell">
<div class="slds-truncate" title=""></div>
</td>
<td role="gridcell">
<div class="slds-truncate" title=""></div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="256234">256234</div>
</td>
<td role="gridcell">
<button class="slds-button slds-button_icon slds-button_icon-border-filled slds-button_icon-x-small" aria-haspopup="true" tabindex="0" title="More actions for Acme - 1,200 Widgets">
<svg class="slds-button__icon slds-button__icon_hint slds-button__icon_small" aria-hidden="true">
<use xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#down"></use>
</svg>
<span class="slds-assistive-text">More actions for Acme - 1,200 Widgets</span>
</button>
</td>
<td role="gridcell">
<div class="slds-truncate" title="5160 orbitor Dr Mississuaga">
<a href="javascript:void(0);" tabindex="0">5160 orbitor Dr Mississuaga</a>
</div>
</td>
</tr>
<tr aria-selected="false" class="slds-hint-parent">
<td class="slds-text-align_right" role="gridcell">
<div class="slds-checkbox">
<input type="checkbox" name="options" id="checkbox-03" value="checkbox-03" tabindex="0" aria-labelledby="check-button-label-03 column-group-header" />
<label class="slds-checkbox__label" for="checkbox-03" id="check-button-label-03">
<span class="slds-checkbox_faux"></span>
<span class="slds-form-element__label slds-assistive-text">Select item 3</span>
</label>
</div>
</td>
<th scope="row">
<div class="slds-truncate" title="121 University ave east">
<a href="javascript:void(0);" tabindex="0">121 University ave east</a>
</div>
</th>
<td role="gridcell">
<div class="slds-truncate" title="salesforce.com">salesforce.com</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title=""></div>
</td>
<td role="gridcell">
<div class="slds-truncate" title=""></div>
</td>
<td role="gridcell">
<div class="slds-truncate" title=""></div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="563234">563234</div>
</td>
<td role="gridcell">
<button class="slds-button slds-button_icon slds-button_icon-border-filled slds-button_icon-x-small" aria-haspopup="true" tabindex="0" title="More actions for Acme - 1,200 Widgets">
<svg class="slds-button__icon slds-button__icon_hint slds-button__icon_small" aria-hidden="true">
<use xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#down"></use>
</svg>
<span class="slds-assistive-text">More actions for Acme - 1,200 Widgets</span>
</button>
</td>
<td role="gridcell">
<div class="slds-truncate" title="121 University Ave East">
<a href="javascript:void(0);" tabindex="0">121 University Ave East</a>
</div>
</td>
</tr>
</tbody>
</table>

This is my code of the table. Basically i want to filter out a row by a keyword so that it only shows that onw row and hides the rest. This is a lightning web component from slds.
I have added a LWC component onto an APP page:
 
<?xml version="1.0" encoding="UTF-8"?>
    <FlexiPage xmlns="http://soap.sforce.com/2006/04/metadata">
        <flexiPageRegions>
            <componentInstances>
                <componentName>myComponent</componentName>
            </componentInstances>
            <name>main</name>
            <type>Region</type>
        </flexiPageRegions>
        <masterLabel>Something</masterLabel>
        <template>
            <name>flexipage:defaultAppHomeTemplate</name>
        </template>
        <type>AppPage</type>
    </FlexiPage>


I have then set the App Page as a tab for my App.

When my flexipage is rendered, there is a default header with my tab icon and tab name rendered in the UI.

How can i hide that header so that the only thing rendered is my flexipage LWC component?