Questions tagged [repeat]

apex:repeat is a Visualforce iteration component that allows you to output the contents of a collection according to a structure that you specify. The collection can include up to 1,000 items.

Filter by
Sorted by
Tagged with
2
votes
2answers
445 views

Dynamic table component that displays selected sObject's fields with specified header values

I have a problem with making a dynamic table component that displays selected sObject fields with specified header values. The very first idea was to supply the component with an apex:attrubite of ...
0
votes
1answer
714 views

How to get value of Selected pick list value to controller if we have multiple Select tags?

Am facing a issue with sending the selected value to the controller if we have multiple select tags on vf page and all the values of picklist are different. <!--<apex:selectList ...
0
votes
1answer
40 views

Using <apex:repeat value=“{!Order.OrderItems}” var=“cx”> I want to excclude a single product code. How can I do that?

We have the code below that we are using to create a list of products that were added to an order. I want to remove a single product code from the list and render everything else. How can we do that? ...
1
vote
1answer
28 views

How can I have an iterative component in apex:repeat (like a counter)?

I have an apex:repeat component. In the repeating text output, I want a number to increment row to row. I will go ahead and call out that I realize I could achieve this by replacing my controller ...
2
votes
1answer
21 views

Visualforce: Checkboxes selected in field set do not save to record

I'm an Apex and Visualforce beginner with not much overall programming experience to boot. I've been tasked with updating a VF page that needs to display a series of checkboxes defined in a field set....
0
votes
0answers
26 views

Apex:repeat adds additional <tr> <td> inside <thead>

Let's say we have a markup (just particular part) <table> <thead> <tr> <apex:repeat value="{!metadata}" var="header"> <td><...
11
votes
4answers
7k views

How to detect first or last iteration of apex:repeat

I currently have some VisualForce which uses an <apex:repeat/> element and inserts commas in between the items like so: <apex:variable var="idx" value="{!0}"/> <apex:repeat value="{!...
2
votes
2answers
568 views

Rowspan with apex repeat

I try to create a table with rowspan, but get a wrong table, could somebody help to resolve this? This is my UPD VF Page: <apex:page controller="FinancialProductsController" showHeader="false" ...
0
votes
1answer
28 views

Displaying a list returned from a method on a Visualforce page

I've tried various iterations but this is what I have right now. This is the main code from VF Page: <div> <h3>Search Groups</h3> ...
1
vote
1answer
45 views

On click of button another method is called before the actual method is called [closed]

Im new to salesforce. I have just started with apex and Vf. I have built one vf where on page load it fetches account list and displays it in table. Before displaying it in table it calls another ...
1
vote
1answer
29 views

VF Error: When accessing certain properties of a field set

I have a VF page in which I have an <apex:repeat> tag: <apex:repeat value="{!seHandoffFields}" var="field"> <apex:pageBlockSectionItem helpText="{!$ObjectType....
1
vote
1answer
25 views

Having issue with apex:inputfile and apex:repeat. Input being cleared when adding new set

I have created a apex:repeat section with several questions, including a apex:inputfile. Every time I add a new one, the file gets cleared but the other fields are fine. I checked my controller to ...
0
votes
1answer
34 views

Apex:Repeat within an Apex:Repeat

Alright guys, I have what I feel like is a simple problem. I want to show a map within a related map. I have written a controller and page to do that but for some reason the submap doesn't repeat. I ...
1
vote
1answer
73 views

Apex command button does not work with Apex Repeat on Transient Varriable?

I am running into a strange issue, I've created the following function in my visualforce controller for testing: public void willFail() { Account acc = null; acc.Name = 'test'; update acc;...
0
votes
0answers
54 views

How to rerender apex repeat in jquery

