• suri03081988
  • NEWBIE
  • 10 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 15
    Questions
  • 9
    Replies
Hi All,

We are using a "<apex:inputFile" for file upload. We are getting maximum 10MB exception on VF page if user is trying to upload a file which is having more than 10MB. 

Could anyone suggest me a alternative way to increase the maximum file upload size limt from 10MB to 2GB

Thanks inadvance
Surendra.


<apex:inputFile, This file exceeds the maximum size limit of 10mb
we have Email-to-Case and auto response rule configured and we are writing a logic in before insert trigger to update a case field "SuppliedEmail" with required email
 
Requirement:
Customer ABC (abc@soft.com) is sending email to a Middle email (def@soft.com). the email is forwarding from def@soft.com to common support email (support_APM@soft.com).  outlook forwarding settings are forwarding the email from "support_APM@soft.com" to Salesforce email-to-case generate long email. Now the auto response rule is sending the acknowledge email to "def@soft.com". But expectation is to send acknowledge email notification to abc@soft.com
 
To achieve the requirements we are using before insert / before update /after Inser logic to override the def@soft.com to abc@soft.com

But no use of above trigger logic. Still the auto response notification is sending to def@soft.com instead of abc@soft.com

Could some one please help me on this..

Thanks,
Surendra
Hi Team,

When we are sending the email from chatter feed, We are getting the below issue in production but not in UAT. As per me all email settings exactly same in two environment



Error:
>>>ClientEmail@gmail.com (Undelivered): 550-5.7.26 This mail is unauthenticated, which poses a security risk to the
550-5.7.26 sender and Gmail users, and has been blocked. The sender must
550-5.7.26 authenticate with at least one of SPF or DKIM. For this message,

Please give your suggetions.
Thanks in advance
Surendra.User-added image
Hi All,

My requirement is to select a status field from the dropdown option in <Lightening:datatable 

sample code is

Component Sample code:
<lightning:datatable
                                     columns="{!v.fu_columns }"
                                     class= "table-test"
                                     data="{!v.data }"
                                     keyField="Id"
                                     hideCheckboxColumn="true"
                                     draftValues="{! v.draftValues }"
                                     onsave="{! c.handleSaveEdition }"
                                     onrowaction="{!c.selectDropDown}"
                                     />
JS controller:
init : function(component, event, helper){
        component.set('v.fu_columns', [
        {label:'User Description', fieldName:'Description__c',      type:'Text',editable: true},
        {type: 'button', typeAttributes: {
                label: 'Select',
                name: 'Select',
                title: 'Select',
                disabled: false,               
            }}        
    ]);
}

selectDropDown : function(component, event, helper){        
        var recId = event.getParam('row').Id;
        var actionName = event.getParam('action').name;
        if ( actionName == 'Select' ) {
            alert('==Select');
            >> Please guide some sample code to open a popup and select one value for status and that will updated in backend
        }     
    },


THanks in advance


 
Hi All,

We are using AURA component with JS controller for the requirements.
I wante to to get the previous page URL in JS controller. After fetch the URL i have to take some search text on previous page URL.

Please give me some sample code to fetch the previous page URL.

Thanks in Advance
Hi All,

I am trying to make the record check boxes as checked by default on <lightning:datatable.

please correct me if i am doing wrong in below code

AURA Lightening Component:
<aura:component implements="force:appHostable" access="global" controller="sampleDownload_Class" >
<!-- Handler - Init Method -->
    <aura:handler name="init" value="{!this}" action="{!c.Init}"/>
<aura:attribute name="QuoteIDFromVfPage" type="string" access="global"/>    
    <aura:attribute name="columns" type="List"/>
    <aura:attribute name="data" type="List"/>
    <aura:attribute name="selectedAttachments" type="List"  default="[]"/>
    
<aura:attribute name="preSelectedRows" type="List"/>
<lightning:card title="Generated Documents" >
        <div >
            <lightning:datatable
                                 columns="{! v.columns }"
                                 data="{! v.data}"
                                 keyField="id"                                
                                 onrowselection="{!c.checkboxAttachment}"
                                 selectedRows="{!v.preSelectedRows}"
                                 /> 
        </div>                 
    </lightning:card>  
</aura:component>

Controller JS:

({
    Init : function(component, event, helper) { 
        
        component.set('v.columns', [
            {label: 'Attachment Name', fieldName: 'Name', type: 'text'},
            {label: 'Proposal Name', fieldName: 'parent.name', type: 'text'},
                        
        ]);        
                
        var action = component.get('c.initMethod');
        action.setParams({
            qID : component.get("v.QuoteIDFromVfPage")                        
        });
        action.setCallback(this,function(response){            
            var state = response.getState();
            //alert('successe state is '+state);
            if(state == 'SUCCESS'){
               component.set('v.data', response.getReturnValue());                 
               var selected_rows = helper.getSomeRows(response.getReturnValue(), 3);
               component.set("v.preSelectedRows",selected_rows_mod);

                
            }
        });
        $A.enqueueAction(action);          
     },
})


