Skip to main content

#LWC17 utenti parlano di questo argomento

Welcome to the #TrailblazerCommunity! 👋 Take a moment to introduce yourself below. 💙 

 

Tell us all about YOU:

What are you passionate about? 

What are you looking to learn? 

Where are you located? 

 

Feel free to connect with others in the thread! 👇 

 

UPDATE: To mute this post, click on the arrow on the top right then "Mute."

2.010 commenti
  1. 3 ago, 15:56

    Hi everyone! I'm Rebecca from Cardiff, Wales, UK. I'm passionate about using Salesforce, AI and digital transformation to solve real business problems and improve services. 

    I am currently learning Salesforce Admin, while building my skills in CRM implementation, business analysis and solution design. 

    Looking forward to connecting with fellow Trailblazers, learning from the community and sharing experiences along the way.

0/9000

🎥 I've started a YouTube channel — SalesforceDevDaily! 

 

Sharing the concepts, hacks, and lessons I've learned working as a Salesforce Developer — Apex, LWC, and real project tips. 

Channel Link:-

https://youtube.com/@salesforcedevdaily?si=33wpFFurKxhWvBEI

 

 

Subscribe and let's learn together! 🚀 

#Salesforce #Apex #LWC #Trailblazer

2 commenti
0/9000

Available for freelance and project work — Salesforce Solution Architect, 5x certified, Double Star Ranger 

 

One of the biggest pain points I hear from Salesforce orgs isn't what they want to build — it's that nobody fully understands what they already have. Undocumented automations, mystery Apex, flows nobody wants to touch, integrations with no runbook. If that sounds familiar, this might be for you. 

 

I offer:

  • Org assessments with full documentation of your processes, automation, and architecture
  • Process Builder & Workflow migration to modern Flow — or Apex where Flow hits its limits. If your org is still running on deprecated automation, that's a ticking clock
  • Builds, integrations, Health Cloud, Experience Cloud, MuleSoft, Apex and LWC development

15 years on the platform, PwC consulting background, currently the sole architect for a 200-user org with ERP integration and Data Cloud pipelines.  

 

Drop a comment or message me if you want a second set of eyes on your org.

 

Trailhead: https://trailblazer.me/id/egentile2

LinkedIn: https://www.linkedin.com/in/eileengentile/

 

#Freelance Project Work  #Flow  #ApexDevelopment  #LWC

#Job Postings  #Open Jobs  #Jobopportunities  

0/9000

Hi, I am using servlet.shepherd to downlaod multiple files from a LWC at once . If one of the files, has a special character, it is getting downloaded inside the zip file with its content version Id as its name,  

On the other hand, if a single file with special character is downloaded, it is getting downloaded successfully with the original name,  

Can anybody help. Is this a standard behaviour or we have a way out to handle this. 

 

#Trailhead  #Salesforce Admin  #Salesforce Developer  #LWC  #LWC Component  #Files Section

1 commento
0/9000
0/9000

📢 【Trailhead Academyより新コースのご連絡】

「Lightning Web コンポーネントプログラミング [前編] [後編]」

 

Trailhead Academyより新しいコース開始のお知らせです。 

本コースでは、Lightning Web コンポーネント(LWC)を作成して、Lightning ExperienceとSalesforce モバイルで動作するカスタムアプリケーションの開発方法を学習します。

 

フローや動的フォームを活用すれば、コードを書かなくても効率的なシステム作りを行うことが可能ですが、複雑なビジネス要件を完遂し、標準機能の限界を超える高度なUIを実現するには、プロフェッショナル開発の標準である Lightning Web コンポーネント(LWC) のスキルが不可欠です。

単なる機能紹介にとどまらず、現場で戦えるエンジニアを育成するための体系的なカリキュラムになっています。

ぜひご受講を検討ください。

 

コース名&お申し込み:

  • Lightning Web コンポーネントプログラミング [前編] (DEX602-1) (期間:3日):お申し込み
  • Lightning Web コンポーネントプログラミング [後編] (DEX602-2) (期間:2日):お申し込み

 

受講対象者:

  • カスタム Lightning Web コンポーネントと複数の Salesforce 環境で動作するアプリケーションを開発したい独立系ソフトウェアベンダー(ISV)および Web アプリケーション開発者
  • Salesforce 認定 JavaScript デベロッパー」資格の取得を目指す方

 

