This topic is locked

Can't have read only fields on from another table on the add page?

10/7/2006 11:32:08 PM
PHPRunner General questions
M
MikeB941 author

3.1 Build 151
On the detail edit page I often place read only fields from the other records (i.e. the master) so the user can have a reminder when they're editing a detail record of which master record it belongs to.
I've attempted to the same thing on the add page (I have a couple of read only fields from other records to help remind the user where the detail record they're adding belongs).
First - it doesn't appear that the data for any fields other than the those in the actual detail record are passed to the add page (even though these fields are checked on the field selection page for the add page).
Second - if there are any other fields other than those belonging to the detail recorded being added on the add page (even though they're marked as read only) the record cannot be added with a message referring to the read only fields as "Unknown column <col-name> in 'field list'
Thanks for any advice on how to add these "information only" fields to the add page.
Take Care... Mike.

Sergey Kornilov admin 10/9/2006

I don't quite follow you.
Could you exlpain how do you usually display readonly fields from other tables on the add page?
I can recommend you to use AddOnLoad Event to display master table info on the Add detail page.