Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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
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
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
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
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
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
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
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
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
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
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
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
1 vote
1 answer
2k 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:...
Elango 's user avatar
0 votes
1 answer
434 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 ...
mak k's user avatar
  • 41
0 votes
2 answers
946 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 ...
Niknit's user avatar
  • 115
0 votes
1 answer
490 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. <...
Y12K's user avatar
  • 155
0 votes
1 answer
1k 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. ...
Olivia's user avatar
  • 3,491
1 vote
2 answers
7k 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, ...
Olivia's user avatar
  • 3,491
1 vote
1 answer
4k 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 ...
Andrew's user avatar
  • 173
0 votes
1 answer
3k 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"> ...
SatyaV's user avatar
  • 1,533
0 votes
1 answer
566 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 ...
L Mudiyanse's user avatar
4 votes
2 answers
4k 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 ...
Lachlan B's user avatar
  • 313
0 votes
0 answers
739 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 ...
Olivia's user avatar
  • 3,491
0 votes
1 answer
505 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 ...
user avatar
0 votes
0 answers
73 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 ...
Ajay 's user avatar
  • 1,609
4 votes
1 answer
3k 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-...
user42921's user avatar
0 votes
0 answers
489 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="...
veer7's user avatar
  • 105
1 vote
1 answer
254 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 ...
WantToBeACoder's user avatar
4 votes
2 answers
576 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 ...
chris markiewicz's user avatar
2 votes
1 answer
3k 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 ...
Vanilla_Sky's user avatar
1 vote
2 answers
83 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 ...
Olivia's user avatar
  • 3,491
0 votes
1 answer
159 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" ...
Innodel Salesforce's user avatar
1 vote
1 answer
831 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'...
LinQ's user avatar
  • 139
2 votes
2 answers
4k 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 ...
Elad Khalo's user avatar