• Rupesh Yangalreddy
  • NEWBIE
  • 50 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 2
    Replies
I am trying to migrate the Lightning web Component ( LWC) from One or to another org using changeset and i am not able to find the LWC in changeset .. IS LCW available with changesets?
Orders related list not displaying on Opportunity 

public with sharing class SurveyUtil {


public Boolean hasSites() {
return Schema.getGlobalDescribe().keySet().contains('site');
}
public List<SurveySiteInfo> getSiteList() {
List<SurveySiteInfo> ret = new List<SurveySiteInfo>();
if (!hasSites()) {
return ret;
}
List<Sobject> sitesResults = Database.query('Select Name, Subdomain, UrlPathPrefix from Site Where Status = \'Active\'');
for (Sobject current : sitesResults) {
ret.add(new SurveySiteInfo((String)current.get('Name'), (String)current.get('UrlPathPrefix'), (String)current.get('Subdomain')));
}
return ret;
}
public class SurveySiteInfo {
public String name { get; set; }
public String prefix { get; set; }
public String subdomain {get; set; }
public SurveySiteInfo(String name, String prefix, String subdomain) {
this.name = name;
this.prefix = prefix;
this.subdomain = subdomain;
}
}
<lightning:card title="New  Opportunity">
    <aura:attribute name="record" type="Object" />
<aura:attribute name="simpleRecord" type="Object" />
<aura:attribute name="recordError" type="String" />
<force:recordData aura:id="recordEditor"
    layoutType="FULL"
    recordId="{!v.recordId}"
    targetError="{!v.recordError}"
    targetRecord="{!v.record}"
    targetFields ="{!v.simpleRecord}"
    mode="EDIT" />
    </lightning:card>

public with sharing class SurveyUtil {


public Boolean hasSites() {
return Schema.getGlobalDescribe().keySet().contains('site');
}
public List<SurveySiteInfo> getSiteList() {
List<SurveySiteInfo> ret = new List<SurveySiteInfo>();
if (!hasSites()) {
return ret;
}
List<Sobject> sitesResults = Database.query('Select Name, Subdomain, UrlPathPrefix from Site Where Status = \'Active\'');
for (Sobject current : sitesResults) {
ret.add(new SurveySiteInfo((String)current.get('Name'), (String)current.get('UrlPathPrefix'), (String)current.get('Subdomain')));
}
return ret;
}
public class SurveySiteInfo {
public String name { get; set; }
public String prefix { get; set; }
public String subdomain {get; set; }
public SurveySiteInfo(String name, String prefix, String subdomain) {
this.name = name;
this.prefix = prefix;
this.subdomain = subdomain;
}
}