Skip to main content

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 votes
0 answers
10 views

How to create a report in Salesforce Lightning which shows all the repeat customers within 30 days

How to create a report in Salesforce Lightning which shows all the repeat customers within 30 days. This means any customer who contacted us will have their conversation id stored under an account ...
Ilyas Zeb's user avatar
0 votes
0 answers
65 views

Resolve Issue with VF Scanner with Security-VfUnescapeEl

I'm currently trying to go through the CodeAnalyzerGeneral and resolve all the security issues, and I'm running into some issues when trying to resolve the Avoid unescaped user controlled content in ...
Kevin Yao's user avatar
  • 167
0 votes
1 answer
92 views

VF Page using wrapper in nested repeats

I am trying to return a wrapper class containing two properties and a list. I have a method getTables which is populating a wrapper, and the issue I am running into is when calling them. I have tried ...
Unknown_Person's user avatar
0 votes
1 answer
140 views

Sorting Records in apex:repeat by Date: Is It Possible?

I am currently working on a Visualforce page that utilizes an apex:repeat to display records from a custom object. I would like to know if there's a way to arrange these records in ascending or ...
izzamol's user avatar
0 votes
0 answers
72 views

how to display filtering option for picklist values to successfully get records in visualforce page,Also how to provide grouping for same record name

I am trying to build one Visualforce page where I am able to get all approval history information. But I am not able to provide users the opportunity to filter records based on "Status". ...
arghya's user avatar
  • 1
0 votes
2 answers
1k views

how can i calculate total value in a table row with javascript in visualforce page?

i have a table with 3 column in visualforce page there is one input value and others are output value. When input value is changes, input value and second column value must be multiplied and the third ...
merve-bulut's user avatar
1 vote
0 answers
135 views

How can I rerender part of a repeated component form the parent Visualforce page?

I have a fairly simple Visualforce page which repeats a component and contains an action function called from within the component: <apex:form> <apex:actionFunction action="{!...
isherwood's user avatar
  • 461
0 votes
1 answer
134 views

How can I update wrapperlist item

How can I update the wrapperlist item with the value of the second for loop? Always the wrapper adds the whole information (see my screenshot). Also I don't know how can I display the result at a ...
FenTro's user avatar
  • 29
1 vote
1 answer
106 views

InputField inside of a repeat not updating or saving changes

I have been monitoring strange behaviours in my page since I put the pageBlockTables in repeat and te columns of these tables inside a repeat too. hte recors I try to create appears on my page and I ...
Alexis's user avatar
  • 129
0 votes
1 answer
412 views

How to show dynamically all fieldSets and their fields in a page bloc table

I want my visualforce page to show each of my fieldSets in a pageTable, and the columns of the tables to be the fields present in their fieldSet. I want to be able to do that because I dont want to ...
Alexis's user avatar
  • 129
0 votes
1 answer
41 views

VFP unknown property integer.optdesc [duplicate]

I included snippets of desired results, controller, and VFP below. I am trying to get to the optdesc and udcdesc values. When I try using !opt.optdesc it gives unknown property integer.optdesc. ...
Wes's user avatar
  • 41
0 votes
1 answer
175 views

Unknown property attempting to access elements in map with apex repeat

Snippet from the controller and map sample data is below. I am having issue getting to the elements within the map using apex repeat. I thought I would be able to do {!getAllOptions[tab].tabname} but ...
Wes's user avatar
  • 41
0 votes
0 answers
112 views

VFP group header from map

Here is the inner/wrapper class and the VFP. I am currently getting this display where the Product_Group__c repeats for every code. I want to display the group once and repeat all codes and values ...
Wes's user avatar
  • 41
0 votes
0 answers
79 views

VFP repeat from a SOQL in APex

