• VJ_SFDC
  • NEWBIE
  • 30 Points
  • Member since 2017

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 7
    Replies
I have a formula field and there I am using this HYPERLINK("/apex/RelatedContentVFPage?Id="+Content_ID__c, 'Test') basically Content_ID__c means i am passing Content document ID.

the code I have written with in the visual force page:
RelatedContentVFPage
 
<apex:page >
    <apex:includeLightning /> <div style="width:600px;height:450px;" id="ChartContainer" />
    <script>
    $Lightning.use("c:LC_RelatedContentApp", function() {
        $Lightning.createComponent("c:LC_PreviewRelatedContent",
                                   {
// Pass params to the lightning component here
                                   },
                                   "ChartContainer",
                                   function(cmp) {
                                       console.log('Component Created');
                                   });
    });
    </script>
</apex:page>
LC_RelatedContentApp
 
<aura:application access="GLOBAL" extends="ltng:outApp">
    <aura:dependency resource="c:LC_PreviewRelatedContent"/>
</aura:application>

LC_PreviewRelatedContent
 
<aura:component  implements="flexipage:availableForAllPageTypes">
    <aura:handler name="init" value="{!this}" action="{!c.goToCohesityAssets}"/>   
    TEst Component
</aura:component>
LC_PreviewRelatedContentController
({
   
    goToCohesityAssets:function(component, event, helper) { 
	$A.get('e.lightning:openFiles').fire({
            recordIds: ["0691g000000CiLJ"]
        });
	},
})

When a user clicks on salesforce formula field in lightning whatever the hard coded content document i placed in the controller I wanted to display that as PDF. It is working directly if i use in salesforce lightning component but it is not working if i call lightning component from visualforce page.
The error I see it now is below.

User-added image



 
Lead Assignment is not working if portal user is creating.


Added dml layout options and also setup layout properties. any guess.
Is there any salesforce chatter tag to upload files into salesforce record and I tried <apex:input file and the limitation is 10mb but upto 2gb i have to allow user to load file into salesforce record and chatter feed is there but the problem is , i have to hide post comment option so is there any specific tag to upload only files.

if I use chatter feed the user interface looksUser-added image like this.

 
Any Idea about this in salesforce lighting and I got this link and I could see something horizontal but no syntax for vertical and I found only one and it is not allowing more that one value

https://www.lightningdesignsystem.com/components/slider/

Attached is the progress bar, I am trying to implement. In case if lighting doesn't support similar progress bar do I need to use jquery animation or need to develop an image.

User-added image
Rerender issue in lighting component after deleting iterator is not changing.

Display checkbox for the iterator and deleting the record successfully from controller after that querying data back again and trying to refresh iterator, How do i refresh iterator list after deleting data from apex controller.
deleteSelectedHelper: function(component, event, deleteRecordsIds) {
        alert('deleteRecordsIds==='+deleteRecordsIds);
        var action = component.get('c.deleteRecords');
        action.setParams({
            "lstRecordId": deleteRecordsIds,"AccountId" : component.get("v.AccountId")
        });
        action.setCallback(this, function(response) {
           //store state of response
           var state = response.getState();
           if (state === "SUCCESS") {
                console.log(state);
               //alert(response.getReturnValue());
               //component.set('v.relatedContactsRoles', response.getReturnValue());
                if (response.getReturnValue() != '') {
                    //alert('inside of response ');
                    alert(response.getReturnValue());
                     component.set('v.relatedContactsRoles', '');
                    component.set('v.relatedContactsRoles', response.getReturnValue());
                   // alert(state);
                    
                   // alert('The following error has occurred. while Delete record-->' + response.getReturnValue());
                }else {
                    console.log('check it--> delete successful');
                }
                //this.testonLoad(component, event);
           }
          });
          $A.enqueueAction(action);
     },

This is the line using to reset records after deleting.

component.set('v.relatedContactsRoles', response.getReturnValue());


 
I was able to display Account and Contacts in Salesforce lighting component but Content version records were not able to display in lightning component but controller is fetching records when i check log.

Is it limitation that we can't display Content version records in lighting component?
  • September 22, 2017
  • Like
  • 0
Lead Assignment is not working if portal user is creating.


Added dml layout options and also setup layout properties. any guess.
Rerender issue in lighting component after deleting iterator is not changing.

Display checkbox for the iterator and deleting the record successfully from controller after that querying data back again and trying to refresh iterator, How do i refresh iterator list after deleting data from apex controller.
deleteSelectedHelper: function(component, event, deleteRecordsIds) {
        alert('deleteRecordsIds==='+deleteRecordsIds);
        var action = component.get('c.deleteRecords');
        action.setParams({
            "lstRecordId": deleteRecordsIds,"AccountId" : component.get("v.AccountId")
        });
        action.setCallback(this, function(response) {
           //store state of response
           var state = response.getState();
           if (state === "SUCCESS") {
                console.log(state);
               //alert(response.getReturnValue());
               //component.set('v.relatedContactsRoles', response.getReturnValue());
                if (response.getReturnValue() != '') {
                    //alert('inside of response ');
                    alert(response.getReturnValue());
                     component.set('v.relatedContactsRoles', '');
                    component.set('v.relatedContactsRoles', response.getReturnValue());
                   // alert(state);
                    
                   // alert('The following error has occurred. while Delete record-->' + response.getReturnValue());
                }else {
                    console.log('check it--> delete successful');
                }
                //this.testonLoad(component, event);
           }
          });
          $A.enqueueAction(action);
     },

This is the line using to reset records after deleting.

component.set('v.relatedContactsRoles', response.getReturnValue());


 

Hi together, 

i want to redirect the edit button of a custom object to the record detail page. My idea was to create a VF page that automatically redirects to record detail page, when clicking on edit. Can someone of you help me out of that with a little code snippet? 

That would be great.
Thanks and best regards

I am trying to create trigger on the Vote object, but Vote does not show up in the picklist when I try to create the trigger.  Is it not possible to trigger on Vote?
when i write a query with limit 49997.it shows the Number of query rows: 119997 out of 50000 ******* CLOSE TO LIMIT.
I want to know how it works.
 
  • September 06, 2017
  • Like
  • 1