• Saurabh Bisht 8
  • NEWBIE
  • -1 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 7
    Replies
I was fetching parentId through vfPage before the spring 18 updates, and it was working fine. But i'm not getting it now.... I was using this code..
VF Page:
<apex:page standardController="Custom_Object">
<div id="lightningCmp"/>
<apex:includeLightning />

<script>
        var b_id = '{!$CurrentPage.parameters.CF00N5D000000TJgE_lkid}';
        console.log('@@@@@@'+b_id);
        $Lightning.use("c:TestApp", function() {
            $Lightning.createComponent(
                "c:TestCmp",
                {"parentId":b_id},
                "lightningCmp",
                function(cmp) {
                    console.log("##");
                    //console.log(cmp);
                });
            });
       
</script>
</apex:page>

TestCmp:
<aura:attribute name="parentId" type="String"/>

TestController:
var pid = cmp,get("v.parentId");
alert(pid);

Not getting pid ...
I have to override the standard new button in lightning.

Can anyone help???
I was fetching parentId through vfPage before the spring 18 updates, and it was working fine. But i'm not getting it now.... I was using this code..
VF Page:
<apex:page standardController="Custom_Object">
<div id="lightningCmp"/>
<apex:includeLightning />

<script>
        var b_id = '{!$CurrentPage.parameters.CF00N5D000000TJgE_lkid}';
        console.log('@@@@@@'+b_id);
        $Lightning.use("c:TestApp", function() {
            $Lightning.createComponent(
                "c:TestCmp",
                {"parentId":b_id},
                "lightningCmp",
                function(cmp) {
                    console.log("##");
                    //console.log(cmp);
                });
            });
       
</script>
</apex:page>

TestCmp:
<aura:attribute name="parentId" type="String"/>

TestController:
var pid = cmp,get("v.parentId");
alert(pid);

Not getting pid ...
I have to override the standard new button in lightning.

Can anyone help???
Hi,

I'm trying to recreate the standard Related Record component that we have available in lightning since it's not functioning properly for Person Accounts. The component should display information of the related Account when a user is working on a Case. I thought it would be a good idea to make a lightning:recordViewForm component and diplay all the fields as lightning:outputFields. 

Actually creating the layout shouldnt be a problem. I'm having trouble getting to the AccountId and placing it in the recordId attribute. My code so far:
<aura:component implements="flexipage:availableForAllPageTypes, force:hasRecordId" access="global">

    <lightning:recordViewForm recordId="???" objectApiName="Account">
        <div class="slds-box slds-theme_default">
            <lightning:outputField fieldName="Name" />
            <lightning:outputField fieldName="Phone"/>
            <lightning:outputField fieldName="PersonEmail" />
            <lightning:outputField fieldName="PersonBirthdate" />
        </div>
    </lightning:recordViewForm>
    
</aura:component>
I guess I should use force:recordData somehow but don't know enough about lightning components to get this to work. Help is much appriciated!

Thanks!

 
Trying to install managed beta package created in one dev account , into another dev account
This app can't be installed.
There are problems that prevent this package from being installed.
This app can't be installed
Hi

I want to encryption and decryption password field using apex and vfpage any ideas appreciate

Thanks,
Hareesh
  • April 28, 2014
  • Like
  • 0