• Swiftguy
  • NEWBIE
  • 15 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 4
    Replies
Hello All,
Implementing a basic navigation component. No error while pushing the code to the scratch org, but when i click on the navigation buttons no action. Below is the image of our component on Account Record page.

User-added image

NavigationinLWC1.html
<template>
    <lightning-card title="Navigation Service in Lightning Web Component">
        <lightning-card title="Navigation to Record Page">
            <lightning-button-group>
                <lightning-button label="New Record Page" onclick={navigateToNewRecordPage}></lightning-button>
                <lightning-button label="Edit Record Page" onclick={navigateToEditRecordPage}></lightning-button>
                <lightning-button label="View Record Page" onclick={navigateToViewRecordPage}></lightning-button>
            </lightning-button-group>
        </lightning-card>
    </lightning-card>    
</template>

NavigationinLWC1.js
import { LightningElement,api } from 'lwc';
import {NavigationMixin} from 'lightning/navigation'
export default class NavigationinLWC1 extends LightningElement {
    @api recordId;
    navigateToNewRecordPage(){
        this[NavigationMixin.Navigate]({
            type:'standard__recordPage',
            attribute:{
                "recordId":this.recordId,
                "objectApiName":"Account",
                "actionName": "new"
            }
        });
    }

    navigateToEditRecordPage(){
        this[NavigationMixin.Navigate]({
            type:'standard__recordPage',
            attribute:{
                "recordId":this.recordId,
                "objectApiName":"Account",
                "actionName": "edit"
            }
        });
    }

    navigateToViewRecordPage(){
        this[NavigationMixin.Navigate]({
            type:'standard__recordPage',
            attribute:{
                "recordId":this.recordId,
                "objectApiName":"Account",
                "actionName": "view"
            }
        });
    }
}

Kindly help me out.
Hello All,

Trying to display  a simple Google Map on a Visual Force page, but its not displaying below is the code. Kindly help me out.
 
<apex:page applyHtmlTag="false" applyBodyTag="false" docType="html-5.0" showHeader="false" standardStylesheets="false">

   
  <html xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" lang="en">
    <head>
    <title>Simple Map</title>
    <meta name="viewport" content="initial-scale=1.0">
    <meta charset="utf-8">
    <style>
      html, body {
        height: 100%;
        margin: 0;
        padding: 0;
      }
      #delhi {
        height: 100%;
      }
    </style>
    </head>
    <body>
      <div id="delhi"></div>
      <script>
      
        var delhi;
        
        function initMap() {
          delhi = new google.maps.Map(document.getElementById('delhi'), {
            center: {lat: 28.6139, lng: 77.2090},
            zoom: 8
          });
        }
        </script>
        
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyD_27ofSH4uzv_M-Vc7mTmh_zjoO0A4BWw&callback=initMap" async="true" defer="true">
</script>
        
    </body>
    
  </html>
    
</apex:page>

 
I have developer account created on Salesforce.com, I was able to create APEX classes and Visualforce pages using the 'developer console'.
All of a sudden now my visualforce pages are not getting saved. The star sign adjacent to the filename tab always remains same even after repeatedly pressing 'ctrl+s'(as seen below)developer console screenshot
Tried changing the workspace, created new workspace and tried to save the new visualforce file.. but the file does not get saved.
Hello,

We have created a custom object, new fields added and then used the 'Data Import Wizard' to import records from a .csv file. 

Around 1000 records got imported but after import, we can't view the imported records. How do we list these records?

Below is the screen which clearly shows data is imported.

User-added image
Hello All,
Implementing a basic navigation component. No error while pushing the code to the scratch org, but when i click on the navigation buttons no action. Below is the image of our component on Account Record page.

User-added image

NavigationinLWC1.html
<template>
    <lightning-card title="Navigation Service in Lightning Web Component">
        <lightning-card title="Navigation to Record Page">
            <lightning-button-group>
                <lightning-button label="New Record Page" onclick={navigateToNewRecordPage}></lightning-button>
                <lightning-button label="Edit Record Page" onclick={navigateToEditRecordPage}></lightning-button>
                <lightning-button label="View Record Page" onclick={navigateToViewRecordPage}></lightning-button>
            </lightning-button-group>
        </lightning-card>
    </lightning-card>    
</template>

NavigationinLWC1.js
import { LightningElement,api } from 'lwc';
import {NavigationMixin} from 'lightning/navigation'
export default class NavigationinLWC1 extends LightningElement {
    @api recordId;
    navigateToNewRecordPage(){
        this[NavigationMixin.Navigate]({
            type:'standard__recordPage',
            attribute:{
                "recordId":this.recordId,
                "objectApiName":"Account",
                "actionName": "new"
            }
        });
    }

    navigateToEditRecordPage(){
        this[NavigationMixin.Navigate]({
            type:'standard__recordPage',
            attribute:{
                "recordId":this.recordId,
                "objectApiName":"Account",
                "actionName": "edit"
            }
        });
    }

    navigateToViewRecordPage(){
        this[NavigationMixin.Navigate]({
            type:'standard__recordPage',
            attribute:{
                "recordId":this.recordId,
                "objectApiName":"Account",
                "actionName": "view"
            }
        });
    }
}

Kindly help me out.
Hello All,

Trying to display  a simple Google Map on a Visual Force page, but its not displaying below is the code. Kindly help me out.
 
<apex:page applyHtmlTag="false" applyBodyTag="false" docType="html-5.0" showHeader="false" standardStylesheets="false">

   
  <html xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" lang="en">
    <head>
    <title>Simple Map</title>
    <meta name="viewport" content="initial-scale=1.0">
    <meta charset="utf-8">
    <style>
      html, body {
        height: 100%;
        margin: 0;
        padding: 0;
      }
      #delhi {
        height: 100%;
      }
    </style>
    </head>
    <body>
      <div id="delhi"></div>
      <script>
      
        var delhi;
        
        function initMap() {
          delhi = new google.maps.Map(document.getElementById('delhi'), {
            center: {lat: 28.6139, lng: 77.2090},
            zoom: 8
          });
        }
        </script>
        
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyD_27ofSH4uzv_M-Vc7mTmh_zjoO0A4BWw&callback=initMap" async="true" defer="true">
</script>
        
    </body>
    
  </html>
    
</apex:page>

 
I have developer account created on Salesforce.com, I was able to create APEX classes and Visualforce pages using the 'developer console'.
All of a sudden now my visualforce pages are not getting saved. The star sign adjacent to the filename tab always remains same even after repeatedly pressing 'ctrl+s'(as seen below)developer console screenshot
Tried changing the workspace, created new workspace and tried to save the new visualforce file.. but the file does not get saved.
Hello,

We have created a custom object, new fields added and then used the 'Data Import Wizard' to import records from a .csv file. 

Around 1000 records got imported but after import, we can't view the imported records. How do we list these records?

Below is the screen which clearly shows data is imported.

User-added image