• kkvikram9
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 0
    Replies
The issue is I have a list of accounts which are in repeat tag.

So for example there are 2 records on page 1

->record1
          child of record1
->record2
          child of record2


on load of page child records are invisible. when I click on -> of record1,child of record1 should be displayed.

when I click on -> of record2,child of record2 should be displayed.

but the problem is when I click on record1, child of both record1 and record2 are displayed.

 

 

I have following visual force page:

 

<apex:page controller="CustomerMgmtEntitleview">
  <link rel="stylesheet" href="{!$Resource.ExecutiveSummariesResource}/css/executiveSummaries.css" type="text/css"/>
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
 <apex:includeScript value="{!$Resource.ExecutiveSummariesResource}/js/jquery-1.6.2.min.js"></apex:includeScript>
    <apex:includeScript value="{!$Resource.ExecutiveSummariesResource}/js/jquery-ui-1.8.15.custom.min.js"></apex:includeScript>
    <apex:includeScript value="{!$Resource.ExecutiveSummariesResource}/js/executiveSummaries.js"></apex:includeScript> 
  <apex:form id="displayform">
      <apex:pageblock >
              <apex:panelGrid columns="4">
                    <apex:commandButton action="{!Beginning}" title="Beginning" value="<<" disabled="{!disablePrevious}" reRender="displayform"/>
                    <apex:commandButton action="{!Previous}" title="Previous" value="<" disabled="{!disablePrevious}" reRender="displayform"/>       
                    <apex:commandButton action="{!Next}" title="Next" value=">" disabled="{!disableNext}" reRender="displayform"/> 
              </apex:panelGrid>
        <apex:repeat value="{!accountList}" var="item">
                <apex:outputPanel rendered="{!OR(item.UserLicenseSet.size>0,item.OrganizationSet.size>0,item.FeatureSet.size>0,item.ServiceSet.size>0,item.PackageSet.size>0,true,false)}">
                    <div>
                    <img id="resultSectionImg" class="hideListButton"  style="cursor:pointer;" onclick="customTwistSection(this, 'tableSection');" src="/s.gif"/>
                    <font size="2">Entitlements for {!item.oAccount.Name}</font>
                    </div>
                    <div id="tableSection">
                     <apex:outputPanel layout="none" rendered="{!IF(item.OrganizationSet.size>0,true,false)}"> 
                             <b><div width="150" height="15" style="text-align: center;">&nbsp;<font size="2">Org Level Entitlements</font></div></b>
                                  <br/> 
                                   <apex:repeat id="repeatAccountOrg" value="{!item.OrganizationSet}" var="subitem">
                                       <apex:pageblocktable value="{!subitem}" var="con">
                                           <apex:column width="145px;">
                                               <apex:facet name="header">
                                                   <apex:outputtext value="Edition"/>
                                               </apex:facet>
                                               {!con.OrganizationEntitle.sfprov__platform__r.name}
                                           </apex:column>
                                           <apex:column width="145px;">
                                               <apex:facet name="header">
                                                   <apex:outputtext value="Status"/>
                                               </apex:facet>
                                               {!con.OrganizationEntitle.sfprov__Version__c}
                                           </apex:column>
                                           <apex:column width="145px;">
                                               <apex:facet name="header">
                                                   <apex:outputtext value="Version"/>
                                               </apex:facet>
                                               {!con.OrganizationEntitle.sfprov__Version__c}
                                           </apex:column>
                                       </apex:pageblocktable>
                                   </apex:repeat>
                             </apex:outputPanel>
                             <br/>
                             
                        
                            
                            <apex:outputpanel rendered="{!IF(item.PackageSet.size>0,true,false)}">
                            <b><div width="150" height="15" style="text-align: center;">&nbsp;<font size="2">Package Entitlements</font></div></b>
                                  <br/> 
                                    <apex:repeat value="{!item.PackageSet}" var="subitem">
                                           <apex:pageblocktable value="{!subitem}" var="con">
                                               <apex:column width="145px;">
                                                   <apex:facet name="header">
                                                       <apex:outputtext value="Definition"/>
                                                   </apex:facet>
                                                   {!con.PackageEntitle.sfprov__Definition__c}
                                               </apex:column>
                                               <apex:column width="145px;">
                                                   <apex:facet name="header">
                                                       <apex:outputtext value="Quantity"/>
                                                   </apex:facet>
                                                   {!con.PackageEntitle.sfprov__Quantity__c}
                                               </apex:column>
                                               <apex:column width="145px;">
                                                   <apex:facet name="header">
                                                       <apex:outputtext value="License Status"/>
                                                   </apex:facet>
                                                   {!con.PackageEntitle.sfprov__EntStatus__c}
                                               </apex:column>
                                               <apex:column width="145px;">
                                                   <apex:facet name="header">
                                                       <apex:outputtext value="Provisioning Status"/>
                                                   </apex:facet>
                                                   {!con.PackageEntitle.sfprov__ProvStatus__c}
                                               </apex:column>
                                               <apex:column width="145px;">
                                                   <apex:facet name="header">
                                                       <apex:outputtext value="End Date"/>
                                                   </apex:facet>
                                                   {!con.PackageEntitle.sfprov__Expiration_Date__c}
                                               </apex:column>
                                           </apex:pageblocktable>
                                   </apex:repeat>
                            </apex:outputpanel>
                            <br/>
                            </div>                          
                </apex:outputPanel>
        </apex:repeat>
   </apex:pageblock>
    
  </apex:form>
