-
ChatterFeed
-
0Best Answers
-
2Likes Received
-
0Likes Given
-
20Questions
-
12Replies
How to built connection between Azure Blob and Salesforce, we are using auth provider and named credential. What is the default scope in the auth provider?
Hi All,
How to built connection between Azure Blob and Salesforce, we are using auth provider and named credential. What is the default scope in the auth provider?
Please help!
Thank you
- Shavi Dabgotra
- June 09, 2021
- Like
- 0
- Continue reading or reply
Icon in row actions of lighting- data table in LWC.
Hello experts!
I want an Icon in row actions of lighting- data table in LWC.
Icon should be display in red mark. How to add it?
Thank you in advance!
- Shavi Dabgotra
- March 25, 2021
- Like
- 0
- Continue reading or reply
How to call a wire method in OnClick of another button
Hi everyone!
Can someone tell me How can we call a wire method in another method in lightning web component?
As I want to call below method:
@wire(getAllFolder,{currentPageid:'$recordId'})
wiredCases(value){
this.wiredActivities = value;
const { data, error } = value;
if(data){
let dataEditing = JSON.parse(JSON.stringify(data));
}else if(error){
this.error = error;
}
}
In another method as:
handleNavigation2(){
}
How to call in this?
Thank you in advance!
- Shavi Dabgotra
- March 19, 2021
- Like
- 0
- Continue reading or reply
lightning-datatable with lightning-breadcrumbs
Hi everyone!
I have a requirement as in a lightning-datatable when we click on any item A lightning-breadcrumb should be created that breadcrumb should be clickable also.
Like this:How can I acheive this?
Thank you in advance!
- Shavi Dabgotra
- March 16, 2021
- Like
- 0
- Continue reading or reply
Traversing of file and sub-files using LWC
Hi all,
I have created a data table which contain list of files.
I have to create a component like this:
When a user click on Test data table, then, a traversal as highlighted should be added there. And if again we click on opportunity folder in Highlighted then it will go back to previous.
How can I acheive this using lightning web component.
Thank you so much!
- Shavi Dabgotra
- March 16, 2021
- Like
- 0
- Continue reading or reply
How to get value from string?
Hi Everyone!
I am new to this.
I have a string as:
String str = '{
"@microsoft.graph.downloadUrl": "https://ww.google.com",
"createdDateTime": "xyz"}';
I want to get the value of @microsoft.graph.downloadUrl and https://ww.google.com
I am using substringBetween but it is not working.
How to get these value and store in some variable.
I will be very grateful.
Thank you in advance!
- Shavi Dabgotra
- March 16, 2021
- Like
- 0
- Continue reading or reply
I want to RENAME a folder name that I get from sharepoint in my data table.
Hi Everyone,
I want to RENAME a folder name that I get from sharepoint in my data table.
Folder name should be renamed on sharepoint site as well as in data table using Lightning Web component.
How can I acheive this?
Thank you in advance!
- Shavi Dabgotra
- March 09, 2021
- Like
- 0
- Continue reading or reply
How to make a name as url and clickable using lightning data table?
How can I make a column clickable in lightning data table to get the name?
Thank you in advance!
- Shavi Dabgotra
- March 05, 2021
- Like
- 0
- Continue reading or reply
I want a drop down menu by using button menu in data table using Lightning Web component.
Hi all,
I want a drop down menu by using lightning-button-menu in data table using Lightning Web component.
I have created the Data table and I want a drop down menu with the different values.
Data table is as follows:
HTML:
<template>
<lightning-card title='Data table'>
<div style="height: 300px;">
<lightning-datatable
key-field="id"
data={data}
columns={columns}
>
</lightning-datatable>
<div>{error}</div>
</div>
</lightning-card>
</template>
JS:
import { LightningElement,track,api,wire } from 'lwc';
import getAccountList from '@salesforce/apex/AccountHelper.getAccountList';
const columns = [
{ label: 'Account name',
fieldName: 'Name',
type: 'text',
sortable: true
},
{
label: 'Type',
fieldName: 'Type',
type: 'text',
sortable: true
},
];
export default class Test extends LightningElement {
data = [];
columns = columns;
wiredActivities ;
records = '';
error;
@wire(getAccountList,{
}
)
wiredCases(value){
this.wiredActivities = value;
const { data, error } = value;
if(data){
let dataEditing = JSON.parse(JSON.stringify(data));
this.records = dataEditing.length;
this.data = dataEditing;
}else if(error){
this.error = error;
}
}
}
Apex class:
public with sharing class AccountHelper {
@AuraEnabled(cacheable=true)
public static List<Account> getAccountList() {
return [SELECT Id, Name, Type, Rating,
Phone, Website, AnnualRevenue
FROM Account LIMIT 10];
}
}
I want a drop down menu in every row and that should be clickable.
Thank you in advance!
- Shavi Dabgotra
- March 03, 2021
- Like
- 0
- Continue reading or reply
Copy to clipboard functionality is not being working
Hi Everyone!
I want a copy to clipboard functionality using visualforce page.
I used the following example as:
<apex:page title="Clipboard Test" >
<apex:messages />
<script language="JavaScript">
function ClipBoard(copytextid, holdtextid){
copyToClipboard(copytextid);
}
function copyToClipboard(elementId) {
// Create an auxiliary hidden input
var aux = document.createElement("input");
// Get the text from the element passed into the input
aux.setAttribute("value", document.getElementById(elementId).innerHTML);
// Append the aux input to the body
document.body.appendChild(aux);
// Highlight the content
aux.select();
// Execute the copy command
document.execCommand("copy");
// Remove the input from the body
document.body.removeChild(aux);
}
</script>
<apex:pageblock >
<apex:form >
<apex:outputpanel ID="copytext" STYLE="height:150;width:162;background-color:pink">
<p style="border-style: dashed;" class="borderclass">
Hi Azure Admin,<br/><br/>
I'm setting up a SharePoint integration with Salesforce using sFiles. Please create a new Azure App Registration using the
<span style="color:rgb(63,137,143);"><b>Redirect URI:</b></span> <br/>
<a href="https://www.google.com">https://www.google.com </a> <br/><br/>
Please follow the instructions here: <br/><br/>
Finally, please provide me with the following information:<br/><br/>
- Azure Application (client) ID:<br/>
- Azure Directory (tenant) ID:<br/>
- Application Client Secret:<br/>
</p>
</apex:outputpanel>
<apex:inputtextarea ID="holdtext" STYLE="display:none;"></apex:inputtextarea>
<apex:commandbutton onClick="ClipBoard('{!$Component.copytext}', '{!$Component.holdtext}');" rerender="copytext" value="Copy to Clipboard"/>
</apex:form>
</apex:pageblock>
</apex:page>
But the problem is that, the html tags are also copied that shouldn't be coiped.
Could you please help me in this.
Thank you so much!
- Shavi Dabgotra
- March 03, 2021
- Like
- 0
- Continue reading or reply
Create a record in Auth. Provider Identity using visualforce page
Hi Everyone!
I want to create a record in Auth. Provider Identity using visualforce page. How can I acheive that?
Can you please help me? It is urgent.
Thank you so much!
- Shavi Dabgotra
- March 02, 2021
- Like
- 0
- Continue reading or reply
Account list is not coming on using lightning-datatable!
Hi Everyone!
I want a list of account using Lightning-datatable. But it is not displaying the list of accounts.
HTML:
<template>
<lightning-card title="t">
<template if:true={accList}>
<lightning-datatable
key-field="Id"
data={data}
columns={columns}>
</lightning-datatable>
</template>
<template if:true={error}>
{error}
</template>
</lightning-card>
</template>
JS:
import { LightningElement ,api, wire, track} from 'lwc';
import getAccountList from '@salesforce/apex/AccountHelper.getAccountList';
export default class Test extends LightningElement {
@track columns = [{
label: 'Account name',
fieldName: 'Name',
type: 'text',
sortable: true
},
{
label: 'Type',
fieldName: 'Type',
type: 'text',
sortable: true
},
];
@track error;
@track accList ;
@wire(getAccountList)
wiredAccounts({
error,
data
}) {
if (data) {
this.accList = data;
alert(JSON.stringify(accList));
alert(JSON.stringify(data));
} else if (error) {
this.error = error;
}
}
}
Apex Class:
public with sharing class AccountHelper {
@AuraEnabled(cacheable=true)
public static List<Account> getAccountList() {
return [SELECT Id, Name, Type, Rating,
Phone, Website, AnnualRevenue
FROM Account LIMIT 10];
}
}
xml:
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>50.0</apiVersion>
<isExposed>true</isExposed>
<targets>
<target>lightning__AppPage</target>
<target>lightning__RecordPage</target>
<target>lightning__HomePage</target>
</targets>
</LightningComponentBundle>
Output:
I want the list of accounts.
Thank you in Advance!
- Shavi Dabgotra
- March 01, 2021
- Like
- 1
- Continue reading or reply
How a pop up will appear after clicking of a drop down menu.
Hi,
I have created a drop down menu in lightning web component. But, I want a pop up will appear on click of a menu item.
I tried this for pop up, But it is not working. On click of a "Rename " Menu item . A pop up will be shown.
button.html
<template>
<div class="slds-p-around_medium lgc-bg">
{selectedItemValue}
{ready}
<lightning-card title="Drop Down">
<lightning-button-menu alternative-text="Show menu" variant="border-filled" onselect={handleOnselect}>
{selectedItemValue}
<lightning-menu-item value="openinsharepoint" label="Open in SharePoint" prefix-icon-name="utility:new_window"
href="#"
target="_blank">
</lightning-menu-item>
<lightning-menu-item value="rename" label="Rename" prefix-icon-name="utility:edit">
<template if:true={ready}>
<section role="dialog" tabindex="-1" class="slds-modal slds-fade-in-open slds-modal_small"
aria-labelledby="modal-heading-01" aria-modal="true" aria-hidden="true"
aria-describedby="modal-content-id-1">
<div class="slds-modal__container">
<!-- Modal/Popup Box LWC header here -->
<header class="slds-modal__header">
<button class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse" title="Close" onclick={closeModal}>
<lightning-icon icon-name="utility:close"
alternative-text="close"
variant="inverse"
size="small" ></lightning-icon>
<span class="slds-assistive-text">Close</span>
</button>
<h2 id="modal-heading-01" class="slds-text-heading_medium slds-hyphenate">Rename LWC Setup.docx</h2>
</header>
<!-- Modal/Popup Box LWC body starts here -->
<div class="slds-modal__content slds-p-around_medium" id="modal-content-id-1">
<lightning-input type="text" name="folder_name" label="Rename" placeholder="Enter new item name">
</lightning-input>
</div>
<!-- Modal/Popup Box LWC footer starts here -->
<footer class="slds-modal__footer">
<button class="slds-button slds-button_neutral" onclick={closeModal} title="Cancel">Cancel</button>
<button class="slds-button slds-button_brand" onclick={submitDetails} title="Create">Create</button>
</footer>
</div>
</section>
<div class="slds-backdrop slds-backdrop_open"></div>
</template>
</lightning-menu-item>
<lightning-menu-item value="download" label="Download" prefix-icon-name="utility:download">
</lightning-menu-item>
<div class="slds-has-divider_top-space" role="separator">
<lightning-menu-item value="delete" label="Delet" prefix-icon-name="utility:close"></lightning-menu-item>
</div>
</lightning-button-menu>
</lightning-card>
</div>
</template>
button.js
import { LightningElement, track } from 'lwc';
export default class ButtonMenuOnselect extends LightningElement {
@track selectedItemValue;
@track ready;
handleOnselect(event) {
this.selectedItemValue = event.detail.value;
if(this.selectedItemValue == "rename")
{
alert("ready");
this.ready = true;
alert("false");
}
}
}
- Shavi Dabgotra
- February 26, 2021
- Like
- 1
- Continue reading or reply
display the field from custom object, To be display in Visualforce using Custom controller.
Hi Everyone,
I want to display the field from my custom object(Timesheet__c), To be display in Visualforce using Custom controller.
Below is my VF:
<apex:page controller="ManagementTime" lightningStylesheets="true" >
<apex:form >
<apex:pageBlock >
<apex:pageblockSection columns="1" >
<apex:pageblockTable value="{!objlist}" var="c" >
<apex:column headervalue="Task" >
<apex:inputField value="{!c.Task_Type__c}"/>
<apex:outputField value="{!c.Task_Type__c}" />
</apex:column>
<apex:column headervalue="Monday" rendered="true" >
<apex:inputField value="{!c.Monday__c}"/>
<apex:outputField value="{!c.Monday__c}" />
</apex:column>
</apex:pageBlockTable>
</apex:pageblockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
Below is my Custom controller:
public class ManagementTime{
public list<Timesheet__c> objlist {get;set;}
public ManagementTime(){
objlist = [SELECT Id, Task_Type__c FROM Timesheet__c WHERE Id = :ApexPages.currentPage().getParameters().get('id')];
}
}
But I my getting only header name:
But I want like this:
Could someone help me in this? I am new to visualforce development.Thank you in advance!
- Shavi Dabgotra
- February 02, 2021
- Like
- 0
- Continue reading or reply
Stuck on Workflow Migration submodule 3 Hands on Challenge with link https://trailhead.salesforce.com/content/learn/modules/workflow_migration/workflow_migration_actions
Hi everyone,
I have created a process as mentioned in the Challenge. As I attached my process.
But I am getting error saying ,
Can someone help me in this?
Thank you in advance!
- Shavi Dabgotra
- December 24, 2020
- Like
- 0
- Continue reading or reply
Error:Apex trigger ASCExists caused an unexpected exception, contact your administrator: ASCExists: execution of AfterUpdate caused by: System.FinalException: Record is read-only: Trigger.ASCExists: line 6, column 1
I have used Trigger to update that.
trigger ASCExists on Account (after update) {
if(trigger.isAfter && trigger.isUpdate){
for(Account acc:trigger.new){
if(acc.BillingCountry == 'India' && acc.BillingState == 'Punjab' )
{
acc.Exists__c = true ;
update acc;
}
}
}
}
But I am getting this error as:
Error:Apex trigger ASCExists caused an unexpected exception, contact your administrator: ASCExists: execution of AfterUpdate caused by: System.FinalException: Record is read-only: Trigger.ASCExists: line 6, column 1
How to fix this. Can somebody help in this.
Thank you
- Shavi Dabgotra
- November 30, 2020
- Like
- 0
- Continue reading or reply
How to get the field value/ API value of Billing State Picklist Value.
I have enable the state and country picklist. In Account object, Biiling state and Billing Country as Picklist Value. I want the value of picklist.
How can I get this,
Thank you in Advance!
- Shavi Dabgotra
- November 30, 2020
- Like
- 0
- Continue reading or reply
State and Country/terrority picklist
I have a requirement to convert Billing country to a picklist for an Account object.
I am trying with the State and Country picklist. Can someone help to how to do this as mentioned in help section.
{Before switching to state and country/territory picklist fields, you must find and convert existing state and country/territory text data into standard picklist values. }
Or is there any other way do it.
Thank you in advance
- Shavi Dabgotra
- November 27, 2020
- Like
- 0
- Continue reading or reply
Auto-Populate the Opportunity owner as logged in user using VF
I am new to this. Can some one help me in this?
Thank you in advance!
- Shavi Dabgotra
- November 20, 2020
- Like
- 0
- Continue reading or reply
I have created a checkbox on opportunity as 'IsDeleted'. Whenever Whenever user mark this checkbox as true, opportunity record should get deleted.
I have created a checkbox on opportunity as 'IsDeleted'. Whenever user mark this checkbox as true, opportunity record should get deleted.
I am new to apex trigger. Can someone help me?
Thank you
- Shavi Dabgotra
- November 05, 2020
- Like
- 0
- Continue reading or reply
Account list is not coming on using lightning-datatable!
Hi Everyone!
I want a list of account using Lightning-datatable. But it is not displaying the list of accounts.
HTML:
<template>
<lightning-card title="t">
<template if:true={accList}>
<lightning-datatable
key-field="Id"
data={data}
columns={columns}>
</lightning-datatable>
</template>
<template if:true={error}>
{error}
</template>
</lightning-card>
</template>
JS:
import { LightningElement ,api, wire, track} from 'lwc';
import getAccountList from '@salesforce/apex/AccountHelper.getAccountList';
export default class Test extends LightningElement {
@track columns = [{
label: 'Account name',
fieldName: 'Name',
type: 'text',
sortable: true
},
{
label: 'Type',
fieldName: 'Type',
type: 'text',
sortable: true
},
];
@track error;
@track accList ;
@wire(getAccountList)
wiredAccounts({
error,
data
}) {
if (data) {
this.accList = data;
alert(JSON.stringify(accList));
alert(JSON.stringify(data));
} else if (error) {
this.error = error;
}
}
}
Apex Class:
public with sharing class AccountHelper {
@AuraEnabled(cacheable=true)
public static List<Account> getAccountList() {
return [SELECT Id, Name, Type, Rating,
Phone, Website, AnnualRevenue
FROM Account LIMIT 10];
}
}
xml:
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>50.0</apiVersion>
<isExposed>true</isExposed>
<targets>
<target>lightning__AppPage</target>
<target>lightning__RecordPage</target>
<target>lightning__HomePage</target>
</targets>
</LightningComponentBundle>
Output:
I want the list of accounts.
Thank you in Advance!
- Shavi Dabgotra
- March 01, 2021
- Like
- 1
- Continue reading or reply
How a pop up will appear after clicking of a drop down menu.
Hi,
I have created a drop down menu in lightning web component. But, I want a pop up will appear on click of a menu item.
I tried this for pop up, But it is not working. On click of a "Rename " Menu item . A pop up will be shown.
button.html
<template>
<div class="slds-p-around_medium lgc-bg">
{selectedItemValue}
{ready}
<lightning-card title="Drop Down">
<lightning-button-menu alternative-text="Show menu" variant="border-filled" onselect={handleOnselect}>
{selectedItemValue}
<lightning-menu-item value="openinsharepoint" label="Open in SharePoint" prefix-icon-name="utility:new_window"
href="#"
target="_blank">
</lightning-menu-item>
<lightning-menu-item value="rename" label="Rename" prefix-icon-name="utility:edit">
<template if:true={ready}>
<section role="dialog" tabindex="-1" class="slds-modal slds-fade-in-open slds-modal_small"
aria-labelledby="modal-heading-01" aria-modal="true" aria-hidden="true"
aria-describedby="modal-content-id-1">
<div class="slds-modal__container">
<!-- Modal/Popup Box LWC header here -->
<header class="slds-modal__header">
<button class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse" title="Close" onclick={closeModal}>
<lightning-icon icon-name="utility:close"
alternative-text="close"
variant="inverse"
size="small" ></lightning-icon>
<span class="slds-assistive-text">Close</span>
</button>
<h2 id="modal-heading-01" class="slds-text-heading_medium slds-hyphenate">Rename LWC Setup.docx</h2>
</header>
<!-- Modal/Popup Box LWC body starts here -->
<div class="slds-modal__content slds-p-around_medium" id="modal-content-id-1">
<lightning-input type="text" name="folder_name" label="Rename" placeholder="Enter new item name">
</lightning-input>
</div>
<!-- Modal/Popup Box LWC footer starts here -->
<footer class="slds-modal__footer">
<button class="slds-button slds-button_neutral" onclick={closeModal} title="Cancel">Cancel</button>
<button class="slds-button slds-button_brand" onclick={submitDetails} title="Create">Create</button>
</footer>
</div>
</section>
<div class="slds-backdrop slds-backdrop_open"></div>
</template>
</lightning-menu-item>
<lightning-menu-item value="download" label="Download" prefix-icon-name="utility:download">
</lightning-menu-item>
<div class="slds-has-divider_top-space" role="separator">
<lightning-menu-item value="delete" label="Delet" prefix-icon-name="utility:close"></lightning-menu-item>
</div>
</lightning-button-menu>
</lightning-card>
</div>
</template>
button.js
import { LightningElement, track } from 'lwc';
export default class ButtonMenuOnselect extends LightningElement {
@track selectedItemValue;
@track ready;
handleOnselect(event) {
this.selectedItemValue = event.detail.value;
if(this.selectedItemValue == "rename")
{
alert("ready");
this.ready = true;
alert("false");
}
}
}
- Shavi Dabgotra
- February 26, 2021
- Like
- 1
- Continue reading or reply
Icon in row actions of lighting- data table in LWC.
Hello experts!
I want an Icon in row actions of lighting- data table in LWC.
Icon should be display in red mark. How to add it?
Thank you in advance!
- Shavi Dabgotra
- March 25, 2021
- Like
- 0
- Continue reading or reply
I want a drop down menu by using button menu in data table using Lightning Web component.
Hi all,
I want a drop down menu by using lightning-button-menu in data table using Lightning Web component.
I have created the Data table and I want a drop down menu with the different values.
Data table is as follows:
HTML:
<template>
<lightning-card title='Data table'>
<div style="height: 300px;">
<lightning-datatable
key-field="id"
data={data}
columns={columns}
>
</lightning-datatable>
<div>{error}</div>
</div>
</lightning-card>
</template>
JS:
import { LightningElement,track,api,wire } from 'lwc';
import getAccountList from '@salesforce/apex/AccountHelper.getAccountList';
const columns = [
{ label: 'Account name',
fieldName: 'Name',
type: 'text',
sortable: true
},
{
label: 'Type',
fieldName: 'Type',
type: 'text',
sortable: true
},
];
export default class Test extends LightningElement {
data = [];
columns = columns;
wiredActivities ;
records = '';
error;
@wire(getAccountList,{
}
)
wiredCases(value){
this.wiredActivities = value;
const { data, error } = value;
if(data){
let dataEditing = JSON.parse(JSON.stringify(data));
this.records = dataEditing.length;
this.data = dataEditing;
}else if(error){
this.error = error;
}
}
}
Apex class:
public with sharing class AccountHelper {
@AuraEnabled(cacheable=true)
public static List<Account> getAccountList() {
return [SELECT Id, Name, Type, Rating,
Phone, Website, AnnualRevenue
FROM Account LIMIT 10];
}
}
I want a drop down menu in every row and that should be clickable.
Thank you in advance!
- Shavi Dabgotra
- March 03, 2021
- Like
- 0
- Continue reading or reply
How a pop up will appear after clicking of a drop down menu.
Hi,
I have created a drop down menu in lightning web component. But, I want a pop up will appear on click of a menu item.
I tried this for pop up, But it is not working. On click of a "Rename " Menu item . A pop up will be shown.
button.html
<template>
<div class="slds-p-around_medium lgc-bg">
{selectedItemValue}
{ready}
<lightning-card title="Drop Down">
<lightning-button-menu alternative-text="Show menu" variant="border-filled" onselect={handleOnselect}>
{selectedItemValue}
<lightning-menu-item value="openinsharepoint" label="Open in SharePoint" prefix-icon-name="utility:new_window"
href="#"
target="_blank">
</lightning-menu-item>
<lightning-menu-item value="rename" label="Rename" prefix-icon-name="utility:edit">
<template if:true={ready}>
<section role="dialog" tabindex="-1" class="slds-modal slds-fade-in-open slds-modal_small"
aria-labelledby="modal-heading-01" aria-modal="true" aria-hidden="true"
aria-describedby="modal-content-id-1">
<div class="slds-modal__container">
<!-- Modal/Popup Box LWC header here -->
<header class="slds-modal__header">
<button class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse" title="Close" onclick={closeModal}>
<lightning-icon icon-name="utility:close"
alternative-text="close"
variant="inverse"
size="small" ></lightning-icon>
<span class="slds-assistive-text">Close</span>
</button>
<h2 id="modal-heading-01" class="slds-text-heading_medium slds-hyphenate">Rename LWC Setup.docx</h2>
</header>
<!-- Modal/Popup Box LWC body starts here -->
<div class="slds-modal__content slds-p-around_medium" id="modal-content-id-1">
<lightning-input type="text" name="folder_name" label="Rename" placeholder="Enter new item name">
</lightning-input>
</div>
<!-- Modal/Popup Box LWC footer starts here -->
<footer class="slds-modal__footer">
<button class="slds-button slds-button_neutral" onclick={closeModal} title="Cancel">Cancel</button>
<button class="slds-button slds-button_brand" onclick={submitDetails} title="Create">Create</button>
</footer>
</div>
</section>
<div class="slds-backdrop slds-backdrop_open"></div>
</template>
</lightning-menu-item>
<lightning-menu-item value="download" label="Download" prefix-icon-name="utility:download">
</lightning-menu-item>
<div class="slds-has-divider_top-space" role="separator">
<lightning-menu-item value="delete" label="Delet" prefix-icon-name="utility:close"></lightning-menu-item>
</div>
</lightning-button-menu>
</lightning-card>
</div>
</template>
button.js
import { LightningElement, track } from 'lwc';
export default class ButtonMenuOnselect extends LightningElement {
@track selectedItemValue;
@track ready;
handleOnselect(event) {
this.selectedItemValue = event.detail.value;
if(this.selectedItemValue == "rename")
{
alert("ready");
this.ready = true;
alert("false");
}
}
}
- Shavi Dabgotra
- February 26, 2021
- Like
- 1
- Continue reading or reply
display the field from custom object, To be display in Visualforce using Custom controller.
Hi Everyone,
I want to display the field from my custom object(Timesheet__c), To be display in Visualforce using Custom controller.
Below is my VF:
<apex:page controller="ManagementTime" lightningStylesheets="true" >
<apex:form >
<apex:pageBlock >
<apex:pageblockSection columns="1" >
<apex:pageblockTable value="{!objlist}" var="c" >
<apex:column headervalue="Task" >
<apex:inputField value="{!c.Task_Type__c}"/>
<apex:outputField value="{!c.Task_Type__c}" />
</apex:column>
<apex:column headervalue="Monday" rendered="true" >
<apex:inputField value="{!c.Monday__c}"/>
<apex:outputField value="{!c.Monday__c}" />
</apex:column>
</apex:pageBlockTable>
</apex:pageblockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
Below is my Custom controller:
public class ManagementTime{
public list<Timesheet__c> objlist {get;set;}
public ManagementTime(){
objlist = [SELECT Id, Task_Type__c FROM Timesheet__c WHERE Id = :ApexPages.currentPage().getParameters().get('id')];
}
}
But I my getting only header name:
But I want like this:
Could someone help me in this? I am new to visualforce development.Thank you in advance!
- Shavi Dabgotra
- February 02, 2021
- Like
- 0
- Continue reading or reply
Stuck on Workflow Migration submodule 3 Hands on Challenge with link https://trailhead.salesforce.com/content/learn/modules/workflow_migration/workflow_migration_actions
Hi everyone,
I have created a process as mentioned in the Challenge. As I attached my process.
But I am getting error saying ,
Can someone help me in this?
Thank you in advance!
- Shavi Dabgotra
- December 24, 2020
- Like
- 0
- Continue reading or reply
Error:Apex trigger ASCExists caused an unexpected exception, contact your administrator: ASCExists: execution of AfterUpdate caused by: System.FinalException: Record is read-only: Trigger.ASCExists: line 6, column 1
I have used Trigger to update that.
trigger ASCExists on Account (after update) {
if(trigger.isAfter && trigger.isUpdate){
for(Account acc:trigger.new){
if(acc.BillingCountry == 'India' && acc.BillingState == 'Punjab' )
{
acc.Exists__c = true ;
update acc;
}
}
}
}
But I am getting this error as:
Error:Apex trigger ASCExists caused an unexpected exception, contact your administrator: ASCExists: execution of AfterUpdate caused by: System.FinalException: Record is read-only: Trigger.ASCExists: line 6, column 1
How to fix this. Can somebody help in this.
Thank you
- Shavi Dabgotra
- November 30, 2020
- Like
- 0
- Continue reading or reply
I have created a checkbox on opportunity as 'IsDeleted'. Whenever Whenever user mark this checkbox as true, opportunity record should get deleted.
I have created a checkbox on opportunity as 'IsDeleted'. Whenever user mark this checkbox as true, opportunity record should get deleted.
I am new to apex trigger. Can someone help me?
Thank you
- Shavi Dabgotra
- November 05, 2020
- Like
- 0
- Continue reading or reply