Apex: Class :::

Public with sharing class sampleDownload_Class {

@AuraEnabled
Public Static List<Attachment> initMethod(String qID){
String currentRecordId = qID;
List<Attachment> attachedFiles = new List<Attachment>();

attachedFiles = [select Id, name, parent.name, parentId from Attachment where parentId =: currentRecordId order By LastModifiedDate DESC limit 50000];
if(attachedFiles.size() > 0)
return attachedFiles;
else
return null;
}
}    

Please help me on this.

Thanks inadvance 
 
Hi All,

We are invoking the AURA component in VF page. We are passing record id from VF page to AURA component. 
The issue is, this record id is not avaiable in JS controller init method. It showing as undefined 

Code sample:

VF Page Code Sample:
<apex:page sidebar="false" showHeader="false" standardStylesheets="false">       
    <!-- Lightening Component code version starts -->
        <apex:includeLightning />
        <div  id="LightningCompContainer" />   
    <script>
        $Lightning.use("c:SampleAURA_App", function() {
            $Lightning.createComponent("c:SampleAURA_Component", {
            },
            "LightningCompContainer",
            function(component) {
               component.set("v.QuoteIDFromVfPage",'{!$CurrentPage.parameters.id}');
            });
        }); 
    </script>   
</apex:page>

AURA Lightening Component Code Sample:

<aura:component implements="force:appHostable" access="global" >    
    
    <!-- Handler - Init Method -->
    <aura:handler name="init" value="{!this}" action="{!c.initLoad}"/>
</aura:component>

JS Controller Code Sample:
({
    initLoad : function(component, event, helper) { 
        //Created var that store the recordIds of selected rows.
        var recordid = component.get("v.QuoteIDFromVfPage");
        alert('====>'+recordid);
     },
})

Final result is: Alert popup is showing "undefined"

One observation is:
This ID is not avoilable only in init method. The record ID is available in other JS controller methods which are triggerd from button.


Please help me on this issue

Thanks in advance,
Surendra
 

Hi All,

My end users are using clasic and lightening so we are creating AURA component and embed in to a VF page.

in this our one of the requirement is user have to navigate the from VF (aura component) to some record detial page

The above requirement is working when i used aura component UI from lightening actions but its not working when i embed the AURA in side VF page

Used code is:
Component code is

<lightning:navigation aura:id="navService"/>
           <lightning:button variant="brand" title="Brand action" label="Navigate to Quote" onclick="{!c.navigate}"/>             

JS Controller code is

({
navigate : function(component, event, helper) {
        var navService = component.find("navService");
        console.log('==1');
        var pageReference = {
            type: 'standard__recordPage',
            attributes: {
                recordId: 'aFd7900000001SI',
                objectApiName: 'Apttus_Proposal__Proposal__c',
                actionName: 'view'
            }
        };
        console.log('==2 pageReference '+pageReference);
// debug Output is ==2 pageReference [object Object]
        navService.navigate(pageReference, true);
        console.log('==3 navService'+navService);
// Debug output is: ==3 navServiceSecureComponentRef: //markup://lightning:navigation {24:0} {navService}{ key: //{"namespace":"c"} }
    },        
})

It seems this is a some limitation, so please advise me with some other work-around 
thanks in advance

Hi,

i am trying to compail all triggers in my sandbox by using below code, but it is not throughing some erros

String[] listOfTrigger = new List<String>();
List<ApexTrigger> aTriggersList = [SELECT Id ,Name, NamespacePrefix from ApexTrigger];
System.debug('===> Count is: '+aTriggersList.size());
for(ApexTrigger at : aTriggersList){
    listOfTrigger.add(at.name);
    System.debug('===> Trigger name is: '+at.name);
}
CompileTriggerResult[] res = compileTriggers(listOfTrigger);  
System.debug('===> End <==='+res);


Please suggest me with proper code.
Thanks inadvance.
Hi All,

I am trying to display some URL on PDF (Rendered as PDF), but my URL displaying as a link type text, means if i do mouse over on that URL content its showing the hand symbol and user can able to clickable that text, but i want to display this a just text not a clickable text. My sample code is in below

<apex:page showHeader="false" sidebar="false" standardStylesheets="false" renderAs="pdf" >  
  <apex:form >
      <apex:outputLabel value="URL :  "/> 
      <apex:outputText value="www.salesforce.com" />
  </apex:form>
</apex:page>

Please advise me how i can solve this

Thanks

Hi All,

