• benton22c
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies

Newbie!!

 

I'm trying to create a VF Page that displays all of a Parent's child objects attributes along with their associated attachments. My controller passes all child objects attachments into a list but my VF page displays all the attachments of every child within each childs list. We want a vf page where each child's name and accompany photo attachments are listed within their own section.

 

Controller:

// Throw all attachments into myPhotos list

private void fetchPhotos ()
{
myPhotos.clear (); // Empty list

for (Line_Item__c b : myChildlist) {
for (Attachment a : [Select Id, Name, ParentId, ContentType From Attachment Where ParentId = :b.Id])
{
myPhotos.add (new Photo (a.Id, a.Name, a.ParentID));
}
}
}

 

VF Page:

// Use nested repeat list to display attachments

<apex:repeat value="{!myChildlist}" var="it">
<apex:repeat value="{!Photos}" var="p">
<img src="{!p.url}" width="296px" height="225px"/>
</apex:repeat>
</apex:repeat>

 

All attachments from every line_item__c child object are displayed within every line_item__c repeat

 

Hi,

We have an actionFunction to rerender different panels and components of the page. But recently we noticed that after rerendering the VF components the following html code is generated. This code generated is not related to any of the codes or scripts within my workspace.


{code:xml}
try{if(!document.getElementById('datePicker')){var bodyEl=document.body;var div=document.createElement('div');div.innerHTML='<div class="datePicker" id="datePicker"><div class="dateBar"><img src="/s.gif" alt="Previous Month" class="calLeft" onblur="this.className = \'calLeft\';" onclick="DatePicker.datePicker.prevMonth();" onfocus="this.className = \'calLeftOn\';" onmouseout="this.className = \'calLeft\';" onmouseover="this.className = \'calLeftOn\';" title="Previous Month"/><select id="calMonthPicker" name="calMonthPicker" title="Month"><option value="0">January</option><option value="1">February</option><option value="2">March</option><option value="3">April</option><option value="4">May</option><option value="5">June</option><option value="6">July</option><option value="7">August</option><option value="8">September</option><option value="9">October</option><option value="10">November</option><option value="11">December</option></select><img src="/s.gif" alt="Next Month" class="calRight" onblur="this.className = \'calRight\';" onclick="DatePicker.datePicker.nextMonth();" onfocus="this.className = \'calRightOn\';" onmouseout="this.className = \'calRight\';" onmouseover="this.className = \'calRightOn\';" title="Next Month"/><select id="calYearPicker" name="calYearPicker" title="Year"><option value="2013">2013</option><option value="2014">2014</option><option value="2015">2015</option><option value="2016">2016</option><option value="2017">2017</option><option value="2018">2018</option><option value="2019">2019</option></select></div><div class="calBody"><table class="calDays" border="0" cellpadding="0" cellspacing="0" id="datePickerCalendar"><tr><TH class="dayOfWeek" scope="col">Sun</TH><TH class="dayOfWeek" scope="col">Mon</TH><TH class="dayOfWeek" scope="col">Tue</TH><TH class="dayOfWeek" scope="col">Wed</TH><TH class="dayOfWeek" scope="col">Thu</TH><TH class="dayOfWeek" scope="col">Fri</TH><TH class="dayOfWeek" scope="col">Sat</TH></tr><tr class="calRow" id="calRow1"><td onblur="hiOff(this);" onclick="DatePicker.datePicker.selectDate(this);" onfocus="hiOn(this);" onmouseout="hiOff(this);" onmouseover="hiOn(this);">&nbsp;</td><td onblur="hiOff(this);" onclick="DatePicker.datePicker.selectDate(this);" onfocus="hiOn(this);" onmouseout="hiOff(this);" onmouseover="hiOn(this);">&nbsp;</td><td onblur="hiOff(this);" onclick="DatePicker.datePicker.selectDate(this);" onfocus="hiOn(this);" onmouseout="hiOff(this);" onmouseover="hiOn(this);">&nbsp;</td><td onblur="hiOff(this);" onclick="DatePicker.datePicker.selectDate(this);" onfocus="hiOn(this);" onmouseout="hiOff(this);" onmouseover="hiOn(this);">&nbsp;</td><td onblur="hiOff(this);" onclick="DatePicker.datePicker.selectDate(this);" onfocus="hiOn(this);" onmouseout="hiOff(this);" onmouseover="hiOn(this);">&nbsp;</td><td onblur="hiOff(this);" onclick="DatePicker.datePicker.selectDate(this);" onfocus="hiOn(this);" onmouseout="hiOff(this);" onmouseover="hiOn(this);">&nbsp;</td><td onblur="hiOff(this);" onclick="DatePicker.datePicker.selectDate(this);" onfocus="hiOn(this);" onmouseout="hiOff(this);" onmouseover="hiOn(this);">&nbsp;</td></tr><tr class="calRow" id="calRow2"><td onblur="hiOff(this);" ...;
{code}

Have anyone come across this issue?

Thanks

Hi. Does anyone know who do I need to speak with to have a bug fixed with visual workflow?

 

I tried contacting Basic Support and they directed me log this problem in developerforce

 

I'm not sure if I'm crazy of they are, but I thought developerforce is a collaboration of external developers

 

In my personal experience, basic support has been subpar to say the least and lack the technical knowledge to resolve some of the most simplistic problems

 

Here's an explanation of this bug:


When you progress through the visual workflow from one screen to another, there's an image named loading.gif, that shows the progression 

The problem is this image is not being shown properly and shows as image missing. This problem shows up in Chrome, not sure if it's a cross brower issue

 

 

Any feedback would be appreciated

Hi there !

 

I have 5 pages working in my org.
And today when I tried to edit one of them it was in text. I edited, saved.

 

When I backed to edit again. This appears "Processing...". And it's taking too long.
Even if I try create a new VF this message continuous there.

 

What should I do?

 

Thansk !