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
harsha B R 9harsha B R 9 

Dynamically Filter Report + Visualforce Link

Hi,

I am trying to apply filter dynamically on a custom object by giving link in the visualforce page.It is not working as expected.Below is the code snipnet.


<apex:page standardController="SVMXC__Service_Contract__c"> <p> <a href="/00Oq0000000FuVa?pc0=SVMXC__Service_Contract__c.ID&pn0=eq&pv0={!LEFT (SVMXC__Service_Contract__c.ID,15)}&pc1=Name&pn1=eq&pv1={!SVMXC__Service_Contract__c.Name}" target="_blank">Contract Margin</a> </p> </apex:page>

Please help me to resolve the issue.

Any help would be appreciated.

Thanks & Regards,
Harsha 
harsha B R 9harsha B R 9
Hi,

This is the latest code.

<apex:page standardController="SVMXC__Service_Contract__c"> <p> <a href="/00Oq0000000FuVa?pc0=CUST_ID&pn0=eq&pv0={!LEFT (SVMXC__Service_Contract__c.Id,15)}" target="_blank">Contract Margin</a> </p> </apex:page>

Object which is being used in the above code is the managed package object.It is working absolutly fine with the standard and custom objects.But,the above piece of code is not working with the managed package object.


Thanks & Regards,
Harsha
harsha B R 9harsha B R 9
Hi,

The above requirement can be achieved by modifying the VF page code :

<apex:page standardController="SVMXC__Service_Contract__c"> <p> <a href="/00Oq0000000FuVa?pv0={!LEFT (SVMXC__Service_Contract__c.ID,15)}" target="_blank">Contract Margin</a> </p> </apex:page>

Filter condition on Id has to be applied on the report.

Filter Condition :  Service Contract ID equals ' '

On clicking on link of the VF page,Id of the record will dynamically be updated to the filter condition.

Thanks & Regards,
Harsha BR