Forum Replies Created

Page 5 of 8
  • Hi Pranav,

    I have tried the below java script code in all the input fields and Command Button to avoid Enter functionality while creating the opportunity in my own visual force page.It is working very well for me.

    onkeydown="if(event.keyCode==13){this.blur();actionFunction();}"

  • Hi Saurabh,

    When creating a report in Lightning Experience it is possible to select whether filters are locked or unlocked.

    If the report's filters are not locked when it's saved in Lightning Experience and the report is deployed (via the Metadata API using available tools such as Change Sets, Force.com IDE, or Migration Tool) the previously unlocked report filters set in Lightning will now be locked.

    Repro
    1. Open Lightning Experience and create a report and add a filter and be sure to leave the "Locked" option unchecked:

    2. Create an outbound change set that includes the newly created report and upload/deploy it to a target organization.

    Actual Results: Despite not selecting the "Locked" option upon deploying the report via change sets.

    Expected Results: The locked status of the report filter should remain unchanged when deploying it.

    Workaround
    None outside of manually editing affected reports in Lightning Experience and deselecting the Locked option for filters.

    Thanks

  • Aman

    Member
    April 26, 2018 at 8:35 pm in reply to: Salesforce Remote Action not working in JavaScript?

    Hi Saurabh,

    Can you please share you code where you are using remote action in JavaScript. Without looking at the code no one tells what it is that causing the actual issue. It may be syntax error that prevent remote action from working.

    Thanks

  • Aman

    Member
    April 26, 2018 at 8:27 pm in reply to: How to Fetch more than 50k records using SOQL in Salesforce?

    Hi Saurabh,

    You should look at using Batch Apex to accomplish your goals.

    You cannot retrieve more than 50,000 records your SOQL calls in a single context.

    However, with  Batch Apex your logic will be processed in chunks of anywhere from 1 to 200 records in a batch.

    You'd need to modify your business logic to take the batching into account if necessary.

    Thanks

  • Hi Saurabh,

    You can create a  Change Owner Quick Action for Cases.

    User Permissions Needed :

    1. To create and modify the Send Email quick action: Manage Cases AND Customize Application
    2. To edit a page layout: Customize Application.

    Cases can be reassigned to the following:

    Community partner user
    Community portal user
    Queue
    User

    Thanks

  • Hi Pranav,

    Managed package code is not included in the required code coverage calculation for deployment. The 75% requirement is on all Apex code in your org's namespace. Managed code has its own namespace, so it is not included.
    When deploying to production, all tests in your org's namespace will be run. Managed tests will not be run by default.
    If the deployment package explicitly marks runAllTests to true, managed tests will also run. These will need to execute without any failures should the flag be set. Despite this, the 75% requirement for code coverage is still only on unmanaged code.

    Thanks

  • Aman

    Member
    April 26, 2018 at 7:55 pm in reply to: Not able to create new campaign in my Salesforce Org?

    Hi Saurabh,

    Marketing User When enabled, the user can create, edit, and delete campaigns, configure advanced campaign setup, import leads, and update campaign history via the member import wizards. Available in Professional, Enterprise, and Unlimited Editions.

    To use the campaign import wizards, Marketing Users must also have the Marketing User profile (or the “Import Leads” permission and the “Edit” permission on campaigns in Enterprise and Unlimited Edition organizations).

    If this option isn’t selected, the user can only view campaigns and advanced campaign setup, edit the Campaign History for a single lead or contact, and run campaign reports.

    administration   How to enable creating campaigns    Salesforce Stack Exchange

  • Hi Saurabh,

    The action method invoked when this page is requested by the server. Use expression language to reference an action method. For example, action="{!doAction}" references the doAction() method in the controller.If an action isn’t specified, the page loads as usual. If the action method returns null, the page simply refreshes.

    This method is called before the page is rendered, and allows you to optionally redirect the user to another page.

    Important: This action should not be used for initialization or DML.

    Thanks

  • Hi Pranav,

    There is problem when using required = true and Immediate = true while using action support,it can be a reason why your action support is not working.  you need to use Action region to achieve the functionality.

    Thanks

  • Hi Shubham,

    Lightning Experience introduces a new dashboard editor that’ll usher in a whole new generation of dashboards. This feature is available in Lightning Experience only. Opportunities Dashboard   Salesforce

  • Aman

    Member
    April 26, 2018 at 7:15 pm in reply to: Apex Inputfield not working in Salesforce1?

    Hi Shubham,

    You can use the below code to create apex input field for the type look up :

    <apex:page docType="html-5.0" standardController="Deal__c" extensions="PositionNoteDealActionController" sidebar="false" showHeader="false" applyHtmlTag="false">
    <html xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
    <head>
    <meta charset="utf-8" />
    <meta http-equiv="x-ua-compatible" content="ie=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <apex:stylesheet value="{!URLFOR($Resource.salesforce_lightning, 'assets/styles/salesforce-lightning-design-system-vf.min.css')}" />

    </head>
    <body>
    <div class="yourcompanyname">
    <apex:form >

    <div class="slds-form-element">
    <label class="slds-form-element__label" >Opportunity</label>
    <div class="slds-form-element__control slds-input-has-icon slds-input-has-icon--right">
    <a href="javascript:%20openLookup%28%27%2F_ui%2Fcommon%2Fdata%2FLookupPage%3Flkfm%3Dj_id0%253Aj_id4%26lknm%3Dj_id0%253Aj_id4%253Aj_id7%26lktp%3D%27%20%2B%20getElementByIdCS%28%27j_id0%3Aj_id4%3Aj_id7_lktp%27%29.value%2C670%2C%271%27%2C%27%26lksrch%3D%27%20%2B%20escapeUTF%28getElementByIdCS%28%27j_id0%3Aj_id4%3Aj_id7%27%29.value.substring%280%2C%2080%29%29%29" id="j_id0:j_id4:j_id7_lkwgt" onclick="setLastMousePosition(event)" title="Opportunity Lookup (New Window)">
    <svg aria-hidden="true" class="slds-input__icon slds-icon-text-default" >
    <use xlink:href="{!URLFOR($Resource.salesforce_lightning, '/assets/icons/utility-sprite/svg/symbols.svg#search')}"></use>
    </svg>
    </a>
    <apex:inputField styleClass="slds-input" type="text" value="{!positionNote.Opportunity__c}"/>
    </div>
    </div>
    </apex:form>
    </div>
    </body>

    </html>
    </apex:page>
    The salesforce_lightning resource comes from the css-customizer on the lightning design system site. Just upload the entire zip as a static resource.

    The href on the anchor tag is copied directly from the lookup icon if using regular salesforce styling.

  • Hi Shubham,

    If the User record (Click My Settings > Personal > Advanced User Details) has "Accessibility Mode" check-marked, the new report builder will be disabled for that user only and this could be the reason why you can't see the new report builder, even though other users in my profile can.

    Thanks

  • Aman

    Member
    April 26, 2018 at 7:02 pm in reply to: New Button not working in Salesforce Lightning for Winter 18 release?

    Hi Shubham,

    New button overridden with lightning component triggering "e.force:createRecord" seems to get stuck in infinite loop and this may be the reason why your new button is not working.

    Thanks

    • This reply was modified 6 years, 7 months ago by  Aman.
  • Aman

    Member
    April 26, 2018 at 6:59 pm in reply to: Service Setup not showing in Salesforce Lightning Experience?

    Hi Shubham,

    User Permissions Needed To set up a Lightning Service Console:
    Customize Application AND Service Cloud User
    Lightning Service Setup features an intuitive setup tree and a performance metrics dashboard. If you want a guided step-by-step experience, use the Recommended Setup or the setup flows.

    Use the following steps to access the Service Setup home page.

    From the App Launcher, open the Service Console app.
    In the header, click   and then select Service Setup.

    Thanks

     

  • Hi Rajan,

    There is a basic difference between these two

    Journey Data - Initial Time Data and contact data is Current time Data.

  • Aman

    Member
    April 26, 2018 at 6:50 pm in reply to: PageRedirection is not working in Salesforce1

    Hi shubham,

    It is a known issue to salesforce. Developers can only use the PageReference class to control navigation for the full site, it isn't supported for the Salesforce mobile app and may not work as expected. Some pages load using PageReference, but that may change with any update.

    Thanks

  • Aman

    Member
    April 26, 2018 at 6:41 pm in reply to: Onclick Javascript is not working in Salesforce Lightning?

    Hi Shubham,

    Javascript buttons are no longer supported by salesforce but you can use custom url buttons as their replacement.

    Custom URL buttons are suitable substitutes for JavaScript buttons that direct to a page on an external website or that navigate to a different record in Salesforce. For internal Salesforce links, use the URLFOR function and $Action functions or Relative Salesforce URLs (e.g. /{!Contact.Id}) rather than hard-coded URLs (e.g. https://na11.salesforce.com/{!Contact.ID}) to keep your users from getting directed out of Lightning Experience. You can update a JavaScript button to a Custom URL button by updating the Content Source for your button from OnClick JavaScript to URL,

  • Aman

    Member
    April 26, 2018 at 6:37 pm in reply to: How to Reload Page after an action using Javascript in Salesforce?

    Hi Pranav,

    You can also use below snippet of code :

    <apex:commandButton value="Save" action="{!save}" onclick="window.top.location='/{!<object>.id}'; return true"/>

    Thanks

  • Hi Saurabh,

    Users with the following permissions can respond to approval requests, even if they aren’t designated approvers.
    “Modify All Data”
    “Modify All” for an object
    Make sure that the assigned approver has access to read the records for the approval requests. For example, a user who can’t view expense records can’t view expense approval requests.
    Approval processes that let users select an approver manually also let users select themselves as the approver.
    You can assign an approval request to the same user multiple times in a single step. However, Salesforce sends the user only one request.
    Here’s what happens to the list of approvers after a record enters an approval step and the approval process later returns to that step.
    If the user who responded isn’t in the designated approvers list and has either “Modify All Data” or “Modify All” permissions for the object, that user replaces the original approver in the list of approvers.
    If a user who responded is in the designated approvers list, the list of approvers for that step don’t change. This behavior occurs even if the field values that designate the approvers have changed.

  • Aman

    Member
    April 26, 2018 at 6:23 pm in reply to: How to get real time data in Salesforce Marketing Cloud?

    Hi Rajan,

    You can use synchronous Data Extension to achieve this.

  • Aman

    Member
    April 26, 2018 at 5:59 pm in reply to: How to Dynamically adjust the UI of the Salesforce Visualforce Page?

    Hi Saurabh,

    You can use $User.UITheme and $User.UIThemeDisplayed global variable to find the current user experience.
    These global merge fields identify the Salesforce look and feel a user sees on a given Web page.
    The difference between the two variables is that $User.UITheme returns the look and feel the user is supposed to see, while$User.UIThemeDisplayed returns the look and feel the user actually sees. For example, a user may have the preference and permissions to see the Lightning Experience look and feel, but if they are using a browser that doesn’t support that look and feel, for example, older versions of Internet Explorer, $User.UIThemeDisplayed returns a different value.

  • Aman

    Member
    April 26, 2018 at 5:55 pm in reply to: How can I create Utility Bar component in Salesforce Lightning?

    Hi Shubham,

    Below are the steps to create Utility bar :

    You can add or edit a utility bar at any time.
    From the Home tab in Setup, enter App in the Quick Find box, then select App Manager.
    To edit or add a utility bar to an existing app, click Edit in the drop-down menu next to your app. To create a Lightning app with a utility bar, click New Lightning App.
    Click the Utility Bar tab and add the utilities you want.Specify component and utility properties, like the height and width of the utility panel, and what label and icon to display in the utility bar. Some utilities have properties that can’t be changed.Tip
    A Lightning page region can contain up to 25 components. We recommend adding no more than 10 utilities, and that you keep the utility labels short and sweet. You want your users to quickly find the tools and processes they need most.

    When creating a utility bar, keep these things in mind:Utility bars created using the Lightning App Wizard or in the Lightning App Builder can be assigned to only one Lightning app. However, utility bars created using the API can be assigned to multiple Lightning apps.
    The utility bar doesn’t support Visualforce pages or components.
    The utility bar doesn’t fully support the Chatter Publisher and Feed components.
    The History utility works in Lightning console apps only.
    The Omni-Channel utility works in the Lightning Service Console app only.

  • Hi shubham ,

    You can follow the below steps to give ip ranges :

    From Setup, enter Network Access in the Quick Find box, then select Network Access.
    Click New.
    Enter a valid IP address in the Start IP Address field and a higher IP address in the End IP Address field.The start and end addresses define the range of allowable IP addresses from which users can log in, including the start and end values. If you want to allow logins from a single IP address, enter the same address in both fields.

    The start and end IP addresses must be in an IPv4 range and include no more than 33,554,432 addresses (225, a /7 CIDR block).
    Optionally, enter a description for the range. For example, if you maintain multiple ranges, enter details about the part of your network that corresponds to this range.
    Click Save.
    Note

  • Hi Manpreet,

    I have tried the above script. It is not working and and it is making the existing popup blank. Also, using the above script i am unable to navigate to record Detail page. I am using a lightning component inside a visualforce page. Below are some other script that i have tried but none of them work out if you have some other solution, please let me know

    1. $A.get('e.force:refreshView').fire();
    2. window.opener.location.reload(true);
    3. setTimeout(function(){ console.log('IntimeOut:::'+Get_getUITheme);window.location.reload(true);
      }, 5000);
    4. window.loadend = refreshParent;
      function refreshParent() {
      console.log("load event detected!");
      window.location.reload();
      }
    5. window.location.href = window.location.href;
      window.location.reload(true);

    Thanks

  • Hi Raghav,

    Below is the code for apex controller :

    public class AccountNameDemo {
    Public List<Account> listOfAccounts{get;set;}
    public boolean showAccount{get;set;}

    public AccountNameDemo(){
    listOfAccounts = new List<Account>();
    showAccount = false;
    }

    public void AccountList(){
    listOfAccounts = [select id,name from Account limit 50000];
    showAccount = true;
    }

    }

    here is the code for visualforce page :

    <apex:page controller="AccountNameDemo">
    <apex:form>
    <apex:commandButton action="{!AccountList}" value="AccountsName" id="theButton"/>
    <apex:repeat value="{!listofAccounts}" var="acc" rendered="{!showAccount}">
    <apex:outputText value="{!acc.name}"></apex:outputText>
    <br/>
    </apex:repeat>
    </apex:form>

    </apex:page>

     

    below is the screen shot of output :

    Salesforce   Developer Edition

Page 5 of 8