初回開催日程:

  • [前編] 2026年7月1日-3日
  • [後編] 2026年7月6日-7日

 

@* カスタマーサクセス日本 *

 

#LWC

0/9000

lightning-record-edit-formで数値(18,0)の桁数超過が検知されず保存される問題 

 

レコード新規作成・編集用のLWCを作成しています。 

lightning-record-edit-formを使用し、form.submit(fields)で保存しています。 

項目はlightning-input-fieldを使用しています。 

 

数値項目(例:数値(18,0))に対して18桁を超える非常に大きい値を入力した場合、 

通常は以下のようなシステムエラーが表示されます。 

「項目名 : 数値項目で有効な範囲を逸脱した値: 数値 1E+42 は大きすぎます。18 桁、小数点以下第 0 位以下の値を入力してください。 」 

 

しかし、特定のパターンの場合のみ、エラーにならず、そのまま保存されてしまいます。 

保存後の値は入力値とは異なる値に変換されています。 

例: 

入力値:100000000000000000000079 → 保存される値:200376420520689000 

入力値:1000000000000000000000000000000000000000000079 → 保存される値:802379605485813000 

 

標準のレコード作成ではこのような動作は発生しません。 

 

LWC + lightning-record-edit-form を使用する場合、 

標準画面と同様に桁数を制御する方法はありますでしょうか。 

原因や解決方法をご存知でしたら教えていただけますと幸いです。  

 

#Salesforce  #LWC

1 commento
  1. 26 mar, 14:24

    lightning-record-edit-form を利用した際、非常に大きな数値(特に18桁を超えるもの)がバリデーションをすり抜けて「全く別の値」で保存されてしまう現象ですね。

    ​これは、JavaScript の Number 型の精度限界(IEEE 754 浮動小数点数) が原因である可能性が非常に高いです。

    ​1. 原因:JavaScript の「2進数変換」と精度の限界

    ​JavaScript の Number 型で安全に扱える整数の最大値(Number.MAX_SAFE_INTEGER)は 2^{53} - 1、つまり 9,007,199,254,740,991(16桁) です。

    ​ご提示の「18桁を超える入力値」を JavaScript(LWCの内部処理)が数値として扱おうとした際、以下の挙動が発生します。

    1.​精度の欠落: 安全な範囲を超えた数値は、最も近い近似値に丸められます。

    2.​オーバーフロー: 内部的な submit() 処理の過程で、巨大な数値が 64ビット浮動小数点数として処理され、Salesforce のサーバーに送られる前に値が「壊れて」しまいます。

    3.​バリデーションの回避: lightning-input-field は、サーバーへ送る直前の値をチェックしますが、既に JavaScript 側で(意図しない)範囲内の数値に変換されてしまっている場合、サーバー側では「正常な数値」として受け取ってしまい、保存が成功してしまいます。

0/9000
0/9000

 LWC lightning-select class Bug: slds-has-error in Log But No Red Border

 

I'm developing a Lightning Web Component (LWC) with an inline lightning-select picklist field (projectDetails) in a data table, where I validate required fields before submission. 

 

Core Issue

When users:

  1. First submit the form with an empty projectDetails value (for selected rows) → the validation logic correctly flags the error, sets item.projectDetailsClass = 'slds-has-error', and the red error border appears as expected.
  2. Then select a valid value for projectDetails (clearing the error) → the red border disappears (correct behavior).
  3. Reselect/clear the projectDetails value to empty again and click submit → the validation logic still detects the empty value (confirmed via console.log showing hasDetailsError = true and projectDetailsClass: "slds-has-error"), but the red error border does NOT reappear on the lightning-select field.

Final Fix

The issue was resolved by binding both onblur and onchange to the same handleBlur handler

(which syncs the field value to the component’s data state), ensuring all user interactions (value change + focus loss) update the state in real time—even when reselecting empty values. 

 

<lightning-select

label="企画内容"

name="projectDetails"

value={item.projectDetails}

options={projectDetailsPickListValues}

data-item-id={item.id}

variant="label-hidden"

onblur={handleBlur}

onchange={handleBlur}

class={item.projectDetailsClass}

></lightning-select>

 

 

#LWC

0/9000

Hi I am facing an issue while creating an Movie search app using the APIs.