Clarification: I have two orgs, DEV1 and DEV2. In DEV1 org i created one custom object called Employee__c, and also override the "New" (standard button) button with VF page called "empform" for this employee__c object.
Next i added this VF page and object to managed package. 
Next i installed this package in DEV2 org, custom object and VF page has came in to DEV2 but the override customization is not reflected in DEV2 org it means the when i click new button it shows standard page.
Requirement: I want to override my VF page automatically(with out override the new button) to new button.
Is there any setups i need to do in DEV1 or please let me know how to acheive this requirement.

Thank in Advance

Hi,
        I will give the good clarity for my requirement below 
 
I have 2 developer editions are DE1 and DE2 .

DE1 :   I created one package it contains one custome object name as "Employee" and vf page name as "Employee new page". Add these two to package. this is a managed package.
Note: i have created one setting that is : In Employee standered button name as "new" is overided with vf page name as "Emplyee new page".

DE2 : I installed the above package in DE2 org, custom object,vf page and all dependencies have come properly but that above setting(From Note) is not reflected defaulty in DE2org . i mean when ever click the standered button "New" i will not redirect to VF page as "Emplyee new page" .

I need this settings defaultly in DE2 org when ever package installed.

How can i achive this setting defaultly. Please help me

 Thanks in advance

Hi.

     I want to know how to create CNAME for url masking . Please see the below link, that will give a clarity to why  i need to create CNAME.

 

http://boards.developerforce.com/t5/General-Development/Force-com-site-URL-masking/m-p/202328/highlight/true#M45837

                           Thanks in advance....

Hi Friends,
       I have one customer portal, before login to cp my url is https i want to change url to http after login to cp 

before login to cp my url like : https://mycompany-developer-edition.ap1.force.com/conseltent
after login to cp i want to change url like : http://mycompany-developer-edition.ap1.force.com/conseltent/vfpage

Thanks in advance 

Hi Friends
Please help me i need to mask the url to customer portel. i will give the clarity below

My Domain name is : Mycompany-developer-edition.ap1.force.com
after login to cp the url is like https://Mycompany-developer-edition.ap1.force.com/customerportal/apex/vfpage
I want tomask  "-developer-edition.ap1.force" this text from the above url

Finnaly i need to display the URL after login to CP like the below.
https://Mycompany.com/customerportal/apex/vfpage
or
http://Mycompany.com/customerportal/apex/vfpage

Please send me any solution for this url masking. thanks in advance

Hi All,

We are using a "<apex:inputFile" for file upload. We are getting maximum 10MB exception on VF page if user is trying to upload a file which is having more than 10MB. 

Could anyone suggest me a alternative way to increase the maximum file upload size limt from 10MB to 2GB

Thanks inadvance
Surendra.


<apex:inputFile, This file exceeds the maximum size limit of 10mb
we have Email-to-Case and auto response rule configured and we are writing a logic in before insert trigger to update a case field "SuppliedEmail" with required email
 
Requirement:
Customer ABC (abc@soft.com) is sending email to a Middle email (def@soft.com). the email is forwarding from def@soft.com to common support email (support_APM@soft.com).  outlook forwarding settings are forwarding the email from "support_APM@soft.com" to Salesforce email-to-case generate long email. Now the auto response rule is sending the acknowledge email to "def@soft.com". But expectation is to send acknowledge email notification to abc@soft.com
 
To achieve the requirements we are using before insert / before update /after Inser logic to override the def@soft.com to abc@soft.com

But no use of above trigger logic. Still the auto response notification is sending to def@soft.com instead of abc@soft.com

Could some one please help me on this..

Thanks,
Surendra
Hi Team,

When we are sending the email from chatter feed, We are getting the below issue in production but not in UAT. As per me all email settings exactly same in two environment



Error:
>>>ClientEmail@gmail.com (Undelivered): 550-5.7.26 This mail is unauthenticated, which poses a security risk to the
550-5.7.26 sender and Gmail users, and has been blocked. The sender must
550-5.7.26 authenticate with at least one of SPF or DKIM. For this message,

Please give your suggetions.
Thanks in advance
Surendra.User-added image
Hi All,

I am trying to make the record check boxes as checked by default on <lightning:datatable.

please correct me if i am doing wrong in below code

AURA Lightening Component:
<aura:component implements="force:appHostable" access="global" controller="sampleDownload_Class" >
<!-- Handler - Init Method -->
    <aura:handler name="init" value="{!this}" action="{!c.Init}"/>
<aura:attribute name="QuoteIDFromVfPage" type="string" access="global"/>    
    <aura:attribute name="columns" type="List"/>
    <aura:attribute name="data" type="List"/>
    <aura:attribute name="selectedAttachments" type="List"  default="[]"/>
    
