Sorry for the lengthy title. But I want to make sure that I was not able to solve my problem with the standard answers to questions like this.
I have a CustomObject_c that has many record types and a Parent_c object where a user should be able to add record of this CustomObject__c. But instead of showing the regular "New" button with the subsequent record type selection page I want multiple New buttons for each Record Type.
This first part is easy as in my newRecordOfTpeX() action method I can just add the record type as part of the URL. But I couldn't find a single word on how to easily prepopulate the Parent__c relationship.
I analysed the URLs that the URLFOR method created an it uses field IDs as parameter keys. How - without using the Metadata API from APEX - should I ever be able to find out the Ids of my relationship fields?!