Questions tagged [dynamic-vf-component]
The dynamic-vf-component tag has no usage guidance.
56
questions
1
vote
1
answer
105
views
How to dynamically change a field to readOnly
I am trying to make the apex:inputField of the records that meets a certain criteria readOnly when the condition is met.
<script>
function isTooLate(status) {
console.log(...
0
votes
1
answer
382
views
how to add Space between 2 rows using panelGrid in visualforce page
I am using panelGrid for this UI.
Please fetch the code and Ui below and lt me know where I can add the css in order to increase the spaces between the rows.
I have used rowclasses attribute in the ...
0
votes
2
answers
669
views
How can I change the background color of the column header not the text of the header facet in an apex:datatable
I am trying below code in my 'apex:dataTable'.
<apex:dataTable value="{! Opportunity.Contract }" var="contract" styleClass="productsTable">
...
0
votes
0
answers
309
views
rich text not formatted on vf pdf properly
I have created a vf page pdf and use a custom RTF field but on PDF it is not rendering properly
i tried outputText and OutputField tag but not able to fix the issue.
on Detail page Image is below
On ...
1
vote
1
answer
946
views
"Unsupported attribute ..." error when deploying VF Email template with ANT
I spent an entire day trying to figure out why I got this error in my deployment but could not figure out why. So I hope someone here could shed some light on this.
This is the error I got. I don't ...
0
votes
1
answer
41
views
Inner class property not seen in visualforce dynamic component
Apex Class
public class outterClass(){
// set properties
public List<innerClass> inners {get; set;}
outterClass(){
// set inners list values
inners = new public List&...
1
vote
0
answers
51
views
Getting multiple lineseries component VF charting & dynamic VF
I have a requirement where I am asked to have multiple lineseries. The number of line series components is variable.
I tried Dynamic VF components with just one line series and this is the error
...
1
vote
1
answer
151
views
List view button without standard controller
Is it possible to create a list view button without a standard controller?
My requirement is, I want to create a List view button for any object. In the current scenario, I have to write the same ...
2
votes
1
answer
256
views
Problem with Component.Apex.PageBlockTable
I Need create a Dynamic Component in Controller Class, have following code:
public class CtrlPageBlockTable {
public List<Account> lstAccount { get; set; }
public CtrlPageBlockTable(){
...
0
votes
0
answers
163
views
dynamic pageblockbuttons not showing on bottom location
i'm trying to show pageblock button in bottom side but its not showing on bottom only showing in top location
how to set bottom
Component.Apex.pageBlockButtons pbButtons = new Component.Apex....
0
votes
1
answer
136
views
Issue with passing different value as ComponentValue in apex:dynamic Component inside apex:repeat tag [duplicate]
I am facing an issue. When i am putting <apex:dynamicComponent id="dynamicComp" componentValue="{!clauseList.dynamicCompName}" invokeAfterAction="true"> inside <apex:repeat> tag only the ...
1
vote
1
answer
195
views
How to call java script function from dynamic component in apex
I am getting below error :
Value assigned to expression field is not valid for <apex:commandButton oncomplete>
I am calling javascript function on 'oncomplete'.
Component.Apex....
1
vote
0
answers
146
views
https://anysalesforceOrgurl/apexpages/apexcomponents.apexp
When you go to /apexpages/apexcomponents.apexp from your org instance, it redirects you to a page which shows all visualforce components of your org with component details and usage examples including ...
5
votes
2
answers
609
views
apex:component rendered using apex:dynamicComponent - how to call controller method?
bit of an odd one...
I have a VF page:
<apex:page showHeader="true" sidebar="true" controller="myController" >
<apex:dynamicComponent componentValue="{!myComponent}" />
&...
0
votes
0
answers
37
views
insufficient previlage Error showing when insert record from modal(popup) Dynamicly
public SObject SobjectNewRecord{get; set;}
public void newRecord(){
Map<String, Schema.SObjectType> gd = Schema.getGlobalDescribe();
Schema.SobjectType oType = gd.get(...
0
votes
1
answer
120
views
How can we implement apex:param using dynamic visualforce components?
Im building a visualforce page using apex:dynamicComponent tag and adding fields from apex controller.
Component.apex.inputfield roofShadingPreset = new Component.Apex.inputfield();
...
6
votes
1
answer
27k
views
What is the best way to add comment in Visualforce Code
I am working on a existing VF code and added a comment like this, it appears on the page.
// Bla Bla Bla
I changed the comment to this, but receive the below error.
<! Bla Bla Bla>
"The ...
3
votes
2
answers
4k
views
Dynamically display Field Set based on a field
I have created a VF page that calls an Opp field set. What the page does is it enables users to pick a Stage to indicate that the deal has been lost/rejected and supply the appropriate reason. The ...
3
votes
2
answers
328
views
Data Driven Visualforce Page
I am designing a custom input picklist form that will be data-driven.Based on picklist value selected next question should show up with the picklist options.Like wise it might end up having 10-15 ...
0
votes
1
answer
756
views
Link to Report on VF Template
Is there a way to add an Link to a particular report onto the visualforce email template.
example:<apex:outputLink value="{!LEFT($CurrentPage.URL,FIND('/',$CurrentPage.URL,9))+'/'report.id}">...
0
votes
1
answer
841
views
How to get the server name dynamically
I'm using below line of code in the vf component,this is a part of repeat tag.
<td class="center"><a href="https://cs14.salesforce.com/{!o.id}/e?retURL=%2F{!o.id}">Edit</a></td&...
1
vote
1
answer
460
views
Outputting spaces with dynamic VisualForce component
I am having trouble getting my dynamic VF Component to space out the buttons for navigation on my page.
As you can see in the image below, it correctly outputs spaces between the Previous and Next ...
1
vote
1
answer
503
views
Sending an VF Template Using Apex
I am trying to send an VF Template using the Schedular Apex. when i run the code below is the error message received:
FATAL_ERROR System.EmailException: SendEmail failed. First exception
on row ...
2
votes
1
answer
4k
views
Visualforce Email Template - Related To
I am trying to fetch all the Opportunities associated with the User.Below is the Visualforce Email Template. I am stuck with the line of the code
received
error: Error: Invalid field ...
3
votes
2
answers
1k
views
Getting a VF component dynamically by name in Apex
I am trying to use Apex to control which component to show inside a <apex:dynamicComponent> but I don't want to hardcode the component names. So my question is, how can I reference the component ...
0
votes
1
answer
758
views
Pagination issue for multiple page block tables in a single page
I have a visual force page with 3 different page block tables which will be rendered based on the value selected on the picklist values. Now i am trying to implement pagination for them using the ...
-2
votes
2
answers
387
views
How to show different pagelayouts for different recordtypes?
I have 10 record types, I want to display different page layouts for different recordTypes. In standard we can do this but i am using vf page. How can i show diff layouts for diff pages..?
1
vote
1
answer
742
views
Dynamic visualforce component for apex repeat
VF
<apex:dynamicComponent componentValue="{!DynamicPicklist}"/>
Apex
public List<MyWrapperClass> lstPicklistValues{get;set;}
public Component.Apex.repeat getDynamicPicklist() {
...
1
vote
0
answers
222
views
How to define actionFunction in controller?
It is possible to define actionFunction with Dynamiccomponent?
Component.Apex.ActionFunction af = new Component.Apex.ActionFunction ();
please give me one example .
Here is my Vf:
<apex:page ...
1
vote
1
answer
1k
views
Styling of Component.Apex.TabPanel (Dynamic visualforce tabpanel)
I have created a dynamic tab panel.
I wish to style this tab panel's tabs. These might happen using custom css but custom css is working for static apex:tabPanel and not for dynamic tabs created ...
1
vote
0
answers
507
views
Building Page Block Tables with Dynamic Component with Input fields causes errors
I am building a form using dynamic components. I am using Dynamic components due to the fact the data I am displaying will need an unknown number of tables and tabs.
I am using wrapper classes. In ...
4
votes
1
answer
596
views
reusable auto complete component
I'm using a custom auto-complete component as described here:
auto-complete
I've abstracted the code in the AutoCompleteController into a separate dynamic query utility, so in the auto complete ...
0
votes
1
answer
31
views
To populate field with same Label
Hello All i have fields those are coming from different different field set(they can have common fields) and i want to have a feature to copy the values of fields to the similar fields(common fields) ...
3
votes
2
answers
627
views
Dynamically embed a flow in a page
I want to embed a flow in a Visualforce page. I have 4 flows in place and a page parameter decides the flow that needs to be embedded in the page. So it is like dynamically deciding the flow to be ...
2
votes
1
answer
2k
views
VF component dynamic inputField
I have the following component,
<apex:component >
<apex:attribute name="label" description="This is pretty name for this input" type="String" required="true"/>
<apex:attribute name="...
1
vote
2
answers
479
views
VF component inputField
So I have the following componenet,
<apex:component>
<apex:attribute name="label" description="This is pretty name for this input" type="String" required="true"/>
<apex:attribute name="...
0
votes
1
answer
29
views
Error due to a field
Getting an error
Error: Variable does not exist: itemDisplay
Controller
public class StoreFrontController {
list<productDisplay> prd;
public list<product__c> getProducts()
...
3
votes
1
answer
770
views
Pass different values as componentvalue to <apex:dynamiccomponent> in <apex:repeat>
<apex:repeat value="{!blocksThatAreComponents}" var="key">
<div id="{!key}">
<apex:dynamicComponent componentValue="{!PageComponentsMap[key]}" /> ...
1
vote
1
answer
85
views
Resource for Learning Dynamic VF
I am looking for a good place to learn dynamic VF. I did google it but did not find anything great. Does anyone know of a good resource where i can learn?
Thanks.
8
votes
1
answer
628
views
Dynamic Visualforce Components - Access Pass-Through Attributes
Is it possible to use html-pass-throug attributes at Dynamic Visualforce Components?
Component.Apex.InputField result = new Component.Apex.InputField();
result.style = 'font-size: 9px';
result.title ...
1
vote
1
answer
929
views
Dynamic Visualforce Components: is there a smarter way to add childComponents?
Playing around with Dynamic Visualforce Components I found it inconvenient to create child elements in such a bulky notation
public Component.Apex.OutputPanel getNavPanel1(){
Component.Apex....
8
votes
1
answer
1k
views
apex:dynamicComponent - Correct type of a component
Situation
I want to implement a dynamic, dynamic custom component in visualforce and apex. Therefore I created a new component:
<apex:component controller="SidebarController">
<apex:...
0
votes
2
answers
885
views
Updating data using dynamically generating rows and a static section
I have two section in which one is dynamically updated rows... I need top create cases using the first section and each row of the dynamic rows generated. I have used the following code but I am not ...
0
votes
1
answer
620
views
apex:dynamicComponent rerender gives 500 Internal Server Error
I created a dynamic component:
public Component.Flow.Interview getFlow() {
Component.Flow.Interview flow = new Component.Flow.Interview();
flow.name = xx.Flow_Name__c;
return ...
2
votes
1
answer
125
views
pageblock is null when accessed from the action function called on click of a button present within the pageblock using Dynamic Apex
I have an apex:dynamicComponent binded to a pageBlock. In the apex controller, I add dynamic apex components like text boxes, checkboxes and command buttons to a dynamic panelGrid and then add the ...
0
votes
1
answer
741
views
apex:dynamiccomponent returning a value
I am tying to achieve pagination using command buttons as dynamic components. but i want to return the value of the button number to my controller so it can return the same page. Can anyone please ...
2
votes
1
answer
1k
views
How To Show Help Text Within a apex:pageblocksectionitem From Within a Dynamic Component
So recently, I came upon an issue using my dynamic component within a pageBlock. As some may know, you cannot properly display help text (icon with a help text when you hover), within a ...
11
votes
4
answers
13k
views
How can I dynamically render required fields using a Dynamic Component
Background
I have a Visualforce page on which I am rendering a lot of fields using a Dynamic Component (which is an Output Panel that contains all of the fields). The fields are added based on a ...
3
votes
1
answer
247
views
I am creating a Custom button with add functionality
In a visualforce page with two different components a & b, i want to create an add button which adds fields from component A and add it to the fields on component B while creating a record on ...
4
votes
1
answer
6k
views
How to pass paramaters from an email template into a custom component?
setup:
Opportunities are related in a MDR to children__c object. When my opp reaches a stage, an email alert (via workflow) gets sent out with the opp info. I want to include a list of urls for the ...