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
Tina CancinoTina Cancino 

Unknown Method

I'm new to SF, and tyring to just jump into  the APEX world due to a project and no SMEs onsite..So, I copied the visual fore code from our existing vendor package into the future vendor package in hopes I could just  replace the fields and use the same layouts. However, after I created the classes, I get a message as follows:


Error: Unknown method 'OpportunityStandardController.priceBookCheck()'

I attempted to find a similar method in the  current vendor package, but am not findit it. Anyone know what this means? I don't think it's a method?
Naval Sharma4Naval Sharma4
Hi Tina,

You have to use extentions if you want to extend your standard controller or you can use a separate controller.

These links can help you.
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_extension.htm

https://developer.salesforce.com/trailhead/en/project/salesforce_developer_workshop/creating_controller_extension
Tina CancinoTina Cancino
Thank You!