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
0
votes
0answers
315 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
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 ...
1
vote
1answer
166 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
328 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
1k 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
60 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
116 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" ...
1
vote
0answers
413 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
1answer
522 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'...
0
votes
1answer
56 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 ...
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 ...
0
votes
1answer
96 views

Dynamic Visual Force binding duplicating data in apex:repeat

I am passing a string created in my controller to a VF page through dynamic binding in order to trigger the download of a CSV with the desired fields generated from the string. my code is as follows (...
2
votes
1answer
690 views

Map key null not found in map for properly built map

I have a controller that builds a map from CaseNumbers to arrays of booleans, which decide how to render a column on a table: public Map<String, Boolean[]> caseMap { get; set; } After setting ...
0
votes
2answers
276 views

apex:repeat var not getting recognized inside button

I have this button inside an apex repeat that it's iterating over a list from my extension controller: <apex:page standardController="Visit_Report__c" extensions="AddTopicsController" showHeader="...
0
votes
0answers
802 views

Apex:repeat on a dataTable column

I've been working on creating a table that will sit on an Opportunity page. I want to have the results group into months that repeat as the columns in a data table. I think that I need to use apex:...
2
votes
3answers
2k views

repeat rendered for certain condition

I'm using visalforce page and apex class for rendering the table on the browser. I want to display 6 records per row. I have total 4 rows & 5 columns. How I can use the repeat function to limit 6 ...
0
votes
3answers
782 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 ...
-1
votes
1answer
119 views

How to get the id of the outputfield texbox clicked by the user which is created inside <apex:repeat>?

I want the box id value when the user clicks on the output field. Here box is a custom object with two fields a checkbox and a textbox . when the user clicks at the output field in the repeat element ,...
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 ...
0
votes
1answer
121 views

create a case when a record is created and also create a note and attachment on the case?

trigger autocreatedocument on Case (after insert) { list<document> doc = new list<document>(); for(case docu:trigger.new){ document D = new document(); D.Name = '...
1
vote
2answers
606 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 ...
0
votes
1answer
595 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 ...
1
vote
1answer
3k 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: ...
0
votes
2answers
379 views

apex:repeat with Save button, saves only first record in it

I have an apex:repeat with Child Name and Edit button displayed. (3 children in the list) ListMember <apex:repeat value="{!listMember}" var="member"> <label>Name</label> &...
3
votes
1answer
598 views

Using jQuery to add numeric values in Apex:repeat

I have a row that displays numeric values from an apex:repeat. I'm looking for a way to loop through and add the values to display the total. I'm sure this can be done with jQuery and I feel like I'm ...
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
11k views

<tr> and <td> tags within <apex:repeat> rendering above the table?

I am making a table that has within it to fill it with rows and fill the cells with information. I cannot use a pageBlockTable as I am using many sets of information that all need to go into the ...
25
votes
2answers
3k views

Why can Visualforce iterate over >1000 item collection if it's a map?

As per Visualforce Limits: Maximum number of collection items that can be iterated in an iteration component such as <apex:pageBlockTable> and <apex:repeat> -- 1,000 So normally 1,...
0
votes
1answer
3k 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 ...
1
vote
2answers
2k views

Using nested apex:repeat and pageBlockTable in a page

Well, I couldn't find a way to explain in a simple way my issue (thus the poor title). I am trying to build a page in which I have to separate some records using two fields on it. One of them is a ...
3
votes
0answers
150 views

Table with independent rows

I need a table showing sObjects within independent rows. I need to perform actions on single rows without even taking care about all the other rows. Reason: Some rows might be invalid (having ...
0
votes
1answer
72 views

Header and its data not arranging properly

<table width="100%"> <tr> <th>Name</th> <th>Type</th> <th>Clinical Study</th> ...
1
vote
0answers
157 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 ...
0
votes
1answer
81 views

create multiple form pages of same data in one apex page

I have below VF Page working fine. But I need to repeat this form multiple times in the PDF Page based on User input integer variable value. Please let me know the way it can be made possible? Apex ...
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="...
2
votes
1answer
40 views

Add dynamic value inside brackets of value

Can I add dynamic value with repeat inside the two {} brackets of value, example below will explain clearly <apex:repeat value="{!fieldsAPINamesList}" var="fieldName"> <!-- I NEED THIS {!...
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 ...
1
vote
0answers
132 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 ...
2
votes
1answer
533 views

Error when saving VisualForce email template “Error: Invalid Field”

I am following this SF VF email example. They have the relatedToType="Account" and their <apex:repeat var="cx" value="{!relatedTo.Cases}"> references Cases which should loop through the Cases ...
1
vote
1answer
1k views

Add logic in VisualForce Page within apex repeat

Is it possible to put logic within apex:repeat in VisualForce page? I have code as shown below but instead of executing logic of array split and then displaying table contents, visual force page is ...
0
votes
1answer
2k views

Dynamically apply style classes within a repeat tag

Is it possible to say: Every second element within apex:repeat will have a different style class?
2
votes
1answer
927 views

Is is possible to loop over records in a repeat component using javascript/jquery?

Lets say I have a table of records and a button to update multiple records in the table on a visualforce page. I want to check the values of each record in the repeat block, and grab each records Id ...
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 ...
1
vote
0answers
439 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
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
2answers
464 views

need SYNTAX to read the SelectedValues (selectList value) in picklist (selectoptions) which is in <APEX:REPEAT>

I need SYNTAX to read the SelectedValues (selectList value) in picklist (selectoptions) which is in apex:repeat tag. My Vf code: <table border="1" width="100%"> <apex:REPEAT value=...
2
votes
1answer
893 views

apex:repeat styling does not work with renderAs PDF

I am creating custom quote PDF and trying to apply alternating colours for the Product Line table and here is the code that I am using: This below code, does not show alternating colours. <apex:...
2
votes
2answers
443 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
2answers
293 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> <...
4
votes
1answer
72 views

Display the data if “quantity” is not = 0. Using multi map

<apex:repeat value="{!prod_quantity_1}" var="key"> <apex:repeat value="{!prod_quantity_1[key]}" var="innerKey"> <apex:repeat value="{!prod_quantity_1[key][innerKey]}" var="...