Stack Exchange Network

Stack Exchange network consists of 174 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
Make your voice heard. Take the 2019 Developer Survey now

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.

0
votes
1answer
17 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
29 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
50 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
0answers
18 views

Save input values in to a wrapper list

I want to set the input values from my table to a wrapper list. Because, when I add new row my table is rerendered, and all input values befor are missed. Here are my code example: My Class: public ...
0
votes
0answers
46 views

apex:repeat not iterating for empty value

I am Iterating over a Wrapper class in apex:repeat Tag in my VF Page, code below: Wrapper Class Code: public class programWrapper { public String programName{get; set;} public ...
0
votes
3answers
30 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
54 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
21 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
83 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
1answer
47 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
53 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
48 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
37 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
48 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
71 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
0answers
31 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
260 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
29 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"> &...
0
votes
1answer
65 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
2answers
300 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
195 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
120 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
487 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
89 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 ...
-3
votes
1answer
44 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-...
0
votes
0answers
80 views

Not able to display all the records using apx:repeat in Google maps

i am not able to display list of Accounts in google maps vf page. can anyone help me how to display the records (public List<Bean> locations) in VF page using <apex:repeat/>. public ...
0
votes
2answers
269 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
80 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;-...
0
votes
1answer
66 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
358 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. ...
1
vote
1answer
1k 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, ...
2
votes
1answer
423 views

Rerendering apex:repeat inside a table

I have a table with a thead and tbody, inside of the body is my apex:repeat. I need to rerender the tbody without rerendering the header. How can i accomplish this? Code example bellow: <table> ...
1
vote
1answer
1k views

ActionSupport: Pass record Id to Controller from apex:repeat

I'm currently returning a mass edit list. I only want to save fields that have been edited. I thought it would be efficient to have an actionsupport method that adds all edited fields to a list in ...
0
votes
1answer
636 views

Using IF statement in a VisualForce page's For(repeat) loop?

I am trying to display fields with some static text based on another field's value. <apex:repeat value="{!caseHistory}" var="casHistory"> <div class="section1"> ...
0
votes
1answer
497 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
160 views

Display Child record Field in Apex:repeat - Conditional rendering

I have a Table to display some values of a list within Apex:repeat. This list contains both parent and child records of objects. The question is i want to display a child record value in a TD context ...
4
votes
2answers
1k views

Passing counter variable (apex:repeat + apex:var) into apex:assignTo yields 'null'

I'm trying to build a Visualforce page which lists a set of records (via apex:repeat for a Visualforce 'record' Component), and where each record has a 'delete' button under it. Hitting delete should ...
0
votes
0answers
361 views

Substitute for apex:repeat

I am creating a table of values that need to be displayed in a specific order. My values are pulled from a map in an apex:repeat and I just discovered that apex:repeat defines the order for you. My ...
0
votes
1answer
242 views

Can't call the method and display it an apex repeat [duplicate]

Hi I have the following problem. I wrote a class that would display events on a visual force page but it doesn't seem to be working as it should. The query is now fixed and it is allowed to be passed ...
0
votes
0answers
28 views

apex repeat not working in content type doc

The Output works fine in PDF, but not in Word, Apex:Repeat is not rendering the contacts in a word document. Could someone give me suggestions as to why it is not working? <apex:page ...
0
votes
1answer
49 views

How to change the following output with use of apex:repeat?

<apex:pageblockSection columns="3" var="account"> <apex:pageblockSectionItem > <apex:outputLabel value="Account Name"/> <apex:...
1
vote
0answers
67 views

using aggregate query to iterate on vf page

I have the following code: for(table1__c t1 :[Select id,form__c,type__c from table1__c where formation__c=:set_formation limit 10000]){ //create a map of form,list table1 if(map_table1_form....
4
votes
1answer
783 views

How to iterate repetitive rows in table to calculate count and show the sum

I am new to vf tables and repeat tags. i am trying to create the below table in vf page could anyone please help me to achieve this by telling the way how i can do the below:- Object- Family Fields-...
0
votes
0answers
201 views

salesforce bug? <apex:facet> doesn't render within <apex:repeat>

I am having to plot matrix type chart where I have dynamic data. Here is the code <apex:dataTable value="{!lstTableRows}" var="rows"> <apex:column > <apex:facet name="...
0
votes
2answers
966 views

How to rerender an outputpanel after remoting completes

I have a repeat control that populates commandbuttons(view,edit,delete) for each record of an object. On click of a command button I want to delete the respective record and render the containing ...
1
vote
1answer
97 views

Not sure why but apex:repeat returning Previous rows of the List

I have a Custom object Quote_Bundle_Product__c and Bundle__c and Product_Quantity__c scenario is : i have developed one visualforce page and that has functionality like user will select ...
4
votes
2answers
242 views

in apex:repeat, getter called twice in actionpoller rerender

I have a VF page with a handful of apex:repeat tags - each of which references a getter, which runs a soql query to retrieve data. I also have an actionpoller in the page to refresh it every 15 ...
2
votes
1answer
680 views

Group data and display on VF Page (use of rowspan)

I have 5 columns , out of which if data of 4 columns are repeating , the 5th column needs to be grouped. Name Designation Email Phone Module So if we have multiple modules assigned to a ...
1
vote
2answers
52 views

Customize Apex:Repeat Help

I have been working on a customized apex:repeat PDF list and the requirements have changed. I can't seem to wrap my head around customizing apex:repeat in the way I would like to. I am close, but am ...
0
votes
1answer
95 views

Repeater 's text box value getting null in method

<section class="panel profile-info"> <apex:inputTextarea rows="2" value="{!pagepost}" styleClass="form-control input-lg p-text-area" id="postingonpage" /> <div class="panel-footer" ...