• Subhrajyoti Nath
  • NEWBIE
  • 55 Points
  • Member since 2015
  • Quinnox

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 20
    Questions
  • 11
    Replies
Getting this erro in console after login through community portal

Refused to frame 'https://test-developer-edition.na156.force.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self'".
How to make lightning datatable inline edit field mandatory ?
Or
How to make a field mandatory in lightning data table?
Hi All,

I have created this below Aura enabled method
@AuraEnabled
    public static Map<Account,List<Contact>> test(String ZipVal, String fldVal)
    {
        Map<Account,List<Contact>> mp = new Map<Account,List<Contact>>();
        Account acc = new Account();
        acc = [select id from Account limit 1];
        mp.put(acc,new list<Contact>());
        mp.get(acc).add([select id from Contact limit 1]);
        return mp;
    }

But in Js Controller it is not able to get the value. The response is coming as error. 
Is map of object and list of object like - Map<Account,List<Contact>> not supported in lightning component?
Hi guyz,

I am facing an issue with RecordSetvar as i am using Professional Edition and cannot use apex Classes. I have created a Visualforce page rendering only those records created by me using RecordSetVar which shows only 20 records per page, so i kept pagination which is working fine but my issue is If my record is not there in the first set of 20 records then first page is showing empty then i have to navigate to second page to see my records. I can use only one filter - 'All'. So please suggest me how to bring up the records to the first page or can i delte the pages which are showing empty to me. 

Thanks in advance
How to create an approval process in Salesforce Professional Edition ?
User-added image

Hi guyz,

In account object Master detail field is not available. Could you guyz tell me why is that? Thanks in advance
Hi guyz,

How to integrate salesforce with exchange server using Apex Code?
I was looking all over the internet but did not find any helpfull content regarding this problem. Please advice

Thanks,
Subhra
Hi all,

Worflow email alert is not working. Please help me find out solution for sending workflow email alert.
 Thanks in advance

 
User-added image

Hi everyone,

Please help me setup self service portal. As you can see in the above screenshot self service portal is not present, so please suggest me how to enable it.

Thanks in advance

 
Hi everyone,

Could you guyz help me give idea about - how to do integration of two or more salesforce application

Thanks in advance
How to open a tab in a same window using javascript
Hi guyz,

When i will click the send button on my visulaforce page i want to send an email to the respective recepient in this formatUser-added image

Please help me to accomplish this. Thanks.
 
User-added image


How to retrieve the Actual Approver name(i.e Subhra) in the visual force page for the quote as you can see from the image given above
Please help me write this query thanks in advance
What will the answers to the following questions below-


1> Hiring managers at Universal containers would like a visual mechanism for determining review score outliers. Review scores are captured as a custom field on a custom Review object and can range from 1 to 10. Any review score that is >8 should be highlighted in green. Any review score that is < 4 should be highlighted in red.
How would a developer accomplish this?
a. Use custom summary formulas {@ the time of creating u need to create Summary formula and I have used summary report}
b. Use matrix reports
c. Use conditional highlighting
d. Use charts
2>. A developer need to perform an automated extract of data from Salesforce nightly at 2:00 a.m.
How would the developer accomplish this?
a. Use the Export Scheduler of the Data Loader’s GUI
b. Use the Command-line interface of the Data Loader
c. Use the Data Export service to perform a nightly extract
d. Use the Schedule Manager of the import wizard
why we should use the validations for restricting the users based on thier profile name not based on their profile id ?
HI everyone,

How  to send email to multiple recepients from vf page.
User-added image 

Hi guyz,

The picture of my vf page is given above, first one is the original vf fields and second one is the screenshot of the page generated using html2Canvas. I donot want the screenshot to appear in the vf page though the screenshot of the  vf page should be taken in background.
Please help me with this.


 
How to underline or highlight the selected radio button in vf page.
Hello everyone,

How to take screenshot of a visual force page and email it as an attachment to the recepient??
How to make lightning datatable inline edit field mandatory ?
Or
How to make a field mandatory in lightning data table?
Hi all,

Worflow email alert is not working. Please help me find out solution for sending workflow email alert.
 Thanks in advance

 
How to open a tab in a same window using javascript
User-added image


How to retrieve the Actual Approver name(i.e Subhra) in the visual force page for the quote as you can see from the image given above
Please help me write this query thanks in advance
why we should use the validations for restricting the users based on thier profile name not based on their profile id ?
Hi Guys

I am facing one Vf Page error.i have created two pageblock table but when i am save the data its only saved one pageblocktable field.and throwing error ,how to achieve this

error
-----------

Visualforce ErrorHelp for this Page
System.DmlException: Insert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [Related Bank Acc]: [Related Bank Acc]
Error is in expression '{!save}' in component <apex:commandButton> in page add: Class.ManageListController1.save: line 62, column 1
Class.ManageListController1.save: line 62, column 1


 
public class ManageListController1 
{

    
    public ManageListController1(ApexPages.StandardController controller) {

    }

 public List<AccountWrapper> wrappers {get; set;}
  public List<AccountWrapper> wrappers1 {get; set;}
 public static Integer toDelIdent {get; set;}
 public static Integer addCount {get; set;}
 private Integer nextIdent=0;
  
