• sfdc fish
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 1
    Replies
Hello...
Suprisingly am seeing 'Description' field on layout as shown below even that field is not included on the compact layout. Can any one tell why it is behaving wired?
User-added image
Am trying to create a report with cumulative of past and present year in lightning as shown in below.But when am trying same report in lightning its is not comming.Please can any one will figure it out whats wrong here?
Referenced Image

Thanks In Advance
AM trying to embed report in Aura component using iframes ,thing is am getting report with lightning header.I need to remove header as we do in classic by using isdtp,is there any way to get same in lightning?
Here below is the component code which I done.
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" >           
<div style="overflow:hidden;">
 <iframe id="reportFrame"  name="test" src="/one/one.app?source=aloha#/sObject/00OP0000000XXXXXXX/view?a:t=149251140448?isdtp=lt" height="800px" width="100%" scrolling="yes" style="position:relative;"/>
</div>
</aura:component>
Thanks in advance.
 
Can any one help me on this....
In classic  while passing object record id in the URL will get the field values on the page ,how can we achieve this in the lightning.
Here am tryng same but unable to get field values and where can I pass the id in the lightning,below is my component and app.



<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes" access="global" >
    <aura:attribute name="expense" type="expense__c"/>
<p>Amount:<ui:outputCurrency Value="{!v.expense.Amount__c}"/></p>
<p>Client:<ui:outputtext value="{!v.expense.Client__c}"/> </p>
<p>Date:<ui:outputdate value="{!v.expense.Date__c}"/></p>
<p>Reimbursed?: <ui:outputcheckbox value="{!v.expense.Reimbursed__c}"/></p>
    <ui:outputText class="form-control" aura:id="recid" value="{!v.recordId}" />
</aura:component>


<aura:application >
  
    <c:expense/>
        
</aura:application>


Thanks in advance.
Am quite new to lightning and trying to sumup two numbers so far i have created component for suming numbers  in one component and another compnennt for display the result.
But getting error as "This page has an error. You might just need to refresh it. Action failed: c$UserInput$controller$Pressme [Cannot read property 'setParams' of null]  Failing descriptor: {c$UserInput$controller$Pressme}"

Here is my code:
 UserInput.cmp
 <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes" access="global" >
<aura:registerEvent name="loadMyEvent" type="c:Result"/>
    <aura:attribute name="input1" type="integer"/>
<p>hello from component1</p>
<br/>
<ui:inputnumber aura:id="input1" label="first value" required="true"/>
<ui:inputnumber aura:id="input2" label="secondvalue" required="true"/>
<ui:button label="sum" press="{!c.Pressme}"/>
<br/>
</aura:component>

UserInputController.js

({
Pressme:function(component,event,helper){
    alert('test');
var get_num1=component.find("input1").get("v.value");
    alert('test1=='+get_num1);
var get_num2=component.find("input2").get("v.value");
    alert('test2=='+ get_num2);
var res=parseInt(get_num1)+parseInt(get_num2);
    alert('result=='+ res);
//var evt=$A.get("e.c:Result");
    component.getEvent("Result").setParams({"pass_result":res}).fire();
//evt.setparam({"pass_result": 5});
    //evt.fire();
}
})


DisplayResult.cmp

<aura:component >
<aura:attribute name="Get_Result" type="Integer"/>
<aura:handler event="c:Result" action="{!c.getvaluefromApplicationEvent}"/>
The Result is {!v.Get_Result}
</aura:component>

DisplayResultcontroller.js

({
getvaluefromApplicationEvent:function(cmp,event){
var showresultvalue= event.getparam("pass_result");
cmp.set("v.Get_Result",showResultValue);
}
})

Result.evt

<aura:event type="application" description="Event template">
<aura:attribute name="pass_result" type="string"/>
</aura:event>

Thanks in advance...
Can any one help me on this....
In classic  while passing object record id in the URL will get the field values on the page ,how can we achieve this in the lightning.
Here am tryng same but unable to get field values and where can I pass the id in the lightning,below is my component and app.



<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes" access="global" >
    <aura:attribute name="expense" type="expense__c"/>
<p>Amount:<ui:outputCurrency Value="{!v.expense.Amount__c}"/></p>
<p>Client:<ui:outputtext value="{!v.expense.Client__c}"/> </p>
<p>Date:<ui:outputdate value="{!v.expense.Date__c}"/></p>
<p>Reimbursed?: <ui:outputcheckbox value="{!v.expense.Reimbursed__c}"/></p>
    <ui:outputText class="form-control" aura:id="recid" value="{!v.recordId}" />
</aura:component>


<aura:application >
  
    <c:expense/>
        
</aura:application>


Thanks in advance.
Am quite new to lightning and trying to sumup two numbers so far i have created component for suming numbers  in one component and another compnennt for display the result.
But getting error as "This page has an error. You might just need to refresh it. Action failed: c$UserInput$controller$Pressme [Cannot read property 'setParams' of null]  Failing descriptor: {c$UserInput$controller$Pressme}"

Here is my code:
 UserInput.cmp
 <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes" access="global" >
<aura:registerEvent name="loadMyEvent" type="c:Result"/>
    <aura:attribute name="input1" type="integer"/>
<p>hello from component1</p>
<br/>
<ui:inputnumber aura:id="input1" label="first value" required="true"/>
<ui:inputnumber aura:id="input2" label="secondvalue" required="true"/>
<ui:button label="sum" press="{!c.Pressme}"/>
<br/>
</aura:component>

UserInputController.js

({
Pressme:function(component,event,helper){
    alert('test');
var get_num1=component.find("input1").get("v.value");
    alert('test1=='+get_num1);
var get_num2=component.find("input2").get("v.value");
    alert('test2=='+ get_num2);
var res=parseInt(get_num1)+parseInt(get_num2);
    alert('result=='+ res);
//var evt=$A.get("e.c:Result");
    component.getEvent("Result").setParams({"pass_result":res}).fire();
//evt.setparam({"pass_result": 5});
    //evt.fire();
}
})


DisplayResult.cmp

<aura:component >
<aura:attribute name="Get_Result" type="Integer"/>
<aura:handler event="c:Result" action="{!c.getvaluefromApplicationEvent}"/>
The Result is {!v.Get_Result}
</aura:component>

DisplayResultcontroller.js

({
getvaluefromApplicationEvent:function(cmp,event){
var showresultvalue= event.getparam("pass_result");
cmp.set("v.Get_Result",showResultValue);
}
})

Result.evt

<aura:event type="application" description="Event template">
<aura:attribute name="pass_result" type="string"/>
</aura:event>

Thanks in advance...