Skip to main content
I am creating a visual page for labeling our products and to print as a PDF. In list view, we want to select the product and output labels based on quantities. how can i add the repeat based on qty with the apex code below?

 

 

<apex:outputPanel rendered="{!selected[0] == null}">

<div style="text-align:center">Please select at least one Product, prior to clicking.</div>

</apex:outputPanel>

<apex:repeat value="{!selected}" var="c">

<div class="rpt" style="border: 1px solid black; text-align:center;">

<div>

Product Name:

<br/><br/>

<apex:outputText style="font-weight: bold;" value="{!c.Name}"/>

<br/><br/><br/>

18-char SFID is:<br/><br/>

</div>

</div>

</apex:repeat>

 

 
2 answers