</apex:page>

 

 

function customTwistSection(imgElement, showHideDivID){ 
    if($('#'+showHideDivID).is(':visible')){
        $('#'+showHideDivID).hide();
        $(imgElement).removeClass('hideListButton');
        $(imgElement).addClass('showListButton');
    }
    else{
        $('#'+showHideDivID).show();
        $(imgElement).removeClass('showListButton');
        $(imgElement).addClass('hideListButton');
    } 
}

 Please help with this. Thanks in advance...

Hi all,

 
I have a requirement where I have 4 levels of object records to be displayed on visual force page.
 
The visual force page needs to be in a way where on load of page, it displays of list of Account records matching certain criteria.
 
Then onclick of a an + image related to a particular Account I need to display list of related opportunities. (I can query this list of opportunities on selection of a particular Account)
 
When onclick of a particular Opportunity, I need to display list of related Opportunitylineitems
 
And onclick of a particular Opportunitylineitem,I need to display list of childOpportunitylineitems(assuming childOpportunitylineitems is a custom object).
 
The VFpage display will be some thing similar to this.
 
Accounts
               Opportunities
                                      Opportunitylineitems
                                                                         ChildOpportunitylineitems.
 
 
Please share if you have any visual force page and controller classtemplate similar to this.
 
 
Thanks in advance,
 
Vikram

Hi All,

 

We are using a work flow Email Alert to trigger emails to users in our org by using a visual force email template. The template should show all the opportunity line items in a table when the email is sent. For some reason, the data rom the opportunity line item doesnt show up in the email. I am attaching the sample code from the template.

 

<messaging:emailTemplate subject="{!relatedTo.Name} Opportunity has Data Targeting Request" recipientType="User" relatedToType="Opportunity">
<messaging:htmlEmailBody >
<html>
<body>
<br>Hello,</br>
<br></br>
The following opportunity had Data Targeting requested:<br></br>
Seller: {!relatedTo.Owner.Name}<br></br>
Opportunity: {!relatedTo.Name}<br></br>
Budget: <apex:outputText value="{0,number,$0,000.00}"> <apex:param value="{!relatedTo.Campaign_Budget__c}" /></apex:outputText><br></br>


<p>Link to Opportunity: {!$Label.URL}/{!relatedTo.Id}</p>
<br>For the following line items:</br>

 

<apex:datatable value="{!relatedto}" var="opp">
<apex:repeat var="o" value="{!opp.OpportunityLineItems}">

<apex:outputPanel rendered="{!o.X3rd_Party_Data__c =True||o.Search_Targeting_Needed__c=True}">
<tr>
<td><a href ="https://-------------salesforce.com/{!o.Id}">{!o.Line_Item_Name__c}</a></td>

<td>{!o.Audience_To_Target__c }</td>
<td>{!o.Data_Segment_Pixel_Tag__c}</td>

 

For some reason, the o.Id merge field is not getting populated. Am I missing something?

 

Hi all

 

I have a question reg currency and we have multiple currencies for our org.

 

Is it possible to store Exchange Rate conversions in currencies other than the corporate currency