- ram kiran verma gottumukkla
- NEWBIE
- 0 Points
- Member since 2014
-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
4Questions
-
2Replies
quickActionHandlerHelper.js failed to create component - forceChatter:lightningComponent
folowing is the lighting code :
<aura:component controller="ActivateAgreementController" implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" >
<aura:handler name="init" value="{!this}" action="{!c.validateandactivateagreement}"/>
<aura:attribute name="smsg" type="Boolean" default="false"/>
<aura:attribute name="emsg" type="Boolean" default="false"/>
<aura:attribute name="message" type="String"/>
<aura:if isTrue="{!v.emsg}">
<ui:message title="Error" severity="error" closable="false">
Owner Update failed. Please try again later or contact your System Admin.
</ui:message>
</aura:if>
<aura:if isTrue="{!v.smsg}">
<ui:message title="Confirmation" severity="confirm" closable="false">
<div>
ResultMessage:<ui:outputText value="{!v.message}"/>
</div>
Successfully updated Owner.
</ui:message>
</aura:if>
</aura:component>
({
validateandactivateagreement : function(component, event, helper) {
alert('start1');
var action = component.get("c.agreementactivate");
action.setParams({"id": component.get("v.recordId")});
action.setCallback(component,
function(response) {
var state = response.getReturnValue();
if (state === true){
$A.get('e.force:refreshView').fire();
component.set("v.smsg", true);
cmp.set("v.message", "hi");
} else {
component.set("v.emsg", true);
}
}
);
$A.enqueueAction(action);
}
})
global with sharing class ActivateAgreementController {
//Constructor
public ActivateAgreementController(ApexPages.StandardController controller) {
}
//Accepts the record id and sends a boolean status about the updation
@AuraEnabled @RemoteAction
global static Boolean agreementactivate(Id Agreementid){
try{
//Group oppQueue = [select Id from Group where Type = 'Queue' AND DeveloperName = 'Opportunity_Review_Queue'];
//Opportunity crec = [Select Id, OwnerId from Opportunity where Id=:oppid];
//crec.OwnerId = oppQueue.Id;
//update crec;
contract contract_record = [select Record_Type_Name__c,AccountId,telia_TC_Party__c,telia_Customer_contact_person__c,telia_Sales_person__c
,telia_Sales_responsible__c ,telia_Confidentiality_class__c,telia_Start_date__c ,telia_Signature_alternative__c
,CustomerSignedId ,CustomerSignedDate,telia_Customer_Signature_Place__c,Telia_Signed_By__c,Telia_Signed_Date__c,Signatories_Required__c from
contract where Id=:Agreementid];
return true;
}
catch(Exception e){
return false;
}
}
}
its failling from quick action in lighting .error message :
Unfortunately, there was a problem. Please try again. If the problem continues, get in touch with your administrator with the error ID shown here and any other related details.
Action failed: forceChatter:lightningComponent$controller$doInit [Error while creating content for lightning component quick action]
quickActionHandlerHelper.js failed to create component - forceChatter:lightningComponent
<aura:component controller="ActivateAgreementController" implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" >
<aura:handler name="init" value="{!this}" action="{!c.validateandactivateagreement}"/>
<aura:attribute name="smsg" type="Boolean" default="false"/>
<aura:attribute name="emsg" type="Boolean" default="false"/>
<aura:attribute name="message" type="String"/>
<aura:if isTrue="{!v.emsg}">
<ui:message title="Error" severity="error" closable="false">
Owner Update failed. Please try again later or contact your System Admin.
</ui:message>
</aura:if>
<aura:if isTrue="{!v.smsg}">
<ui:message title="Confirmation" severity="confirm" closable="false">
<div>
ResultMessage:<ui:outputText value="{!v.message}"/>
</div>
Successfully updated Owner.
</ui:message>
</aura:if>
</aura:component>
({
validateandactivateagreement : function(component, event, helper) {
alert('start1');
var action = component.get("c.agreementactivate");
action.setParams({"id": component.get("v.recordId")});
action.setCallback(component,
function(response) {
var state = response.getReturnValue();
if (state === true){
$A.get('e.force:refreshView').fire();
component.set("v.smsg", true);
cmp.set("v.message", "hi");
} else {
component.set("v.emsg", true);
}
}
);
$A.enqueueAction(action);
}
})
global with sharing class ActivateAgreementController {
//Constructor
public ActivateAgreementController(ApexPages.StandardController controller) {
}
//Accepts the record id and sends a boolean status about the updation
@AuraEnabled @RemoteAction
global static Boolean agreementactivate(Id Agreementid){
try{
//Group oppQueue = [select Id from Group where Type = 'Queue' AND DeveloperName = 'Opportunity_Review_Queue'];
//Opportunity crec = [Select Id, OwnerId from Opportunity where Id=:oppid];
//crec.OwnerId = oppQueue.Id;
//update crec;
contract contract_record = [select Record_Type_Name__c,AccountId,telia_TC_Party__c,telia_Customer_contact_person__c,telia_Sales_person__c
,telia_Sales_responsible__c ,telia_Confidentiality_class__c,telia_Start_date__c ,telia_Signature_alternative__c
,CustomerSignedId ,CustomerSignedDate,telia_Customer_Signature_Place__c,Telia_Signed_By__c,Telia_Signed_Date__c,Signatories_Required__c from
contract where Id=:Agreementid];
return true;
}
catch(Exception e){
return false;
}
}
}
its failling from quick action in lighting .error message :
Unfortunately, there was a problem. Please try again. If the problem continues, get in touch with your administrator with the error ID shown here and any other related details.
Action failed: forceChatter:lightningComponent$controller$doInit [Error while creating content for lightning component quick action]
quickActionHandlerHelper.js failed to create component - forceChatter:lightningComponent
-
- ram kiran verma gottumukkla
- August 30, 2018
- Like
- 0
- Continue reading or reply
I want to remove the white header space in the below visual force page.Can you please help me ?
<!--<apex:page title="Data Call Response" TabStyle="DC_Survey__c"
cache="false" showChat="false" showHeader="false" sidebar="false"
controller="Creative_REE_DC_ResponceWizard_Contr">-->
<apex:page standardController="Solution__c"
cache="false" showChat="false" showHeader="false" sidebar="true">
<apex:form style="overflow:auto;width:1200px;height:250px" >
<script type="text/javascript">
var __sfdcSessionId = '{!GETSESSIONID()}';
</script>
<div class="bs">
<!-- <apex:commandButton value="refresh" onclick="window.top.location='/{!Solution__c.id}'" /> -->
<div class="attachments">
<apex:outputPanel id="AttachmentContainer" >
<div class="panel" style="background-color: #159d82; min-height: 5px; border-radius: 0px;">
<div class="panel-heading">
<span style="color:#fff;">
<i class="glyphicon glyphicon-folder-open"></i>
<h2 style="font-size: 12pt;font-weight: 300;"> Supporting Documents - Please drag and drop files under this section to Attach </h2>
</span>
</div>
</div>
<div style="padding-top: 5px;padding-left: 40px; padding-right: 40px; min-height: 5px">
<c:DirectFileUploader_ver2 parentOfAttach="{!Solution__c.id}" renderDeleteBtn="False"/>
</div>
</apex:outputPanel>
</div>
</div>
<br/>
</apex:form>
</apex:page>
cache="false" showChat="false" showHeader="false" sidebar="false"
controller="Creative_REE_DC_ResponceWizard_Contr">-->
<apex:page standardController="Solution__c"
cache="false" showChat="false" showHeader="false" sidebar="true">
<apex:form style="overflow:auto;width:1200px;height:250px" >
<script type="text/javascript">
var __sfdcSessionId = '{!GETSESSIONID()}';
</script>
<div class="bs">
<!-- <apex:commandButton value="refresh" onclick="window.top.location='/{!Solution__c.id}'" /> -->
<div class="attachments">
<apex:outputPanel id="AttachmentContainer" >
<div class="panel" style="background-color: #159d82; min-height: 5px; border-radius: 0px;">
<div class="panel-heading">
<span style="color:#fff;">
<i class="glyphicon glyphicon-folder-open"></i>
<h2 style="font-size: 12pt;font-weight: 300;"> Supporting Documents - Please drag and drop files under this section to Attach </h2>
</span>
</div>
</div>
<div style="padding-top: 5px;padding-left: 40px; padding-right: 40px; min-height: 5px">
<c:DirectFileUploader_ver2 parentOfAttach="{!Solution__c.id}" renderDeleteBtn="False"/>
</div>
</apex:outputPanel>
</div>
</div>
<br/>
</apex:form>
</apex:page>
-
- ram kiran verma gottumukkla
- October 06, 2016
- Like
- 0
- Continue reading or reply
Dynamic Field Binding in Salesforce Lightning Experience.has SFDC figured out dynamic components in lighting
I might have clients migrating to Lighting experience soon.One of the projects has Dynamic components and dynamic binding in salesforce classic(coded in visualforce and apex) .I am not sure how to transition the dynamic related visualforce pages into lighting components .
New to dynamic components.Please refer the documentation below :
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_dynamic_vf_components_implementation.htm
New to dynamic components.Please refer the documentation below :
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_dynamic_vf_components_implementation.htm
-
- ram kiran verma gottumukkla
- September 07, 2016
- Like
- 0
- Continue reading or reply
email templates
I prepared a workflow rule for lead object.The criteria is country = usa.I want have email templates for every country.I may have to create template for every country.Please do suggest an alternative
-
- ram kiran verma gottumukkla
- January 29, 2015
- Like
- 0
- Continue reading or reply
Rendered problem
Hi,
I'm having a student page with status field(drop down)- active , inactive , onhold.
If the status is inactive or onhold it must display activate student button
<apex:commandButton oncomplete="j$('#succToastMsg').text('Student activated successfully, please continue with subjects');j$('.slds-notify_container').show();j$('#stuActModal').addClass('slds-fade-in-open');j$('.slds-backdrop').addClass('slds-backdrop--open');" value="Activate Student" action="{!acticeStudent}" rendered="{(!Student__c.Status__c == 'On Hold') || (!Student__c.Status__c == 'Inactive') && (!inactiveConfirmation) && (!doPaymentConfirmation)}" rerender="op,htt,contSubjsOP" status="status"/>
I written above line but its not working.
If the changed the rerendered to rendered="{!Student__c.Status__c == 'Inactive' && !inactiveConfirmation && !doPaymentConfirmation}" then its working for inactive.
It must also work for onhold status. Please help me.
I'm having a student page with status field(drop down)- active , inactive , onhold.
If the status is inactive or onhold it must display activate student button
<apex:commandButton oncomplete="j$('#succToastMsg').text('Student activated successfully, please continue with subjects');j$('.slds-notify_container').show();j$('#stuActModal').addClass('slds-fade-in-open');j$('.slds-backdrop').addClass('slds-backdrop--open');" value="Activate Student" action="{!acticeStudent}" rendered="{(!Student__c.Status__c == 'On Hold') || (!Student__c.Status__c == 'Inactive') && (!inactiveConfirmation) && (!doPaymentConfirmation)}" rerender="op,htt,contSubjsOP" status="status"/>
I written above line but its not working.
If the changed the rerendered to rendered="{!Student__c.Status__c == 'Inactive' && !inactiveConfirmation && !doPaymentConfirmation}" then its working for inactive.
It must also work for onhold status. Please help me.
- Saikiran Kolli
- October 06, 2016
- Like
- 0
- Continue reading or reply
Formula field for status based on 3 criteria
Can somebody help with a formula field called "status" as follows
if field "requested" is ticked, then "status" equals "ongoing"
if field "date approved" contains a date, then "status" equals "approved"
if field "date rejected" contains a date, then the "status" equals "rejected"
many thanks!
if field "requested" is ticked, then "status" equals "ongoing"
if field "date approved" contains a date, then "status" equals "approved"
if field "date rejected" contains a date, then the "status" equals "rejected"
many thanks!
- Claire Nicolay
- October 06, 2016
- Like
- 0
- Continue reading or reply