How to update apex:repeat tag in jquery. Here are sample code: $ = jQuery.noConflict(); $(document).ready(function() { $('#calendar').fullCalendar({ resources:[ ...
1
vote
2answers
2k views

Wrapper Class in a Map

I have a wrapper class inside of a map that I want to display on a VFP. The output value of the map is: {2017-07-13 16:28:02=CaseInfo:[caseNumber=00033490, taskData=Task:{WhatId=500S0000008l5A3IAI, ...
0
votes
1answer
226 views

How I do check filesize of apex:inputfile when used in apex repeat

I have an <apex:inputFile> in an apex repeat. I do a check on the <apex:inputFile> with javascript. This seems only to be working for the first <apex:inputFile>. How do I manage to ...
0
votes
1answer
43 views

Is it possible to bind filename with javascript on apex repeat?

I have a simple apex repeat with add filename tag. When I add the following line "inputfile" the previous line shows no file chosen. Is it possible to bind the filename with the inputfile button with ...
3
votes
1answer
105 views

Variable binding issue with apex repeat

I'm a beginner to Visualforce - apologies if I've missed a thread that would answer this question but one has eluded me so far. This has been driving me out of my mind for a good week... I had a ...
0
votes
3answers
48 views

apex:param get just last element. How to fix that?

I create delete-button to remove records from my list. First I choose records and add them to this list. Then I can delete some records, but it removes just last one. How to delete only selected ...
0
votes
1answer
320 views

How to display table data inside apex:repeat horizontally? [duplicate]

<apex:form id="SectionTrack"> <table style="border: 2px solid black;"> <apex:repeat value="{!listT}" var="tp" id="Track_Table"> <tr><th >...
0
votes
1answer
35 views

Add a starting value to an Apex:Variable in a Apex:repeat Table

I have created a simple table of data in a VF page, which uses Apex:Repeat to list records. There is a column that contains a cumulative amount, by way of apex:variable. The cumulative amount works ...
-3
votes
1answer
382 views

Show result of apex repeat in single row

<table> <apex:repeat value="{!dataList}" var="List" id="dataTable"> <tr> <th> Name </th> <th> Status</th&...
1
vote
3answers
2k views

apex:repeat tag won't increment apex:variable

Below is a snippet of code in which an apex:variable is not increment inside an apex:repeat tag. In this case, the var="rowCount" gets incremented without any issues, but the var="headerCount" does ...
1
vote
1answer
65 views

Unable to pass Master-detail id while creating multiple records using ng-repeat

I have a use case where I have to display some fields on visualforce page and then whatever data user provides on the page, grab the data and create a record out if it. Now the record needs to be ...
1
vote
1answer
88 views

How to keep displaying set of fields on visualforce with “Add a new item” action again and again

I have a requirement where I have to display fields on visualforce page and then whatever user enters into those fields, fetch them and create a record out of it. I am able to do that one time but I ...
0
votes
1answer
163 views

VF Page : How to display totals for each Opportunity when grouped by Opportunity Type?

I am trying to display a table in visualforce page. The table contains list of Opportunity Lines and totals Account —> 4 Opportunities (with Oppty Type as New Business and Add-On). First Oppty —> 3 ...
0
votes
1answer
123 views

Show table headers in a row

I have below table where the headers and data are showing perfectly but in a same column. Instead I need to show them in a proper table format. Unfortunately, I am unable to do so. Can someone please ...
1
vote
1answer
206 views

Show a map of map data in table format in VF Page

I have a map called configMap. it is of type Map<String, Map<String, List<A__c>>> where it implies like Map<Obj, Map<Rec, List<A__c>>>. Just for understanding I ...
1
vote
4answers
394 views

How to render text based on condition quoteline items

I have created a custom table in a visualforce page on quote. I use an apex repeat to render the amount of table rows for the quotelineitems. Is it possible to show or hide my table header row based ...
0
votes
1answer
596 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
0answers
73 views

Exception: Invalid field X__c for SObject Y__c

I have below VF Page. <apex:pageBlock > <apex:pageBlockTable value="{!CPAT_accounts}" var="c"> <apex:repeat value="{!excelFields}" var="f"> <...
1
vote
2answers
623 views

how to default select a value - html select inside <apex:repeat>

After record creation, if the record is edited I want to auto-populate picklist value which is dynamic and I have a value which am passing it in apex:repeat <select Class="slds-input form-control"&...
0
votes
1answer
34 views

Getting data from list<MyCustomObject__c> with a List<String> of the Api Field Names

Been looking around for an alternative to manually writing the Api Field Name to display the data in an sObject List. Normal Example: <apex:repeat value="{!myCustomObjectList}" var="co"> &...
3
votes
0answers
2k views

apex:repeat - select all check boxes

I have used <apex:repeat> tag to display records in table using paging. In which I have used <apex:selectCheckboxes> to select the checkbox for that particular record . What should I do to ...
0
votes
1answer
106 views

apex:repeat group by/filter by field, show only unique values

So I have an SOQL query which returns an object with these fields: |Product Name|Option|Category| Category could be: A B Options could be: 1 2 3 In my VisualForce page I would like to visualise ...
1
vote
1answer
788 views

How to set default values for each selectlist value…in a repeat tag

<apex:page controller="Questions_Controller"> <apex:form > <table border="1" width="100%"> <apex:repeat value="{!ques}" var="singleQuestion"> <tr> ...
0
votes
1answer
344 views

unable to add files with apex:inputFile using apex:repeat

public with sharing class SendEmailMultipleAttachments { public List<Attachment> attachList{get;set;} public List<SelectOption> numberList{get;set;} public String emailValue{...
1
vote
1answer
182 views

Refreshing value with apex:repeat in visualforcepage

I have table with apex:repeat inside a tbody. On a particular user action, I need to refresh the table content. To achieve this I tried by wrapping apex:repeat inside an apex:outputpanel and re-...
1
vote
1answer
791 views

how to display data table records vertically in visual force page

Thanks for your time. i want to display data table records vertically in visual force page,here is my below code. how to achieve this <div id="CountrySelection" > <apex:...
0
votes
1answer
226 views

how to pass var from apex:repeat tag to controller

How can I pass the var attribute from my <apex:repeat> tag to a controller variable? Here var contains API name of object field. From that I need to get label for that particular field to ...
0
votes
2answers
910 views

All radio button get selected at same time

In my below code in the section where I used radio button : <apex:page standardController="Account" recordSetVar="accounts"> <apex:form > <apex:pageBlock title="Account List" id="...
-3
votes
1answer
52 views

image repeat on gmail and hotmail only [closed]

I think the issue is in my css for background image. I checked the google developer list and all in my css headerimage applies. .headerImage { -webkit-background-size: cover; -moz-background-...
2
votes
2answers
3k views

Apex Repeat inside PageBlockTable Headers aren't Displayed

I have a map of String(key) and Wrapper object(value) called TableView. The TableView has public property of list of a wrapper class object called DataViewRow. The DataView wrapper class has a map of ...
5
votes
2answers
4k views

How to add page breaks to visual force page rendered as pdf so that a dynamically rendered list in apex repeat tag does not strech the table lines

I have created a VF page rendered as pdf for QuoteLineItems in which I have added the list inside <apex:repeat> tags inside a html table row which again is inside another table.The problem ...
0
votes
2answers
459 views

Why is apex:repeat inside the apex:panelgrid not working as it is supposed to?

The Vf page is currently displaying the products one under the another, that is one product per row, I want to display 3 products per row,I was using panelgrid before when i was explicitly stating ...
0
votes
2answers
127 views

How to fix: rendered=“false” on a selectoption causes further selectoptions within the repeat to not render

<apex:repeat value="{!myList}" var="item" id="myRepeater"> ... <apex:selectList required="" value="{!item.newValue}" id="mySelectlist" multiselect="false" size="1" style="border:none;-...
2
votes
2answers
18k views

Stop blank page being created (because of page break setting) at end of visualforce rendered as pdf

My visualforce rendered as pdf is creating a blank page at the end because of a page-break-after: always setting. How do I stop this blank page being created? I have 4 repeating sections, and after ...
0
votes
1answer
141 views

Get input value of inputfield that corresponds to map

Rendering a map that contains with key (location no), value (location name). Rendering with a corresponding inputField where users will input the times they visited the corresponding location. <...
0
votes
1answer
644 views

Sorting a keySet

I have a list that I created with a Wrapper Class and a Comparable/compareTo method. So it is sorted the way I would like it. From this list I created a Map with the key being the list's Created Date. ...