2016-04-05 14 views
0

私はSalesforce VFページが初めてです。私はVisualforceページに動的にバインドされたpageBlockTableを持っています。条件に基づいて特定の動的行をマージする必要がありました。頂点で行(または下位)をマージする可能性のある方法があれば誰かがお勧めします:pageblocktableはいくつかの条件に基づいていますか?動的バインドされた頂点の行をマージする:visualforceページのpageblockTableページ

私はこれをグーグルで試してみましたが、手がかりを見つけることはできませんでした。 本当にありがとうございます。

Visualforceページのコード:

<apex:pageblock id="listBlock"> 
<apex:pageblockTable value="{!lstcomp}" var="oComp" styleclass="table table-striped table-hover" id="sysTable" rowClasses="even,odd"> 

<apex:column headerClass="TableTitle" style="width: 20%;height:4%" ><apex:facet name="header"><font class="headerfontstyle" >Name</font></apex:facet> 
<font class="rowdatastyle"> {!oComp.Name} </font> 
</apex:column> 
<apex:column headerClass="TableTitle" style="width: 10%;height:4%" ><apex:facet name="header"><font class="headerfontstyle" >Mfg</font></apex:facet> 
<font class="rowdatastyle" > {!oComp.Manufacturer}</font> 
</apex:column> 
<apex:column headerClass="TableTitle" style="width: 6%;height:4%"><apex:facet name="header"><font class="headerfontstyle" >Type</font></apex:facet> 
<font class="rowdatastyle" > {!oComp.ComponentType} </font> 
</apex:column> 
<apex:column headerClass="TableTitle" style="width: 12%;height:4%"><apex:facet name="header"><font class="headerfontstyle" >Allocated</font></apex:facet> 
<font class="rowdatastyle"> {!oComp.Allocated} </font> 
</apex:column>               
<apex:column headerClass="TableTitle" style="width: 10%;height:4%"><apex:facet name="header"><font class="headerfontstyle" >Used</font></apex:facet> 
<font class="rowdatastyle"> {!oComp.Used} </font> 
</apex:column>               
<apex:column headerClass="TableTitle" style="width: 30%;height:4%"><apex:facet name="header"><font class="headerfontstyle" >Version</font></apex:facet> 
<font class="rowdatastyle">{!oComp.OS} </font> 
</apex:column>   
</apex:pageblockTable> 

答えて

0

にあなたは可能性があり、特定の条件のグループあなたの記録のベースと子レコードからのようにフィールドの残りの部分を示しています。

<apex:pageblockTable> 
    <apex:column value="{!acc.name}"> 
    <apex:column> 
     <apex:facet name="header"> Team Members </apex:facet> 
     <apex:pageblocktable value="{!acc.AccountTeamMembers}" var="tm"> 
      <apex:column headerValue="Team Member"> 
       <apex:outputfield value="{!tm.User.Name}"/> 
      </apex:column> 
      <apex:column headerValue="Role"> 
       <apex:outputfield value="{!tm.TeamMemberRole}"/> 
      </apex:column>       
     </apex:pageblocktable> 
    </apex:column> 
</apex:pageblockTable> 
関連する問題