You need to sign in to do that
Don't have an account?
bbrown1.387768709100204E12
This piece of code returns XXXXX(Name). I want to remove "(Name)" from the string.
This piece of code returns XXXXX(Name).
{!$ObjectType[artType].fields[SUBSTITUTE(field,'__s', '__Name__s')].Label}
It is part of this pageBlockSection
<apex:pageBlockSectionItem rendered="{!CONTAINS(field,'__s')}">
{!$ObjectType[artType].fields[SUBSTITUTE(field,'__s', '__Name__s')].Label}
<apex:outputLink value="{!URLFOR($Action[artType].FileFieldDownload, article['id'],
['field'=$ObjectType[artType].fields[SUBSTITUTE(field,'__s', '__Body__s')].name])}">{!article[SUBSTITUTE(field,'__s', '__Name__s')]} </apex:outputLink>
</apex:pageBlockSectionItem>
I want to strip out "(Name)" from the string. How can I do that?
{!$ObjectType[artType].fields[SUBSTITUTE(field,'__s', '__Name__s')].Label}
It is part of this pageBlockSection
<apex:pageBlockSectionItem rendered="{!CONTAINS(field,'__s')}">
{!$ObjectType[artType].fields[SUBSTITUTE(field,'__s', '__Name__s')].Label}
<apex:outputLink value="{!URLFOR($Action[artType].FileFieldDownload, article['id'],
['field'=$ObjectType[artType].fields[SUBSTITUTE(field,'__s', '__Body__s')].name])}">{!article[SUBSTITUTE(field,'__s', '__Name__s')]} </apex:outputLink>
</apex:pageBlockSectionItem>
I want to strip out "(Name)" from the string. How can I do that?
{!SUBSTITUTE($ObjectType[artType].fields[SUBSTITUTE(field,'__s', '__Name__s')].Label,'(Name)','')}
-Glyn
All Answers
{!SUBSTITUTE($ObjectType[artType].fields[SUBSTITUTE(field,'__s', '__Name__s')].Label,'(Name)','')}
-Glyn