Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [dynamic-vf-component]

The tag has no usage guidance.

1
vote
1answer
50 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
1answer
118 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
0answers
125 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
1answer
87 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
1answer
162 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
0answers
92 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
2answers
391 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
0answers
35 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(...
1
vote
1answer
105 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(); ...
5
votes
1answer
15k 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
1answer
3k 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
2answers
292 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
1answer
516 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
1answer
548 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
1answer
276 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
1answer
317 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 ...
1
vote
1answer
1k 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
2answers
853 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
1answer
586 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
2answers
367 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
1answer
590 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
0answers
213 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
1answer
870 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
0answers
488 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
1answer
470 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
1answer
28 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) ...
2
votes
2answers
464 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
1answer
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
2answers
313 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
1answer
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
1answer
635 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
1answer
81 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
1answer
570 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
1answer
898 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
1answer
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
2answers
707 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
1answer
510 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
1answer
118 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
1answer
689 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
1answer
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
4answers
12k 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
1answer
240 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
1answer
4k 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 ...
10
votes
2answers
6k views

apex:inputField on Lookup Values

I'm trying to build out a flexible, custom search engine as a component, but am stuck. I want to be able to specify filter fields in a comma delimited input attribute (strFilterFields in my code) and ...
3
votes
2answers
3k views

Dynamically render a pageblock title

I am wondering if there's a way to dynamically render the title in the pageblock- something like this: <apex:pageblock title="{!account.name}"> </apex:pageblock> From the visualforce ...
1
vote
0answers
209 views

Pass Data from VF section on detail page to standard Save button

The initial requirement is to create a Dependent Look Up so that when one look up is clicked it will control the values of second dependent look up. What I have done: Created a VF page and a custom ...
3
votes
3answers
7k views

Show “Processing” message or image after clicking checkbox

Having Issue with checkbox onclick and show processing. Problem is that we can have status="mySaveStatus1" associated with but how can we associate status="mySaveStatus1" with <apex:inputCheckbox&...
3
votes
2answers
681 views

Is it possible to create a Dynamic Component after a button is clicked?

I have a <apex:pageblocktable> whose columns need to be created dynamically, and I've done this before using an <apex:repeat> as demonstrated in a different answer. However, here's the ...
6
votes
1answer
2k views

Dynamic Visualforce Components post back values

If I add an Component.Apex.InputText to a Visualforce page using dynamic Visualforce components how can I see the value that is entered in that component when the user submits the page back via a ...