• Rakshana Shree
  • NEWBIE
  • 95 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 37
    Questions
  • 21
    Replies
Hey everyone,

I am configuring custom Nearby opportunities map in the Salesforce maps where I cannot find custom lookup's address field. For example, We have AccountId in the opportunity as a standard field. I was able to select this address field in the location but not able to find custom_Account__c.Address field. 

Can anyone please advise what should be done for this? Thanks in advance!!
User-added image​​​​​​​
​​​​​​​
Thanks,
Rakshana
 
Hi All,

I have developed a visualforce page which displays salesforce custom object records in the google map (which embedded by Javascript) as markers. I wrote the infowindow code for popping the infowindow with few field values and wrote a HTML button in the infowindow to redirect to the corresponding record. 

But the issue is : When I login Salesforce app in my mobile and click on the button is not redirecting to the record properly in the app as we have HTML button with href="/"+recordID. I hope it must be : URLFOR with the apex:commandbutton. It's not possible in javascript. Please help me with a workaround to solve this problem.
Screenshot - Link (https://www.screencast.com/t/cYFyblHVcEE)
Thanks in advance!


 
Hi All,

We have implemented a community portal which runs public. In that community branding, we have added a developed Visualforce page which fetches the current URL by using ApexPages.Currentpage().getParameters().get('referer') and we have few links in the visualforce page to redirect a page which already been created as a community page. We are getting the URL properly for some time. But some moment, it returns the random related URL when we play around with the site. 
Please help us to get the exact URL for all time.
Hi All,
I am deploying an apex trigger on contact object which has covered both after & before trigger. By the way, I have written the test class for that (It has so many If conditions) so test class code is very lengthy. I have done with that 87% code coverage. My production org overall percentage is 84%. But now I'm deploying my trigger along with the test class, the error is throwing out as Code Coverage Error and I'm not seeing any further errors in the deployment status. Please help me out to resolve it.

Thanks in advance,
Rakshana 
Hi All

I am getting an error called "Apex heap size too large in VF page" while uploading a file via <input type="file"> component in visualforce page. I suspect it's an error from developer's side. Whenever I am uploading a file than 4MB, the error is coming.
Please help on this to get off the error. My file upload is working fine if the file size is less than 4MB
Here is my code:

 
<input type="file" id="fileupload1" onchange="submitImages(this.id);"   />

 <apex:actionFunction name="submitFilename" rerender="thisform" action="{!AddAttachments}"
            >
            <apex:param name="fileBody" value="txt"></apex:param>
            <apex:param name="filename" value="na"></apex:param>
           
            <apex:param name="thisCompID" value=""></apex:param>
        </apex:actionFunction>
 function submitImages(thisCompID) {
            var file = document.getElementById(thisCompID).files[0];

            console.log(file);

            if (file != undefined) {
                var attachmentName = file.name;
                var fileReader = new FileReader();
                 
                    
                   
                             
                          
          
                     
                fileReader.onloadend = function(e) {
                    var attachment = window.btoa(this.result); //Base 64 encode the file before sending it
                    positionIndex = 0;
                    fileSize = attachment.length;
                    console.log(attachment);
               
                    submitFilename(attachment, attachmentName,thisCompID);
                     

                }

                fileReader.onerror = function(e) {
                    alert(
                        "There was an error reading the file.  Please try again."
                    );
                }
                fileReader.onabort = function(e) {
                    alert(
                        "There was an error reading the file.  Please try again."
                    );
                }

                fileReader.readAsBinaryString(file); //Read the body of the file

            } else {
                alert("You must choose a file before trying to upload it");
            }
        }

 
Hi All,

I have a zip folder which has more than 1000 CSS files. I had uploaded the zip folder into the static resource. But If I would like to call all *.css file from the uploaded static resource, how?
instead of doing  like below manually
<apex:stylesheet value="{!URLFOR($Resource.ZipFolder, 'individualCSS.css')}" />
Please help with this task, Thanks in advance
Hi All,
Good day to you' all!

I would like to know about the 311forceAPI integration concept for making integration between Salesforce and DC 311 system. I am expecting to do the example and the documentation of the same. Please, anyone, help on this to get knowledge.


Thanks in advance.
Hi All, 
 Question on the news feed in salesforce lightning ex that Can we customize the news as we want?

For example: If I want to see only news from a particular news feed site, can I add this site to settings and filter only those news to show on the news feed page

Hi All,
I would like to develop a mobile app in Salesforce. Can you anyone help me to do have the platform for developing the mobile app for iOS as well as Android. 
Requirements: I have a force.com site page that is gonna be on the mobile app as a tab. 

Hope anyone can help on this and Thanks in advance.

Hi All,

Package: When adding components to my package, some related components are automatically adding. For example, if I add a Visualforce page to a package that references a custom controller, the fields which are all referenced in the Apex class is also added.

My requirement: I don't want to add the related components automatically as I have already been added the other components (Fields, Objects) to the package. 
Please, anyone, assist me to find a workaround to this or else let me know how to remove the auto-added components if possible.

Thanks,
Rakshana
Hi All,

I have had an issue on the global search box as the searched contacts are grayed out in the lightning home page. But it didn't happen when I used the same global search box on the contacts tab. Guess the home page has an issue to show up the contact search result. 
I hope anyone would help on this to identify the issue and to resolve too.

Thanks,
Rakshana
 
Hi All,
Is there any way to compress a blob file before inserting into contentversion and contentdocumentlink. Because my file storage is very low let me know the price details of the file storage space in Salesforce.

Thanks,
Rakshana
Hi All,

I need one workaround for one of our clients, that is explained briefly below.

User1 belongs to a customprofile1 and we have two custom apps (CustApp1 ,CustApp2).
No of record types for the Account object is 5.

Requirement :
The User1 logged in the org and will see the CustApp1 which has 2 record types for creating an account. If the User1 changed the App to custApp2, he/she need to see the other 3 record types for creating an account.

It is nothing but User1 should be able to see the record types based on the App changes. Please assist me to get a workaround for this.

Hope anyone can answer this.

Thanks,
Rakshana




 
Hi All
Trying to install managed beta package created in one dev account, into another production account
This app can't be installed.
There are problems that prevent this package from being installed.
User-added image
Hi All,

I want to know the equivalent tags for each component in Visualforce page for the Lightning component. I am stuck with something else to understand about the dynamic binding on the Lightning component. Let's see an example:

Visualforce page code:
<apex:page controller="CaseCTRL">
<apex:form>
<apex:inputfield value="{!newcase.Subject}"/>  
<apex:inputfield value="{!newcase.Type}"/>
</apex:form>
</pex:page>

Controller Apex class:
public class CaseCTRL{

public case newcase{get;set;} //Declared a Sobject variable for accessing on VF page
public CaseCTRL(){
newcase = new case(); //Case Sobject varible initialization
}



I hope you could understand that code. I need same equivalent code for the lightning component too. Please, anyone, help me to understand.


Thanks,
Rakshana
Hi All,
This may be a new one to know. I have a .kml file which has data in the .kml geographical format. My challenge is here to push the data to Salesforce custom object. Let me know if any tools are available to do this.
Hi All,
My scenario is here. Please help me to achieve this. 

I have HTML file uploader on the Visualforce page, on click on the page I will be able to select multiple files. But My main issue was I couldn't able to insert the attachment due to issue in body blob converting. Attachment record is sucessfully 



<script type="text/javascript">
    var __sfdcSessionId = '{!GETSESSIONID()}';
   
</script>
<script src="/soap/ajax/29.0/connection.js" type="text/javascript"></script>
<script src="/soap/ajax/20.0/connection.js" type="text/javascript"></script>

 <input type="file" multiple="multiple" id="gallery-photo-add" accept="image/x-png,image/gif,image/jpeg" style="visibility:hidden;" />






<script>
$(function() {
    // Multiple images preview in browser
    var imagesPreview = function(input, placeToInsertImagePreview) {

        if (input.files) {
            var filesAmount = input.files.length;

            for (i = 0; i < filesAmount; i++) {
                var reader = new FileReader();
                reader.file =input.files[i];
                reader.onload = function(event) {
                    $($.parseHTML('<img>')).attr('src', event.target.result).appendTo(placeToInsertImagePreview);
               
               var att = new sforce.SObject("Attachment");
           att.Name = this.file.name;
            att.ContentType = this.file.type;
            att.ParentId = '5006A000006ZCAXQA4'; // Just hard-coded for testing
            
            




       

           att.Body = (new sforce.Base64Binary(event.target.result)).toString();  // Here is the issue I guess

//att.body=input.files[i];
          // var result = sforce.connection.create([att]);
            
           if (result[0].getBoolean("success")) {
              alert("New Account is created with id " + result[0].id);
          }
            else {
              alert("failed to create new Account " + result[0]);
            }
               
               
               
                }

                reader.readAsDataURL(input.files[i]);
            }
        }

    };

    $('#gallery-photo-add').on('change', function() {
        imagesPreview(this, 'div.gallery');
      
  });
});
</script>
<apex:form id="form1"> .
some inputfields are here...
.. </apex:form>

 <apex:form id="form2">
<apex:commandButton value="Save & Continue" action="{!saveApplication}" id="saveButton" />
 </apex:form>
<script> jQuery('[id$=saveButton]').click(function(){
 jQuery('[id$=form1]').submit(); });
 </script>



This is not working for me. Please make me resolved 

Hi Everyone,
I need a help to resolve on handling two forms in VF page. The scenario is I have a couple of input field in one form1 and have set of script code after the form. So I took a new form to display Save button. But the Save button is not saving the record with the entered values on the input field.

My issue: if I use single form, the UI is not satisfied and If I am having the script code inside the form, the script code is not working. So Please make me understand and get resolved about the functionality of the save button works fine.
I hope someone will help me on this immediately



 

Hi Everyone,

This is interesting to know. I want to display my current location on the Google map by using Visualforce page. That can be fetched the longitude and latitude values too.

Thanks,
Rakshana 
Hi All,

I need one workaround for one of our clients, that is explained briefly below.

User1 belongs to a customprofile1 and we have two custom apps (CustApp1 ,CustApp2).
No of record types for the Account object is 5.

Requirement :
The User1 logged in the org and will see the CustApp1 which has 2 record types for creating an account. If the User1 changed the App to custApp2, he/she need to see the other 3 record types for creating an account.

It is nothing but User1 should be able to see the record types based on the App changes. Please assist me to get a workaround for this.

Hope anyone can answer this.

Thanks,
Rakshana




 
Hi All
Trying to install managed beta package created in one dev account, into another production account
This app can't be installed.
There are problems that prevent this package from being installed.
User-added image
Hi All,

I want to know the equivalent tags for each component in Visualforce page for the Lightning component. I am stuck with something else to understand about the dynamic binding on the Lightning component. Let's see an example:

Visualforce page code:
<apex:page controller="CaseCTRL">
<apex:form>
<apex:inputfield value="{!newcase.Subject}"/>  
<apex:inputfield value="{!newcase.Type}"/>
</apex:form>
</pex:page>

Controller Apex class:
public class CaseCTRL{

public case newcase{get;set;} //Declared a Sobject variable for accessing on VF page
public CaseCTRL(){
newcase = new case(); //Case Sobject varible initialization
}



I hope you could understand that code. I need same equivalent code for the lightning component too. Please, anyone, help me to understand.


Thanks,
Rakshana
<apex:form id="form1"> .
some inputfields are here...
.. </apex:form>

 <apex:form id="form2">
<apex:commandButton value="Save & Continue" action="{!saveApplication}" id="saveButton" />
 </apex:form>
<script> jQuery('[id$=saveButton]').click(function(){
 jQuery('[id$=form1]').submit(); });
 </script>



This is not working for me. Please make me resolved 

Hi Everyone,
I need a help to resolve on handling two forms in VF page. The scenario is I have a couple of input field in one form1 and have set of script code after the form. So I took a new form to display Save button. But the Save button is not saving the record with the entered values on the input field.

My issue: if I use single form, the UI is not satisfied and If I am having the script code inside the form, the script code is not working. So Please make me understand and get resolved about the functionality of the save button works fine.
I hope someone will help me on this immediately



 

Hi Everyone,

This is interesting to know. I want to display my current location on the Google map by using Visualforce page. That can be fetched the longitude and latitude values too.

Thanks,
Rakshana 
Hi All,

I would like to know the innovative or new development idea on visualforce page/Apex code. Can you assist me to find a way to get the same?

Thanks,
Rakshana
Hi All,

I have a scenario as showing all fields from an object in a visualforce page dynamically. That is I want to pull all the fields and put it in <apex:inputfield> component for creating a record from that page.
But If I am creating a field in that particular object which should be added automatically without changing the code.

Thanks,
Rakshana
Hi,

I got an issue with Dashboard component on partner community portal like size issue. Even I specified a maximum height size on the Dashboard component, it is showing up with scrollbar and dashboard bars are hided inside the component. I will need to keep scrolling to see the Dashboards. I have added screenshot below. I am hopeful in this, someone will reach out me to clarify

Dashboard with scrollbars
Thanks,
Rakshana
Hi Everyone,

I need a help from anyone to clarify my doubts on the events for partner user. I have coded a visualforce page for displaying events on calender for a particular partner user. But it is displaying well as expected in internal sfdc org. I couldn't see the events for the partner user on the community portal.
I hope someone would help me to achieve this ASAP.

Thanks,
Rakshana
The relation between Account and Opportunity is "Lookup", but still you are able to create roll up summary field on Account. Why?
Hi am facing below Error.
Logic needs to be implemented :If type is Contract Flow and Document Attached is True then HandOffAttached =True, otherwise False
I have one Designation  custom Object
created 3 fileds Type(picklist), document attached(checkbox) ,  Handoffattached(picklist)..
I have written below code:

trigger DesignationTrigger on Designation__c (after insert, before update) {
    // If type is Contract Flow and Document Attached is True then HandOffAttached =True, otherwise False
 
    for(Designation__c dc:Trigger.new)
    {
        if(dc.type__c=='ContractFlow' && dc.DocumentAttached__c==True)
        {
           dc.HandOffAttached__c='True';
        }
      else
          dc.HandOffAttached__c='True';
    }
  
}

I am getting the below error.  I am not sure whether i follwed correct approch or not for the gven logic .could any pleasae please guide me on this ? I really need your help in these triggers.
Apex trigger DesignationTrigger caused an unexpected exception, contact your administrator: DesignationTrigger: data changed by trigger for field HandoffAttached: bad value for restricted picklist field: True
Hi All,
I need help on the chatter group issue.
I have created a chatter group in partner portal but I can't see the group in my internal org even every post is not feeded in internal chatter feed. Should I do anything for getting this?
I hope someone can assist me to do this. 



Thanks,
Rakshana
Hi All

I want to display a Field which should be displayed in Detail Page only ..no need to display in Edit page

is there any possible ways to do this?
I have a VF form with one input field and an 'Enter' command button. Since the input value is almost always the same length, I want to automatically submit the form when the input field is filled.  I'm using jQuery to determine when the field is filled but I cannot figure out how to submit the form. Eventually I want to convert this page to use AJAX so just the form and message are rerender then create a mobile version of the UI. Any suggestions are greatly appreciated.

Here's the code:

<apex:page docType="html-5.0" controller="MyController" standardStylesheets="true" showHeader="true" sidebar="false">
<apex:includeScript value="{!URLFOR($Resource.Mobile_Design_Templates, 'Mobile-Design-Templates-master/common/js/jQuery2.0.2.min.js')}"/>
<script>
    j$ = jQuery.noConflict();
    j$(document).ready( function() {
        j$("input[id$='lu']").keyup( function() {
            if (j$(this).val().length == 20) {
                alert( "Len = 20" );  // this fires
                j$("form[id$='form']").submit();  // form not submitted, input field retains entered value
            }
        });
    });
</script>

<apex:form id="form">
    <apex:pageBlock >
        <apex:pageBlockSection >
            <apex:outputLabel value="LU"/ >
            <apex:input id="lu" type="text" value="{!inputLU}" html-maxlength="20" />
        </apex:pageBlockSection>
        <apex:pageBlockSection >
            <apex:commandButton action="{!updateLU}" value="Enter"/>
        </apex:pageBlockSection>  
    </apex:pageBlock>
    <apex:pageMessages />
</apex:form>
</apex:page>

HI ,

 

I have an apex:command button in my visualforce page.Now i want to change the background color of the button by using inline css .But iam not able to change it.If i use external css its working ,but i want to set standardstylesheets=true and change the background color of the button.So please tell me how to change the background color of the apex:command button

 

My code is as follows...

 

<apex:page >
 
 
 <style>
.contentStyle { font-size:12px; }
.buttonStyle { width:100%; background-color:green; text-align:center; padding-top:4px; }
.activeTab {background-color: #B7A752; color:white; background-image:none}
.inactiveTab { background-color: #F3F3EC; color:black; background-image:none}
.NoRecord { font-size:11px;}
</style>

 <apex:form> <apex:commandButton action="{!save}" value="Edit" styleClass="buttonStyle "></apex:commandButton>

 </apex:form>

 
 </apex:page>

 

In this code my command btns background color not getting changed!

 

So please help me out of the issue..

 

                                                                                                                                                                               Thanks and regards,

                                                                                                                                                                                           anu...

Hi All, 
I have created some customer objects incorrectly in my "playfu moose" doing my trailhead sessions in Object Manager.  How can I delete them without deleting everything?

​Thank you!