• Piyush jadav
  • NEWBIE
  • 50 Points
  • Member since 2021
  • GetOnCRM Solutions

  • Chatter
    Feed
  • 2
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 11
    Replies
Hello All,
I am trying to pass a value from @wire to the connectedCallback
 
import PRICE_FIELD from '@salesforce/schema/Order__c.Price__c';
 
@wire(getRecord, { recordId: '$recordId', fields: [PRICE_FIELD] })
  record;
I tried this within the connectedcallback but no value
this.priceId = this.record.data ? getFieldValue(this.record.data, PRICE_FIELD) : '';

So process flow is 
  1. @wire
  2. callback
  3. @wire

So at step 3 the @wire gets a value but not a step 1
What am I doing wrong?

Thank you,
P
 
Hello everyone, 
l used the librairy Jspdf to download my html as a pdf in LWC component as below : 
const {jsPDF} = window.jspdf;
      let doc = new jsPDF('p', 'pt', 'A4');
      doc.addFileToVFS('Muli-normal.ttf', helper.getFontCode());
      doc.addFont('Muli-normal.ttf', 'Muli', 'bold');
      doc.setFont('Muli','bold');
      doc.text(210,25,'titleofdocument');
     
      doc.autoTable({
        margin: {top: 65},
        styles: {font: "Muli"},
        headStyles:{fillColor:'#E30613'},
        head: [['title1', 'title2', 'title3','title4', 'title5']],
        body: this.allelements,
      }).save('titleofdocument.pdf');
  
The problem is when l download the pdf it's give me an url as Blob://htpps:Name_of_the_site which cause me some problems in my application mobile version. So please l need help to change this url Blob as data url like this data:application/pdf;base64.
Please propose me other ways to download my html as a pdf in LWC so that l can obtain a data url instead of a blob url.
It's urgent l am struggling with this for a week now.

Thank you in advance.
What is the best way to call external API in loop more then 300 times.
Hi Expert,

I am using Lightning-data-table with rowaction (VIEW, EDIT, DELETE).
but dropdown list cut off. not visible all options, i know solution if height added in  class 
.slds-scrollable_y, 
but not able to set height in this class

User-added image

Can you please assist






How can set 

this LWC Quickaction component
Hello All,
I am trying to pass a value from @wire to the connectedCallback
 
import PRICE_FIELD from '@salesforce/schema/Order__c.Price__c';
 
@wire(getRecord, { recordId: '$recordId', fields: [PRICE_FIELD] })
  record;
I tried this within the connectedcallback but no value
this.priceId = this.record.data ? getFieldValue(this.record.data, PRICE_FIELD) : '';

So process flow is 
  1. @wire
  2. callback
  3. @wire

So at step 3 the @wire gets a value but not a step 1
What am I doing wrong?

Thank you,
P
 
I have a picklist which gives the below error when trying to select a value.
User-added image
Component:
<lightning:select aura:id="Productreg" name="select" label="Gender" onchange="{!c.onSelectChange}">
                        <option value="">choose one...</option>
                        <option value="male">Male</option>
                        <option value="female">Female</option>

Controller:
 onSelectChange: function (cmp, evt, helper) {
        //alert(cmp.find('select').get('v.value') );
        
        var genderVal = cmp.find('select').get('v.value');
        cmp.set('v.genderVal',genderVal);
        
    },
    afterload: function (cmp, evt, helper) {
        alert('new function test' );
        
        
        
    },
    handleCreateProductReg: function (cmp, evt, helper) {
        
        var CreatePassableItem = component.get('c.CreatePassableItem');
        $A.enqueueAction(CreatePassableItem);
        console.log(CreatePassableItem);
        
        var prodObj = cmp.get("v.ProductRegObj");
        console.log(prodObj);
        var genderVal = cmp.get("v.genderVal")?cmp.get("v.genderVal"):''; 
        prodObj.Gender__c = genderVal;
 
I have two object Auction(master) and Bid(child). i have used lightning datatable(Aura) to display bid history and record-view form(LWC) to display related auction record. my question is how can I pass the record Id from the Auction detail page to my both the components when someone will click the bid history button on detail page?

Thank You! 
Create Aura Component on Buyer page and embed LWC component (child) and send the data from parent
 record id to child and fetch the Buyer with the help of record without calling apex controller. 
(Use any field on the Buyer object to fetch the data).
Hello everyone, 
l used the librairy Jspdf to download my html as a pdf in LWC component as below : 
const {jsPDF} = window.jspdf;
      let doc = new jsPDF('p', 'pt', 'A4');
      doc.addFileToVFS('Muli-normal.ttf', helper.getFontCode());
      doc.addFont('Muli-normal.ttf', 'Muli', 'bold');
      doc.setFont('Muli','bold');
      doc.text(210,25,'titleofdocument');
     
      doc.autoTable({
        margin: {top: 65},
        styles: {font: "Muli"},
        headStyles:{fillColor:'#E30613'},
        head: [['title1', 'title2', 'title3','title4', 'title5']],
        body: this.allelements,
      }).save('titleofdocument.pdf');
  
The problem is when l download the pdf it's give me an url as Blob://htpps:Name_of_the_site which cause me some problems in my application mobile version. So please l need help to change this url Blob as data url like this data:application/pdf;base64.
Please propose me other ways to download my html as a pdf in LWC so that l can obtain a data url instead of a blob url.
It's urgent l am struggling with this for a week now.

Thank you in advance.