This topic is locked

Read only field on Edit page

10/22/2008 10:41:47 AM
ASPRunnerPro General questions
T
Tim author

Hello,
I have an application that I want a field to be editable on the Add page but read only on the Edit page. I used the old trick of including the same field twice in the SQL statement (http://www.asprunner.com/forums/index.php?...=readonly++edit) but in version 6 build 503 I get an error when I try to submit the Edit page after chaging a record. (I have other fields on the form that are editable).
Here is the error I get:

item cannot be found in the collection corresponding to the requested name or ordinal.
If I remove the read only field from the Edit form and include the same field I use on the Add form instead, the submit works fine.
Hope this makes sense.

Thanks,

Tim

W
wise4b 10/22/2008

.... Define the field into ADD page normaly... into EDIT PAGE using the VISUAL EDITOR page click on your field and TEXT FIELD and choose READONLY.

T
Tim author 10/22/2008

.... Define the field into ADD page normaly... into EDIT PAGE using the VISUAL EDITOR page click on your field and TEXT FIELD and choose READONLY.


What? If you mean, on the edit page in the visual editor, choose properties for the field and make it read only, that also makes the field read only on the Add page. See the link I refered to... that's the issue the "trick" resolves.
This is now a more urgent problem for me because I use this trick often and I just received a call regarding another app that, since upgrading to 6, is now broken too. Same error when I submit the Edit form.
Thanks,

Tim

J
Jane 10/24/2008

Tim,
thank you for pointing me to this bug.

We'll fix it in the next update.

T
Tim author 11/17/2008

When you say "next update", do you mean next major release? There have been a few minor releases since this post (I am on build 587 now), but it doesn't seem to be fixed.
This same problem happens on the printer friendly page. I use this trick all the time on both the Add and Printer pages, as I have alot of linked tables but want to show users friendly names. I hope this can be resolved soon.
Thanks

Tim