• Irp
  • NEWBIE
  • 0 Points
  • Member since 2012

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

Hi 

 

Facet not working on my table and I can not find how to make the first column  looks as a saleforce row header...

Thanks for your help

 

 

<apex:pageBlock >


<apex:pageBlockSection collapsible="true" title="table 1" columns="1">
<apex:PageBlockTable columns="{!colLabels.size+1}"
rows="{!rowLabels.size+1}" value="{!LBItems}" var="it">

<apex:column >
<apex:outputlabel value="{!it.rowlabel}" / >
</apex:column>

<apex:repeat value="{!it.rowBoxIt}" var="rbi">
<apex:column >
<apex:facet name="header" >{!rbi.colLabel}
</apex:facet>
<apex:outputlabel value="{!rbi.name}" / >
</apex:column>

</apex:repeat>

</apex:PageBlockTable>
</apex:pageBlockSection>

  • September 19, 2012
  • Like
  • 0

Hi, I am new to apex developpement

I get this message not sure I am allowed to do that but i need to create a list of lists to create dynamics columns

Thanks

 

public with sharing class modut3 {

 

public Class BoxItem{
....
}
}

public Class LineBoxItems{
public integer row {get;set;}
public string rowLabel {get;set;}
public list<boxItem> lRowBoxIt {get;set;}

public LineBoxItems(
integer r,
string rl ,
list<BoxItem>lb
) {
row=r;
rowLabel=rl;
lRowBoxIt=lb;
}
}

 


LBItems = new list<LineBoxItems>();
list <BoxItem> rowBoxItems = new list<BoxItem> ();

rowBoxItems.add(new BoxItem(r,c,...));

LBItems.add(r,'s', rowBoxItems);


i can not compile and get

Save error: Method does not exist or incorrect signature: [LIST<modut3.LineBoxItems>].add(Integer, String,
LIST<modut3.BoxItem>)

  • September 19, 2012
  • Like
  • 0

Hi 

 

Facet not working on my table and I can not find how to make the first column  looks as a saleforce row header...

Thanks for your help

 

 

<apex:pageBlock >


<apex:pageBlockSection collapsible="true" title="table 1" columns="1">
<apex:PageBlockTable columns="{!colLabels.size+1}"
rows="{!rowLabels.size+1}" value="{!LBItems}" var="it">

<apex:column >
<apex:outputlabel value="{!it.rowlabel}" / >
</apex:column>

<apex:repeat value="{!it.rowBoxIt}" var="rbi">
<apex:column >
<apex:facet name="header" >{!rbi.colLabel}
</apex:facet>
<apex:outputlabel value="{!rbi.name}" / >
</apex:column>

</apex:repeat>

</apex:PageBlockTable>
</apex:pageBlockSection>

  • September 19, 2012
  • Like
  • 0

Hi, I am new to apex developpement

I get this message not sure I am allowed to do that but i need to create a list of lists to create dynamics columns

Thanks

 

public with sharing class modut3 {

 

public Class BoxItem{
....
}
}

public Class LineBoxItems{
public integer row {get;set;}
public string rowLabel {get;set;}
public list<boxItem> lRowBoxIt {get;set;}

public LineBoxItems(
integer r,
string rl ,
list<BoxItem>lb
) {
row=r;
rowLabel=rl;
lRowBoxIt=lb;
}
}

 


LBItems = new list<LineBoxItems>();
list <BoxItem> rowBoxItems = new list<BoxItem> ();

rowBoxItems.add(new BoxItem(r,c,...));

LBItems.add(r,'s', rowBoxItems);


i can not compile and get

Save error: Method does not exist or incorrect signature: [LIST<modut3.LineBoxItems>].add(Integer, String,
LIST<modut3.BoxItem>)

  • September 19, 2012
  • Like
  • 0