function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mark VermaatMark Vermaat 

VF Page issue

I have a little problem here, I have created a custom clone option for my support team and when they clone the case I have the VF Clone Case page display the old and new case numbers as links.  

 

However when they click on either one, it does not open the page.  Is there a specific way to get it to open in the parent frame? 

 

Here is the pageblock of code with the links:

 

 

   <apex:pageBlock title="Case Clone Summary">
    <table cellpadding="10">
    <tr><td>Original Case Number: </td> <td>{!CaseNumberOld}</td> <td><a href="/{!CaseIdOld}"></a></td></tr>
    <tr><td>New Case Number: </td><td>{!CaseNumberNew}</td><td><a href="/{!CaseIdNew}"></a></td></tr>
    
    </table>
    </apex:pageBlock>
Coco_SdyneyCoco_Sdyney

I really doubt you will get any link with this code: <a href="/{!CaseIdOld}"></a>

 

Shouldn't you put {!CaseNumberOld} in between?

 

 

Mark VermaatMark Vermaat
:) guess I was in a rush typing, there really is {! CaseNumberNew} in there,.

But when you click on the link that shows up, it just sits there. No new page opens, and I am trying to get it to open ain the parent window.

Cheers
Coco_SdyneyCoco_Sdyney

Did you check whether {!CaseIdOld} is having correct Id?

 

This piece of code works fine for me actually.