You need to sign in to do that
Don't have an account?
learnSF
How to get 15 digit Id from Salesforce database
Hi,
I want 15 digit TagDefinationId from slaesforce database.Rightnow it is returning 18 digit.
I need to use this Id inside iterator loop with href.
Here is my function.
Code:
<apex:dataList value="{!accountTags}" var="accountTag" id="theList"> <apex:outputLink value="/search/TagSearchResults—tIdList={!accountTag.TagDefinitionId}&tagsSearch={!accountTag.Name}&lsc=-10&" id="theLink" title="View records tagged {!accountTag.Name}" rendered="{!showPersonalTag2}" >{!accountTag.Name}</apex:outputLink> , </apex:dataList>
Using 18 digit Id is not giving me correct href link.
Can someone give me Idea to place directly 15 digit Id in visual force outputlink syntext with loop.
I don't want to go to controller nad come back with Id.
-any way to get 15 digit Id from query instead of 18 digit.
-Thanks
All Answers
For example:
Thanks,
It solved my problem.
Basicaly I am trying to write Tag componenet inside Tabbed page layout with same look and feel as original account page have.
Now I am facing another issue.
I want to delete Tag when user click on tag name from visual force custom component while Edit tag.
Here is my code.
Here I am getting faultCode:'sf:Invalid_session_Id' exception.
Can you point me how to work this script or how I can send this request to contrller and remove the Tag from Salesforce database.
My probllem is I don't know how to send accountTag.Id to controller when user click on that tag so in contrller I cna remove this Tag.
So I place ajax call in component it self so I don't need to call controller and send tag Id to controller.
-Any suggestion?
-Thanks,
Thanks ES,
It solved my problem.
I am done with personal tagging component.Let me know if some one wants to use this custom component inside visual force page.