+ Start a Discussion
harsha vardhan vasa 9harsha vardhan vasa 9 

how to display the half column label instead of full name

Hi All,
i need to display the only half-size of the headervalue. example-- instead of "LabelName" as "Label".
is it possible to trim the headervalue.

<apex:column headerValue="{!$ObjectType.Product2.Fields.BModelNumber2__c.Label}"  styleClass="{!IF(vhlp.isParent,'parent_row', IF(vhlp.isChild,'child_row',''))}"

regards,
Vasa harsha Vardhan.
SandhyaSandhya (Salesforce Developers) 
Hi,

If below value is returning string then you can string functions to trim.
 
$ObjectType.Product2.Fields.BModelNumber2__c.Label

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_string.htm
 
Best Regards,
Sandhya
harsha vardhan vasa 9harsha vardhan vasa 9
Hi Sandhya,

Thanks for the reply.
here it is displaying the column name dynamically  from the corresponding object using the headervalue in apex column tag. what i need is to to display half of label name instead of full name as.
Regards,
vasa harsha vardhan.