
Hi
i write method for geting the distinct values from one filed ,
Am getting the values in debug log
now this values i have to show in vf page how can i show that.
i try with repeat tag but am not getting result can any one help me
below is my code
public List<string> getinbound()
{
set<String> setValues = new set<String>();
List<string> lstOptions = new List<string>();
for(Samples_Mgmt__c sm : [Select Inbound_Carrier__c from Samples_Mgmt__c where Digital_Factory__c=:Myid])
{
setValues .add(sm .Inbound_Carrier__c );
}
system.debug('inbound'+setValues );
for(String str : setValues )
{
if(str!=null)
{
lstOptions.add(str);
}
}
system.debug('inboundmyidinbound'+lstOptions);
return lstOptions;
}
and here my vf page what am tryibg
<apex:repeat value="{!inbound}" var="a">
<tr>
<td><apex:outputText value="{!a.inbound_carrier__c}" /></td>
</tr>
</apex:repeat></p>
can any one tel me how can i show values in my vf page
1 件の回答
<apex:repeat value="{!inbound}" var="a"> <tr>
<td><apex:outputText value="{!a}" /></td>
</tr>
</apex:repeat></p>
Give directly {!a} instead of {!a.inbound_carrier__c}
Please post developer realted questions from next time in https://boards.developerforce.com
Thanks