<aura:attribute name="preSelectedRows" type="List"/>
<lightning:card title="Generated Documents" >
        <div >
            <lightning:datatable
                                 columns="{! v.columns }"
                                 data="{! v.data}"
                                 keyField="id"                                
                                 onrowselection="{!c.checkboxAttachment}"
                                 selectedRows="{!v.preSelectedRows}"
                                 /> 
        </div>                 
    </lightning:card>  
</aura:component>

Controller JS:

({
    Init : function(component, event, helper) { 
        
        component.set('v.columns', [
            {label: 'Attachment Name', fieldName: 'Name', type: 'text'},
            {label: 'Proposal Name', fieldName: 'parent.name', type: 'text'},
                        
        ]);        
                
        var action = component.get('c.initMethod');
        action.setParams({
            qID : component.get("v.QuoteIDFromVfPage")                        
        });
        action.setCallback(this,function(response){            
            var state = response.getState();
            //alert('successe state is '+state);
            if(state == 'SUCCESS'){
               component.set('v.data', response.getReturnValue());                 
               var selected_rows = helper.getSomeRows(response.getReturnValue(), 3);
               component.set("v.preSelectedRows",selected_rows_mod);

                
            }
        });
        $A.enqueueAction(action);          
     },
})


Apex: Class :::

Public with sharing class sampleDownload_Class {

@AuraEnabled
Public Static List<Attachment> initMethod(String qID){
String currentRecordId = qID;
List<Attachment> attachedFiles = new List<Attachment>();

attachedFiles = [select Id, name, parent.name, parentId from Attachment where parentId =: currentRecordId order By LastModifiedDate DESC limit 50000];
if(attachedFiles.size() > 0)
return attachedFiles;
else
return null;
}
}    

Please help me on this.

Thanks inadvance 
 
Hi All,

We are invoking the AURA component in VF page. We are passing record id from VF page to AURA component. 
The issue is, this record id is not avaiable in JS controller init method. It showing as undefined 

Code sample:

VF Page Code Sample:
<apex:page sidebar="false" showHeader="false" standardStylesheets="false">       
    <!-- Lightening Component code version starts -->
        <apex:includeLightning />
        <div  id="LightningCompContainer" />   
    <script>
        $Lightning.use("c:SampleAURA_App", function() {
            $Lightning.createComponent("c:SampleAURA_Component", {
            },
            "LightningCompContainer",
            function(component) {
               component.set("v.QuoteIDFromVfPage",'{!$CurrentPage.parameters.id}');
            });
        }); 
    </script>   
</apex:page>

AURA Lightening Component Code Sample:

<aura:component implements="force:appHostable" access="global" >    
    
    <!-- Handler - Init Method -->
    <aura:handler name="init" value="{!this}" action="{!c.initLoad}"/>
</aura:component>

JS Controller Code Sample:
({
    initLoad : function(component, event, helper) { 
        //Created var that store the recordIds of selected rows.
        var recordid = component.get("v.QuoteIDFromVfPage");
        alert('====>'+recordid);
     },
})

Final result is: Alert popup is showing "undefined"

One observation is:
This ID is not avoilable only in init method. The record ID is available in other JS controller methods which are triggerd from button.


Please help me on this issue

Thanks in advance,
Surendra
 

Hi All,

My end users are using clasic and lightening so we are creating AURA component and embed in to a VF page.

in this our one of the requirement is user have to navigate the from VF (aura component) to some record detial page

The above requirement is working when i used aura component UI from lightening actions but its not working when i embed the AURA in side VF page

Used code is:
Component code is

<lightning:navigation aura:id="navService"/>
           <lightning:button variant="brand" title="Brand action" label="Navigate to Quote" onclick="{!c.navigate}"/>             

JS Controller code is

({
navigate : function(component, event, helper) {
        var navService = component.find("navService");
        console.log('==1');
        var pageReference = {
            type: 'standard__recordPage',
            attributes: {
                recordId: 'aFd7900000001SI',
                objectApiName: 'Apttus_Proposal__Proposal__c',
                actionName: 'view'
            }
        };
        console.log('==2 pageReference '+pageReference);
// debug Output is ==2 pageReference [object Object]
        navService.navigate(pageReference, true);
        console.log('==3 navService'+navService);
// Debug output is: ==3 navServiceSecureComponentRef: //markup://lightning:navigation {24:0} {navService}{ key: //{"namespace":"c"} }
    },        
})

It seems this is a some limitation, so please advise me with some other work-around 
thanks in advance

We need a freelance SF developer that can develop and implement our lead to quote process. Travel Industry experience is a plus. We have existing data schema and workflow mapping. etc. Developer must be proficient in Force.com pages, web to lead Apex, Visual Force, IDE, migration tools, Web Services, third party API Integration. This is the first phase of our project. We are looking to develop an ongoing relationship with a freelance developer.
  • October 20, 2010
  • Like
  • 0