1.⭐ https://m.media-amazon.com

  2.⭐ https://www.omdbapi.com

 

import { LightningElement } from 'lwc';

const DELAY=300;

export default class MovieSearch extends LightningElement {

    selectedType="";

    selectedsearch="";

    loading=false;

    selectedPageNo="1";

    delayTimeout;//to store the timeout delay

    // search filter for movies .....

    get typeoptions(){

        return[

        {label:"None",value: ""},

        {label:"Movie",value: "movie"},

        {label:"Series",value: "series"},

        {label:"Episode",value: "episode"}

    ];

    }

//here we are destructuring the values....

    handleChange(event)

    {

        let {name,value}=event.target;

        this.loading=true;

        if(name ==="type")

        {

            this.selectedType=value;

        }

        else if(name ==="search")

        {

          this.selectedsearch=value;

        }

        else if(name==="pageno")

        {

            this.selectedPageNo=value;

        }

        //debouncing process--> where we can delay the execution process for sometime that we want...

        clearTimeout(this.delayTimeout)// this will clears the existing timeout...

        this.delayTimeout =setTimeout(()=>{

           this.searchMovies();

        },DELAY);//always define the constants in Capital letters as a best practice.....

    }

//this method will search for the entered movies

// here we need to use the fetch method.

// Fetch method always returns the promise .

//to handle the promise we need to uise asyn and await.

   async searchMovies()

      {

        //how to put the url..

        // http://www.omdbapi.com/?i=tt3896198&apikey=ac0b1a0e

        //const URL='https://www.omdbapi.com/?s=${enteredValue}&type=${this.selectedType}&page=${this.pageNumber}&apikey=ddb0ceaa'---> Api key we need to enter from our mail;

        const url=`https://www.omdbapi.com/?s=${this.selectedsearch}&type=${this.selectedType}&page=${this.selectedPageNo}&apikey=ddb0ceaa`;// by using that url we are making API call

        const res=await fetch(url);//here we are calling the API

        const data=await res.json();//herte we atre storing the response in the property of a data by using the json.

        console.log("Movies Search Output",data);

      }

}

 

HTML:

 

<template>

   <!--Filter Section for the movies--> 

  <div>

<lightning-layout horizontal-align="center">

    <lightning-layout-item 

    padding="around-small"

    size="3">

    <!--Filter Section==> for the  type of movies(movie,series,episode)-->

    <lightning-combobox

            name="type"

            label="Type"

            value={selectedType}

           placeholder="Select Type"

            options={typeoptions}

            onchange={handleChange} ></lightning-combobox>

 </lightning-layout-item>

    <lightning-layout-item 

    padding="around-small" 

    size="7">

    <!--Filter Section{ by using the name we can search here }-->

    <lightning-input

            name="enter-search"

            label="Enter Search Item"

            placeholder="Search for Movie/Series"

            type="search"

            is-loading={loading}

            onchange={handleChange}

        ></lightning-input>

    </lightning-layout-item>

  <!--PAge Number Code-->

    <lightning-layout-item 

    padding="around-small" 

    size="2">

    <lightning-input 

    type="number" 

    name="pageno" 

    label="Page"

    onchange={handleChange}

    value={selectedPageNo}

    field-level-help="Range 1-100"

    min="1"

    max="100"

    step="1" 

    message-when-range-underflow="Minimum value is 1"

    message-when-range-overflow="Maximum value is 1">

    </lightning-input>

    </lightning-layout-item>

</lightning-layout>

  </div>

   <!--Display Section-->

   <div>

   </div>

</template> #Salesforce Developer #Lightning Web Components #Lightning Experience #Integration #Salesforce Developer #LWC

Hi I am facing an issue while creating an Movie search app using the APIs.1.⭐ https://m.media-amazon.com 2.⭐ https://www.omdbapi.

3 commenti
  1. 14 ott 2025, 17:25

    Great implementation! 👏 The API setup and debounce logic look solid. Just make sure your name attribute in <lightning-input> matches the variable you’re using in handleChange (it should be "search" instead of "enter-search"), which might be causing the update issue.

    You can also check out how we handled API-based movie listings on our streaming platform, Vedu Appslearn more here. It might give you a few ideas for optimizing UI performance and user interaction flow.

0/9000