Questions tagged [visualforce-component]

Visualforce components encapsulate a common design pattern and can be reused several times in one or more Visualforce pages. Salesforce provides a library of standard, pre-built components, such as <apex:relatedList> and <apex:dataTable>, that can be used to develop Visualforce pages. In addition, you can build your own custom components to augment this library.

Filter by
Sorted by
Tagged with
1
vote
0answers
43 views

PDF not generated in printable view

Below is my controller public class MyController { public Letter__C letter{get;set;} public String isPDF { get; set; } public Boolean bolPrintableView {get;set;} public MyController(){ ...
0
votes
1answer
170 views

Unable to get value of ID from Lightning controller

Below is my cmp <aura:component implements="force:lightningQuickAction" access="global"> <iframe src="sforce.one.navigateToURL('/apex/Letter')" width="100%" height="500px;" frameBorder="0"/&...
0
votes
1answer
55 views

Unable to save my CMP

Below is my lightning cmp <aura:component implements="force:lightningQuickAction" access="global"> <iframe src="sforce.one.navigateToURL('/apex/Letter?Id={!Letter__c.Id}')" width="100%" ...
0
votes
1answer
862 views

Lightning component button not working

Below is my lightning component which calls a VF Page <aura:component implements="force:lightningQuickAction" > <!-- attribute to accept Visualforce page's javascript method --> &...
0
votes
0answers
2k views

Calling a VF page in a lightning component

I have a VF page which renders a PDF with a custom controller in it for my custom object. For the same, I have written a onclick JS button which is displayed in my classic view. window.open("apex/...
2
votes
1answer
136 views

Pass EmailTemplate relatedTo wholesale to a Visualforce Component?

Let's say I have a Visualforce Component similar to below: <apex:component access="global"> <apex:attribute name="relatedTo" type="MyObject__c" /> </apex:component> Now if I ...
1
vote
1answer
486 views

DML When Component is Loaded

Preface: I understand that DML is not allowed in getters/setters or constructors. The normal workaround to performing DML on page load is to use the action attribute on the page; however, that's not ...
0
votes
3answers
163 views

Salesforce for building real world applications [closed]

Is there any resource available for creating or building a real world application in salesforce which uses APEX and Visualforce SLDS components. Or can I build such type of apps. Can you my friends ...
0
votes
0answers
43 views

Lightning commandButton calling 2 methods

So I would like to have a button call a method and then based on its result call another method. This button will be in lightning and due to some constraints, it needs to be done in visualforce i.e ...
7
votes
2answers
787 views

How to build better UI for native Salesforce.com desktop apps (no mobile)

Everybody is talking about Lightning and mobile but I saw not a single webinar and did not read a single word how Lightning and all those new, complex and not yet ready for production frameworks will ...
0
votes
1answer
120 views

How to start up with Lightning Enabled VF page or Lightning components [duplicate]

I don't have any experience in Lightning so far, currently we have a Challenge to Develop a new VF page to replace a page in Console. It seems to be Lightning type of page. Please find the image below....
0
votes
2answers
86 views

Standard component [closed]

Can we extend a class in Standard Component? or Can we get the code of a Standard Component? If No, then please provide a link where salesforce says that we cannot customise a standard Component. My ...
-1
votes
1answer
155 views

How to show Knowledge article list History in Search Bar [closed]

I have created list of Knowledge articles in articles management standard object. i need to show that articles list in search bar when i am searching for related questions/data that time i need to ...
0
votes
1answer
223 views

How to call a jquery function from an autocomplete search box which is specified in VF Component

I'm having an auto-complete search box which lists the product details on entering the string. I have specified this in VF component and referring the same in my vf page. Now I want to hide one text ...
1
vote
2answers
772 views

Visualforce Page and Custom Component same record field update

I've created a visualforce page and custom component that is referencing the same record, in which I've passed the record from the standardController to the custom component via apex:atttribte. I ...
0
votes
0answers
135 views

How to process data synchronously or wait until callback in visualforce remote action?

I'm trying to get data from remote action from a mouseover and display the popup. I have tried below code to pass the data in bootstrap tooltip/popovers. <script> function showPopup(recId,...
0
votes
1answer
54 views

Associating master detail relationship to Visualforce component

Resubmitting to make this clearer. I have a parent object Claims_Client_Risk_Assessment__c (CCRA) that calls a Visualforce component page using the object CCRA_LOB_NonStdAuto__c (LOB_NonStdAuto.) I'm ...
2
votes
0answers
598 views

Failed to initialize Open CTI. Ensure that it is loaded from the right frame with correct URL parameters

I'm trying to use an existing web page that's using Open CTI to emulate Softphone screen popping and using Apex together with Lightning. I'm trying to do this by having it inside a Utiliy Bar ...
0
votes
0answers
88 views

Attachments to a custom Object - DmlExecutionException

TestCompone.page <apex:page standardController="WebformData__c" extensions="TestCompon"> <apex:form > <apex:outputLabel >Pick One</apex:outputLabel><br/> <apex:...
0
votes
1answer
2k views

system.assertException - assertion failed [closed]

I'm getting the below error when i deploy the apex class, how can I solve it: RELVSRenewalControllerTest testLoadChildDataCurrent System.AssertException: Assertion Failed: Expected: 4, ...
0
votes
2answers
94 views

Trying to add Required mark without using required = true for input fields with pageblocksection inside outputpanel

<apex:outputpanel styleClass="requiredInput" d="Account_Info_section" layout="block"> <apex:pageblockSection title="Account Info (All Fields are Required)" rendered="{!NOT(...
0
votes
1answer
467 views

Error method has a cyclomatic complexity and nested if error

Please find the below trigger handler which is not passing PMD rules. Error 1."Deeply nested if..then statements are hard to read" for following class: Public Class LeadTriggerHandler { //Set ...
4
votes
1answer
5k views

Visualforce: Dynamically ReRender a row within <apex:repeat> by passing $Component through controller

I have a typical form with <apex:repeat> for some fields. The <apex:inputText> elements have an onChange attribute that references a script that then calls an <apex:actionFunction>, ...
-1
votes
1answer
32 views

How a component controller works

I am trying to access fname which is set to a value to display in the component . but fname is null. Please see the below code Page: <apex:page > <h1>Congratulations Page</h1&...
0
votes
1answer
46 views

styles are changing in <li> , If I put <li> in outputpanel

I am looking to display labels based on the condition for that I am trying to use Outputpanel. But, If I use Outputpanel "li" tag styles are changing and Underline is coming on labels when we put ...
1
vote
1answer
147 views

VF Email Template throws List has no Rows to sObject when invoked via VF Component

I'm facing an issue with VF Email Template. The error is not very Clear : "Error Error occurred trying to load the template for preview: List has no rows for assignment to SObject. Please ...
2
votes
1answer
445 views
0
votes
0answers
66 views

Link Salesforce Canvas App

We have canvas app in our managed packaged. Now we want to link canvas app directly from Contact object component. How do we link . Also can we provide additional parameters to canvas app from this ...
2
votes
1answer
256 views

Requests from One PHP form to two Salesforce orgs

We need to create a PHP form that will simultaneously send data to two Salesforce orgs, and update Accounts, Contacts, and some custom objects. Is it possible? What will be the best approach to ...
0
votes
0answers
31 views

Can´t see fields to edit in apex:inputFields

I have problem with writing values to custom object in VF controller whitch i include to apex:page. I can´t see box to write values in my apex:form. I have apex:inputfield, but i can only see it´s ...
1
vote
1answer
65 views

Manual SingleEmailMessage change to template

I have a process using Apex and Visualforce to create a custom email with a pdf attachment and a field to enter body text. It is based off a custom object and the email addresses To, CC, bCC, are all ...
1
vote
1answer
72 views

How to add CaseComments, Attachments, Team Members and Histories as a list related to the RelatedList tag in a visualforce page for Case [duplicate]

as the question posed I would like to know how to add all these related lists on the case visualforce page. I have added others and they work perfect, but specifically with these (CaseComments, ...
0
votes
0answers
107 views

Using apex:tab and executing JS on the embedded page (ChartJS)

I have some VF's which there they have their own jS being executed. When I had embed these pages as apex:tabs and tried navigate through them the jS apparently aren't being executed. Even when I ...
0
votes
1answer
265 views

Visualforce Error - Select components should have at least one child component of type selectOption or selectOptions

<apex:page > <apex:sectionHeader title="Student" subtitle="New Student" help="/apex/page"/> <apex:form > <apex:pageBlock title="Student"> <apex:...
0
votes
0answers
255 views

repeat a component

Is there a way i can repeat a component, something like: <Apex:repeat value="{!object}" var="tr"> <c:component componentattr={!object}/> <apex:outputText value="{!tr}"/><br/&...
4
votes
0answers
133 views

Dynamically injecting Visualforce markup into component

I have an issue where I am trying to render a component on a VF page where I don't know if the component exists in the org or not until run time (I am trying to use a dynamic component on the front ...
1
vote
1answer
202 views

Page message show in apex page

I have a VF Page where Add button helps to add rows. If an input field value of first row matches with input field of the next or any later row's field value, system will show page message only on the ...
0
votes
1answer
606 views

How to avoid dynamic id generation inside apex repeat

i'm trying to get the value of radio button placed inside apex repeat. But I could not get the value. Since it is dynamically generating the Ids. I know we can the $ component to get the id,But I ...
0
votes
1answer
269 views

passing javascript variable from visual force component to apex controller

how to pass jquery variable from visual force component to apex controller? The requirement is ,need to validate by checking the storage available in salesforce while uploading files , if the files ...
0
votes
2answers
94 views

Migrate from dev org to partner editon [closed]

How to migrate the triggers and classes and components created in developer edition to the partner org so we can make it into to package. The objective is to make it into a unmanaged package..please ...
3
votes
0answers
59 views

Change values within the component, that are assigned to component attributes

I can't change controller variables (myNumber) within the component, that are assigned to apex:attributes. <apex:component controller="MyCtrl"> <apex:attribute name="number" type="...
1
vote
0answers
42 views

how to pull a managed VisualForce component onto my Visual Force Page

I am replacing a managed custom VisualForce page that is step 3 of a wizard. On the custom VisualForce page I created to replace the original, I am able to pull in the wizard component, so, the steps ...
2
votes
1answer
1k views

Passing a map to an apex:attribute

I have a component <apex:component> <apex:attribute name="ssMap" type="Map"/> </apex:component> and I have a page which consumes the component <apex:page controller="...
0
votes
0answers
165 views

Issue with rerender inside <apex:dynamicComponent>

I'm having trouble re-rendering elements inside a dynamic component, for example if we have these VF pages/controllers/components" Page1.page <apex:page controller="Page1"> <apex:...
1
vote
1answer
1k views

How do I send parameters through to a component on a Visualforce email template?

I'm trying to pass an object id to my component on my visualforce template but when it sends the mail it seems that it does not get the object id. My Template: <messaging:emailTemplate subject="...
1
vote
2answers
2k views

Test Custom Controller attached to VF Component

I am trying to write a apex test class for the following Custom Controller and am just having a tough time getting it covered over 37%. Please Help! See my code below. Thanks in advance! I am ...
3
votes
2answers
715 views

Controller method doesn't load with custom component and email template

I develop an email template which calls a Visualforce component with a custom controller (controller of the custom component). I give an opportunity Id to my custom component and I would like load ...
1
vote
1answer
517 views

salesforce how to change a component from non-global to global

I want to look at and modify the code of component in salesforce. But when I open that component it is showing this message "Component is not global" and I cannot view the code as nothing is ...
3
votes
1answer
4k views

Component <apex:input> in 'dlinfo' requires HTML docType version 5.0 or higher

I have used apex:input tag with the Type attribute set to Date in a VF page. Also, I have used docType="html-5.0" attribute in apex:page so that I don't get any error. But, still I am getting an ...
1
vote
0answers
39 views

Putting a form in a component, problems with submitting form

I have a component which I am trying to have a form submit. The form is handled by a managed controller in a managed package (which is a third party's). The component does not otherwise have code ...

1
3 4
5
6 7
21