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
donaldddonaldd 

Help loading custom objects into app page

This is a total noob question - thanks in advance for you help. :)

I'm working through a visualforce tutorial and ran into an error. The tutorial says:
Display the details of a particular record.
Use the apex:detail component to modify your code to display the record's detail view. This
standard view is delivered by the standard controller, which requires the record ID for an
existing record as part of the URL. Note that, when you are using the Page Editor, you get
content assist when you use Apex tags.
a) Click Save.
b) Locate an existing Mileage record (or, if you have not created any records, create a
new record now).
c) Copy the record ID from the Mileage record. The record ID is the 15-character string
following the Salesforce instance portion of the URL. For example, if the URL for
your Salesforce instance is https://na1.salesforce.com, the complete URL for the
display of a Mileage record could be https://na1.salesforce.com/a0070000009c3QQ
d) Add the record's ID into the URL for your Visualforce page, prefixed with ?id=.
For example, if the URL for your Visualforce page is
https://na1.salesforce.com/apex/MyMileagePage and the record ID is
a0070000009c3QQ, the completed URL would be
https://na1.salesforce.com/apex/MyMileagePage/?id=a0070000009c3QQ.
e) Press Enter.
When I paste ?id=[objectrecordID] to the end of my url I get the error:
The page name can only contain alphanumeric characters, must begin with a letter, and must be unique.
I'm totally stuck on this. Any help would be great.

Thanks again!


dchasmandchasman
The error in the directions is an extra forward slah where one should not be:

d) Add the record's ID into the URL for your Visualforce page, prefixed with ?id=.For example, if the URL for your Visualforce page is https://na1.salesforce.com/apex/MyMileagePage and the record ID is a0070000009c3QQ, the completed URL would be https://na1.salesforce.com/apex/MyMileagePage/?id=a0070000009c3QQ.

this should read:

d) Add the record's ID into the URL for your Visualforce page, prefixed with ?id=.For example, if the URL for your Visualforce page is https://na1.salesforce.com/apex/MyMileagePage and the record ID is a0070000009c3QQ, the completed URL would be https://na1.salesforce.com/apex/MyMileagePage?id=a0070000009c3QQ.

Which tutorial is this from (a specific link would be very helpful - I could not find this in the Winter '09 Visualfroce Developer's Guide and I would like to see that this gets corrected.
donaldddonaldd
Thanks! I'll try that. I found this example in the "Force.com Workbook" which I downloaded from force.com. These instructions are near the bottom of PG31.
IvinIvin
 I hit the same problem too. Unfortunately, it is now Dec 2008 but the document is still wrong. Here is the link to access the document: http://www.apexdevnet.com/tdf/2008/april/TdF_Workbook.pdf)