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
1
vote
1answer
3k 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 ...
1
vote
1answer
5k views

Visualforce as PDF with table format [duplicate]

I have a some content in my visualforce page which I am rendering as a PDF. I am unable to display the content of my VF in tabular format. below is the code which I am trying to get as a PDF file: ...
1
vote
1answer
779 views

Display limited repeat values in one pdf page [duplicate]

Is there any way of limiting the displayed repeat values in one page? Ex: Display first two values in first page, next two values in the next page etc ? I tried to find a way of doing this but I ...
1
vote
1answer
90 views

aex:repeat can't display null values in visualforce page?

Hi I've forcefully added a null value inside a list so when I create a table I can see empty cells. Is the behavior of apex:repeat not displaying null?
1
vote
1answer
461 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
1answer
209 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 ...
1
vote
1answer
687 views

Dynamic Apex:Repeat size (adding rows)

I've tried to make a button that would add another row to apex:repeat that has couple apex:inputField fields in it, but with no success (i'm getting "Attempt to de-reference a null object" error) I'...
1
vote
2answers
740 views

apex:repeat to show and edit multiple record

I've created a simple VFP that uses an apex:repeat to render a list of custom objects. These objects are displayed as a preview image with a quantity field. This is going to be used to allow people to ...
1
vote
2answers
4k views

Displaying list content on visualforce page in a grid view

I have a list of a custom obj records containing data and image url. I am passing this list to an apex repeat on the visualforce page and want to display those records in a grid layout as shown in the ...
1
vote
1answer
517 views

Limit number of tables displayed in one page (When using Apex:Repeat), when redering as pdf to avoid page/table breaks

I have the following VF page, but when I render it as pdf the Apex:repeat tables break in the middle to the next page. I'm thinking of limiting the tables displayed in each page to avoid table breaks. ...
1
vote
1answer
3k views

outputText using a function with param

So I am trying to iterate through a list of custom objects and print out the information that I need. The issue is that with this object I cannot guarantee where the information I need is so I made a ...
1
vote
1answer
979 views

Toggling visibility of an individual component inside an <apex:repeat>

Let's say I want to iterate over a List of objects based on a class in my controller (myObject), and have a commandButton to display a pageblock within the apex:repeat. <apex:repeat value="{!...
1
vote
1answer
50 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
193 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;...
1
vote
1answer
132 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
190 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 ...
1
vote
4answers
882 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 ...
1
vote
1answer
1k 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:...
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
1k views

Apex repeat component not displaying column header when used with a map

I have a wrapper class with map inside, which i need to display in a visualforce page in a page block table with column headers. Also i wanted to build an export feature on this table so i should be ...
1
vote
1answer
816 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> ...
1
vote
1answer
1k views

Render item from related list on Visualforce Page

I'm trying to render an item from one related list on PDF. the structure is following: I have Sales Order, where is lookup field to Company, on Company is related list of Bank Accounts which I need to ...
1
vote
1answer
797 views

apex:inputFile Error actionRegion tag not resolving issue

Can some one please let me know why I am getting this error here? <apex:page controller="abc"> <apex:form> <apex:actionFunction name="addRow" action="{!addRow}" reRender="...
1
vote
1answer
44 views

Dynamic columns and InputText bindings

I have a map called getMonthAndYear() where it creates values from the startDate and EndDate of an opp. I am also adding two other values so the map looks like this. Product | Description | ...
1
vote
1answer
70 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 ...
1
vote
1answer
269 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
0answers
88 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....
1
vote
2answers
74 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 ...
1
vote
0answers
431 views

Repeat pageblocksection on commandbutton click

I have a visualforce page and i'm going to add multiple Product into my custom object but where i am stuck is i am not able to set <apex:repeat> to my pageblocksection I just want to repeat the ...
1
vote
0answers
282 views

Split a PDF apex page into separate PDF pages based on pagenumber

I have an Apex PDF page which I need to email to logged in User. Now when Page number exceeds 10 , I need to send in a separate PDF. Like if I have 15 Pages, PDF1 will have 10 pages , PDF2 will have 5 ...
1
vote
0answers
140 views

<table> tags within <apex:repeat> working in Sandbox but not in Production

Any reason why table, tr, td tags placed inside apex:repeat are visible on my Visualforce Page in Sandbox, but not in Production? Can anyone offer some advice to get this working? Sandbox ...
1
vote
0answers
469 views

Visualforce InlineEdit on repeat pageblockTable Save Cancel buttons not updating

I have a VF page with a repeating pageblock within which is an apex:detail section and a pageblockTable. Both the detail section and the table have inlineEdit support activated. The detail section ...
1
vote
2answers
774 views

apex:inputText not working inside nested apex:repeat tags

I am trying to have multiple text-boxes inside a table cell. I am creating the table using apex:repeat tag and the multiple text-boxes using another apex:repeat tag nested in the earlier one. The ...
0
votes
1answer
281 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
1answer
144 views

Displaying class properties in a VF repeat

I have a VF page that combines Contact, Account, Asset and related information to assist with Case entry. Our Assets contain Part Numbers, Serial Numbers and other information, but do not include the ...
0
votes
3answers
948 views

Dynamically change apex:repeat value on VF page

Is it possible to somehow change the value for the apex:repeat dynamically on a page? What I mean is that I'm using apex:repeat to render table rows and as a value I have a List created in the custom ...
0
votes
1answer
7k views

Unable to display map of <string, list> in repeat

I have a map Map of String(key) and List(value). The list is a list of a wrapper class object I initialize the map: map.put('x', new List); map.put('y', new List); I populate the map like: map....
0
votes
1answer
60 views

apex repeat with dynamic list

i have a json string { "kind": "storage#objects", "items": [ { "name" : "image.png", "id": "id_1", &...
0
votes
1answer
31 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> ...
0
votes
1answer
517 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
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"> &...
0
votes
1answer
813 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. ...
0
votes
1answer
49 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 ...
0
votes
1answer
271 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 ...
0
votes
1answer
2k 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
2answers
2k 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 ...
0
votes
1answer
60 views

Apex repeat shows Ids instead of field values

I have below set in my controller where I am populating a formula text field values in a set of Compliance_Incident_abv__c. Unfortunately, in page it shows only the Ids and not the ...
0
votes
1answer
4k views

Iterate through a list in VF page using PageBlockTable

In my Visual force page I have a code which displays the elements of a list: <apex:pageBlockTable value="{! SkillReview }" var="ct" > <apex:column value="{! ct.Skill__c}"/> In ...
0
votes
2answers
311 views

How to insert a data from the same inputfields into a custom object

I,m trying to save data into a custom object from a repeated form in visualforce page. This is the visualforce code. Can I do do this using array? or list? or map?.. any idea?.. <apex:form> <...
0
votes
2answers
2k views

display 10 records in table using repeat

I am getting an error in the below code..Its a very simple one actually but i am missing someething I am just trying to show 10 record in a table using apex:repeat VF page <apex:page controller="...