 public ManageListController1()
 {
  wrappers=new List<AccountWrapper>();
  Wrappers1=new List<AccountWrapper>();
  for (Integer idx=0; idx<1; idx++)
  {
   wrappers.add(new AccountWrapper(nextIdent++));
    wrappers1.add(new AccountWrapper(nextIdent++));
   
  }
 }
  
 public void delWrapper()
 {
  Integer toDelPos=-1;
  for (Integer idx=0; idx<wrappers.size(); idx++)
  {
   if (wrappers[idx].ident==toDelIdent)
   {
    toDelPos=idx;
   }
  }
   
  if (-1!=toDelPos)
  {
   wrappers.remove(toDelPos);
  }
 }
  
 public void addRows()
 {
  for (Integer idx=0; idx<addCount; idx++)
  {
   wrappers.add(new AccountWrapper(nextIdent++));
  }
 }
  
 public PageReference save()
 {
  List<BankBook__c> accs=new List<BankBook__c>();
 
  for (AccountWrapper wrap : wrappers )
  {
   accs.add(wrap.acc);
   
  }

 insert accs;
  
 
  List<BankBook__c> accs1=new List<BankBook__c>();
 
  for (AccountWrapper wrap1 : wrappers1 )
  {
   accs1.add(wrap1.acc);
   
  }

 insert accs1;
  
   
  return new PageReference('/' + Schema.getGlobalDescribe().get('BankBook__c').getDescribe().getKeyPrefix() + '/o');
 }
 
 
 
 
 
 
 
 
 
 
 
 
 
 public pageReference parentPage () {

          return new pageReference('/apex/Receivables');
} 
  
  
  
 public class AccountWrapper
 {
  public BankBook__c acc {get; private set;}
  public Integer ident {get; private set;}
   
  public AccountWrapper(Integer inIdent)
  {
   ident=inIdent;
   acc=new BankBook__c();
  }
 }
}
 
<apex:page tabstyle="Account" showHeader="false" sidebar="false" Controller="ManageListController1">

<apex:define name="body">
            
            <div style="width:900px;margin: 10px auto 10px auto;background-color:Gray;">
             <apex:image id="theImage" value="{!$Resource.Emami}" width="100" height="100"/>
             <apex:outputLink style="font-weight: bold;float:right;" value="{!URLFOR($Page.LoginPage)}"><b>Back To Home</b></apex:outputLink> 
 <apex:form >
 

   <apex:pageBlock title="Bank Book Entry:">
      
       <div style="width:200px;align=Right;">
      <apex:pageBlockTable value="{!wrappers1}" var="wrapper1" id="wtable1">
      <apex:column headerValue="Date" style="background:gray;"  >
    <apex:inputField value="{!wrapper1.acc.Txn_Date__c}"/>
</apex:column>
 <apex:column headerValue="Payment Type" style="background:gray;">
    <apex:inputField value="{!wrapper1.acc.Credit_Debit__c}"/>
</apex:column>
 <apex:column headerValue="Company Account" style="background:gray;">
    <apex:inputField value="{!wrapper1.acc.Related_Bank_Acc__c}"/>
</apex:column>

         
      </apex:pageBlockTable>
      
          </div>
   <div style="width:500px;margin: 10px auto 10px auto;">
   
      <apex:pageBlockTable value="{!wrappers}" var="wrapper" id="wtable">
      
         
       
         <apex:column headerValue="Ident" style="background:gray;">
            <apex:outputText value="{!wrapper.ident}"/>
         </apex:column>
         <apex:column headerValue="Master Code" style="background:gray;">
            <apex:inputField value="{!wrapper.acc.Entries_Code__c}"/>
         </apex:column>
         <apex:column headerValue="Amount" style="background:gray;">
            <apex:inputField value="{!wrapper.acc.Amount__c}"/>
         </apex:column>
        
         <apex:column headerValue="Narration" style="background:gray;">
            <apex:inputField value="{!wrapper.acc.Narration__c}"/>
         </apex:column>
          
       <apex:column headerValue="">
            <apex:commandButton value="Enter" action="{!addRows}" rerender="wtable" style="background:pink" >
         <apex:param name="addCount" value="1" assignTo="{!addCount}"/> 
      </apex:commandButton>
         </apex:column>
       
         <apex:column headerValue="Action">
            <apex:commandButton value="Delete" action="{!delWrapper}" rerender="wtable" style="background:Red">
               <apex:param name="toDelIdent" value="{!wrapper.ident}" assignTo="{!toDelIdent}"/> 
            </apex:commandButton>
         </apex:column>
         
      </apex:pageBlockTable>
     </div>
        
        
      <apex:commandButton value="Add 5 Rows" action="{!addRows}" rerender="wtable" style="width:100px;margin: 10px auto 10px auto;">
         <apex:param name="addCount" value="5" assignTo="{!addCount}"/> 
      </apex:commandButton>
      
      <apex:commandButton value="Save" action="{!save}" style="width:100px;margin: 10px auto 10px auto;"/>
   
    
     </apex:pageBlock>
 </apex:form>
  </div>
        </apex:define>
</apex:page>


 
User-added image 

Hi guyz,

The picture of my vf page is given above, first one is the original vf fields and second one is the screenshot of the page generated using html2Canvas. I donot want the screenshot to appear in the vf page though the screenshot of the  vf page should be taken in background.
Please help me with this.


 
How to underline or highlight the selected radio button in vf page.