I'm trying to create a custom Visualforce page using the standard controller with a custom object.
Let's assume that I have named my customObject as CustomTable. On my Visualforce Page, I would then reference the custom object as a standard controller like this.
<apex:page standardController="CustomTables__c">
</apex:page>
The above code works fine, but when I try to change it to being singular with just "CustomTable__c" this throws an error saying that the custom object does not exist.
In my URL, I've also included a parameter like s:
https://salesforce_url/apex/customEditVFPage?id=XYZ
The id falls under Custom Fields & Relationships, so I had to manually create this.
Now, I'm confused because the fields for creating a Custom Object requires you to provide a Singular and Plural name. I would assume that by providing an ID on the url, this would let the Standard Controller pick up which to object query by using the ID and then I can reference the custom object using the Singular Standard Controller.
Also, a lot of examples/documentations would use singular labels "Account, Lead, Case" and then create a recordSetVar to obtain everything on the list.
Would it be better for me to just create a custom controller to handle this? Or am I approaching this in a totally wrong way?
The only change to the edit page is to change an input field into a dropdown and I feel like I have to do a lot of work just to make a small change.