+ Start a Discussion

Ovveride button and parent object Id.

Hello, Sirs.

I have two custom objects: Object1, Object2.
Object 2 is related to Object1 and have lookup field to Object1.

I have overrode standart "New" button for Object2 to my custom visualforce page.

Object1 have folowing id: "a0E80000001TJxF".

In the detal page of Object1 (https://na6.salesforce.com/a0E80000001TJxF) When I clicked 'New' button I getting the following link:


I should parse the 'a0E80000001TJxF'.

If I had url like 'https://c.na6.visual.force.com/apex/allocations?id=a0E80000001TJxF'. It's would not a problem for me to parse it.

But unfortunate I get field 'CF00N800000033Hc8_lkid' which I can't expecting.

I need a code which should parse this Id or 'CF00N800000033Hc8_lkid' field.
Message Edited by Olbrest on 04-07-2009 07:12 PM