• klthaw
  • NEWBIE
  • 5 Points
  • Member since 2019
  • Canon IT Solutions Inc

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 12
    Replies
I am trying to create a form using LWC to create a new record. I added few lightning-input-fields in the lightning-record-edit-form component. Out of 7 fields I added, the form is displaying only first 3 fields and the next button while the remaining fields are not getting displayed. I checked the FLS of the fields on the custom object. All the fields have edit access. Can anyone let me know what am I missing here?
<lightning-record-edit-form object-api-name="Event__c" density="comfy">
          <lightning-messages> </lightning-messages>
          <div class="stepOne">
              <lightning-input-field field-name="DateReported__c" required="true" class="dateAEReported"></lightning-input-field>
              <lightning-input-field field-name="ReportingMethod__c" onchange={checkSelVal} class="reportingMethod"></lightning-input-field>
              <lightning-input-field field-name="ReportingMethodOther__c" required={makeRequired} class="otherReportingMethod"></lightning-input-field>
              <lightning-input-field field-name="Called_with_intent_to_report__c"></lightning-input-field>
              <lightning-input-field field-name="Reporter_requested_information__c"></lightning-input-field>
              <lightning-input-field field-name="Study_ID__c"></lightning-input-field>
              <lightning-input-field field-name="Partner_reference_number__c"></lightning-input-field>
              <lightning-button
                  class="slds-m-top_small slds-float_right"
                  label="Next"
                  onclick={goToStepTwo}
              ></lightning-button>
          </div>
          <div class="stepTwo slds-hide">
              <lightning-input-field field-name="LastName"></lightning-input-field>
              <lightning-button
                  class="slds-m-top_small"
                  label="Previous"
                  onclick={goBackToStepOne}
              ></lightning-button>
              <lightning-button
                  class="slds-m-top_small"
                  label="Next"
                  onclick={goToStepThree}
              ></lightning-button>
          </div>
        </lightning-record-edit-form>
Can we override below New Event button not from calendar?
I think there is no way except using quick action instead of it.
Any idea please.
User-added image
Hi there, can we use static resource sdk js library in apex?



 
Hi 

getDeleted() method is not support for ContentDocument.
so, how can we get deleted ContentDocument Id by using SOAP API from external system. Is any idea?

Thank in advance.
Regards,
LinThaw
Hi Folks,

I am building a LWC to load external JS script file in LWC. However whenever loadScript function is executing it is failing to load and there is not error received.

LWC
import { LightningElement, track  } from 'lwc';
import { loadScript } from 'lightning/platformResourceLoader';
import BrandfolderJS from '@salesforce/resourceUrl/BrandfolderJS';

export default class brandFolderLink extends LightningElement {
	
    @track blnBrandfolderJSInitialized = false;
    
    renderedCallback() {

        if (this.blnBrandfolderJSInitialized) {
            return;
        }
        this.blnBrandfolderJSInitialized = true;

        loadScript(this, BrandfolderJS)
        .then(() => {
            alert('success.......');
        })
        .catch(error => {
            alert('failed.....'+error);
        });
    }
	
}

JS file from Static Resource - Brandfolder JS (https://cdn.brandfolder.com/bf.min.js)
I have created JS file as static resource (BrandfolderJS) and using it in LWC.

LWC is added to App Builder Page/Home Page and trying to load, however it is going to catch block in loadScript method without any error. Error variable is undefined.

Can you please help?

Thank you,
Jigar Lakhani

We are overriding the standard New Event button with a completely custom lightning component.  The new component implents the following  'lightning:actionOverride,force:hasRecordId,force:hasSObjectName,lightning:hasPageReference'.  It works fine except that when I double click on a time frame on the Calendar it does not carry over the time I click i.e. I double click the 12:00 pm slot, and the time defaults to 8:00 am.  How can I pass the time from the calendar to the new event lightning component?
Hi
I have brief knowledge on OWD and sharing settings.
Please explain how OWD=Controlled By parent  actually works.
what it can impact?

also say OWD=private / public readonly for account object, if I share set of records using sharing criteria to a group of users will they also have
access to related contact , opportunity & cases records?

Thanks
vandana