+ Start a Discussion
SirishaMSirishaM 

Record Id problem

Hi,

I created a button with different name for "New Note" under the Notes and Attachments section. My problem is
In the action method for the button when I copy the parent_id using

secondPage.getParameters().put('parent_id',exmsub.Id);

--it copies 18 bit record id an displays the "Data not available " error

but if I remove the last 3 bits of the record-id manually , it displays the page properly.
How do I supply only 15 bit record id for the record I am displaying.

This problem did not arise when I was renaming the Attach File button.

Can anybody tell me where  I am going wrong?

Thanks,
Sirisha
Ron HessRon Hess
can you cast your ID into a string, then use substring to return 15 chars?
SirishaMSirishaM
Thanks Ron for the reply..

I could extract the substring but when it is added to the URL it agin displays the 18 character one ..I dont know how that is happening

Does the id gets changed to 18 character one when added to URL ?


Sirisha
jg@hhsjg@hhs

I am still having this problem.  I tried shortening as well using substring, but it goes back to being 18 once it is placed into a id variable again...