I have an Apex class with a SOQL: Account_Statement__c statement = [Select Id, Name,(Select Id, Invoice__c, Invoice__r.Name from Account_Statement_Items__r) from Account_Statement__c where Id != null ...
Eric's user avatar
  • 73
2 votes
1 answer
1k views

Visualforce Error : Map key true not found in map

Visualforce Page <apex:page docType="html-5.0" showHeader="false" controller="TaskRayController"> <apex:form > <html> <head&...
Indresh Bhargav's user avatar
0 votes
1 answer
261 views

How to set fixed height to apex:repeat tag in visualforce page

I am trying to set fixed height to apex:repeat tag, so that page can show scroll bar, but I am unable to set fixed height to apex:repeat. Please let me know how to set height to apex:repeat tag. below ...
Jagadeesh's user avatar
0 votes
1 answer
134 views

How to use conditionals in an apex: repeat and place a custom link in a visualforce email template?

I am creating a visualforce email template that sends contact data to salespeople. In this email there are two points that I am not able to advance: In the section "Informações sobre o ...
Leticia Silva Jordao's user avatar
0 votes
1 answer
2k views

How can I access the value of an apex:repeat element?

I have a Visualforce page that generates a comma-separated list of organization (account) IDs. I'd like to pass that list on to a report as a parameter. In the example below, Organization Member is a ...
Jagular's user avatar
  • 3,386
1 vote
1 answer
60 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 | ...
Eric's user avatar
  • 73
0 votes
1 answer
303 views

apex repeat with dynamic list

i have a json string { "kind": "storage#objects", "items": [ { "name" : "image.png", "id": "id_1", &...
pedroooo's user avatar
  • 125
0 votes
2 answers
366 views

How to check value of inputfile in apex repeat on save with javascript

I have a visualforce page where I give the option to save 2 files based on an apex repeat. I check when a file is added on change if the filesize does not surpass 5mb and alert the user if needed. On ...
Thomas's user avatar
  • 2,320
1 vote
1 answer
313 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?
Atoc's user avatar
  • 37
0 votes
1 answer
185 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? ...
Ashley.Fermin's user avatar
2 votes
1 answer
366 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....
E. Csongradi's user avatar
2 votes
1 answer
3k 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 ...
Natalie Paige's user avatar
0 votes
1 answer
76 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> ...
ChristianA's user avatar
1 vote
1 answer
232 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 ...
yakshith bangera's user avatar
1 vote
1 answer
49 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....
gNerb's user avatar
  • 9,588
1 vote
1 answer
132 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 ...
Jason Lari's user avatar
0 votes
1 answer
1k 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 ...
Jake Bullard's user avatar
1 vote
1 answer
319 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;...
Hans Donkersloot's user avatar
0 votes
1 answer
1k 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 ...
Thomas's user avatar
  • 2,320
0 votes
1 answer
65 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 ...
Thomas's user avatar
  • 2,320
3 votes
1 answer
472 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 ...
James Lamberth's user avatar
0 votes
3 answers
841 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 ...
MichaelLev19's user avatar
0 votes
1 answer
2k 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 >...
Febin's user avatar
  • 1
0 votes
1 answer
236 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 ...
TheMikeyBoosh's user avatar
-3 votes
1 answer
1k 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&...
kanishka's user avatar
1 vote
1 answer
274 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 ...
Student's user avatar
  • 565
1 vote
1 answer
678 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 ...
Student's user avatar
  • 565
0 votes
1 answer
789 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 ...
SFDCLearner's user avatar
0 votes
1 answer
723 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 ...
user3919803's user avatar
1 vote
1 answer
907 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 ...
Testing_SFDC's user avatar
  • 2,968
1 vote
4 answers
3k 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 ...
Thomas's user avatar
  • 2,320
0 votes
0 answers
92 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"> <...
Testing_SFDC's user avatar
  • 2,968
2 votes
2 answers
2k 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" ...
Viktor's user avatar
  • 360
0 votes
1 answer
41 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"> &...
Y12K's user avatar
  • 155
0 votes
1 answer
318 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 that ...
mirantii's user avatar
1 vote
2 answers
2k 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"&...
SFDC's user avatar
  • 471
0 votes
1 answer
520 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{...
Ayaan's user avatar
  • 38