• Ridhima Saxena 21
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 1
    Replies

Hii Developers,
I wanted to ask if there is any way to replicate same functionality of showToast which is used in lightning component.

I have lightning component which I have put inside visual force page to use in classic 

So after submit data successfully I wanted to show showToast message similar looking piece of code which works like toast message on classic and placed globally outside the component just we see in lightning 

User-added imageJust like here you can see show toast globally

I wanted this same functionality for classic

If anyone could help would be a great help

Thanks in advance

Hiii Developer,
I have created sum picklist in LWC and i wanted to show only number field if i select sum from the picklist so it should show number fields not all the fields.
Help me to give solution in apex.
How to filter number field in apex??

Thanks in advance
Ridhima
Hii Team,

As I have written one apex method for sum rollup functionality which is working fine when i call from anonymous window.
                                                 Apex
@AuraEnabled
    public static object sumRollup(String recordObject,String recordField) {
        System.debug(recordObject);
        Object recordSum;             
        //String sum = [select sum(annualrevenue) from account];
        String sum = 'select' +' '+ 'SUM'+ '('+recordField+')'  + ' from ' + recordObject;  
        AggregateResult[] groupedResults = database.query(sum);
        for (AggregateResult ar : groupedResults)  {
            recordSum=ar.get('expr0');         
            System.debug('Sum amount -- ' + recordSum);
        }
        return recordSum;
    } 
But 
when i select field from picklist dynamically it is not pritting result only run till console.log("2 sum") You can see this console below.
                                              Here is my JS
sumRecordType() {
    console.log("2 sum");
    sumRollup({
      recordObject: this.selectedObjectValue,
      recordField: this.selectedFieldValue,
    })
      .then((result) => {
        console.log("Hello Sum" + result);
        this.recordCountTypeValue = result;
      })
      .catch((error) => {
        this.error = error;
      });
  }
How to resolve it Please help This is LWC question
Hii Developers,
 I have created one lookup custom component and now  i Have called it into my parent component.....Now My requirement to asked you is i wanted to make lookup component required so that if someone skip this lookup field it shows error "Please select object" and do not allow to save till it fill up the field.
Its Urgent
Thanks In Advance
Ridhima
Hii Team,
I have a requirement as i want to make sum picklist as whenever i click on it field(sobject picklist) should come which is company but i wanted that My field should get calculated value.
Example : 'Select Sum(field) from sobject;'
Used in LWC
Hi Team,
I want to ask Is there any way to create Tab dynamically on the creation of record? Like say as I have input field where i am inserting my data and i wanted that to directly create custom tab automatically whenever I save my record but don't want to convert it into object using metadata API becoz custom objects do have governor limits
Please reply ASAP 
It's Urgent

Thanks and Regards
 
Hii Developers,
 I have created one lookup custom component and now  i Have called it into my parent component.....Now My requirement to asked you is i wanted to make lookup component required so that if someone skip this lookup field it shows error "Please select object" and do not allow to save till it fill up the field.
Its Urgent
Thanks In Advance
Ridhima