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
Sunay - KVP Bus SolnsSunay - KVP Bus Solns 

Need help to soft code the links present in a visual force page

Hi,

 

I am trying to soft code all the links present in a visual force page by writing the link in the class and calling the class to refer those links. Before doing that I would like to clear some doubts on the same:

 

We have some id's present in the visual force page which is used to link the record types, will the id's affect working of the code when the package is installed in another instance?

kiranmutturukiranmutturu

obviously ... in an another instance those ids will be different ..but u can get the ids of the record types by name also .. this will be helpful in packing try this....this is a sample example with opportunity object...

 

string str = Schema.SObjectType.Opportunity.getRecordTypeInfosByName();

Sunay - KVP Bus SolnsSunay - KVP Bus Solns

Thanks for the reply Kiran. Will try this and get back.