how to disable keyfields on input

I’ve posted some inconsistancies, but somehow thing don’t work to me as expected. I want to be able to have a form where I can set some parts of the primary key to fixed. I.e. I have a table containing medical intake data. I have a grid with a button ‘new’ . I click new then I want the form to be displayed where the patient number is fixed to the selected one and the sequence number (part of key) fixed to 0. The sequence number is increased in the event before insert. So I need both fields as display only. But there’s no way of doing that. I can set the fields to read only in the fields menu. That doesn’t do the job. I can set the radio button, that doesn’t do the job. I can set the fieldtype to label. That works, but updating the record will not work as I get the error ‘row not found’. Now I’m totally puzzled. I have a feeling that I could do this pretty easy a few weeks ago so perhaps things have been changed in this release. But fact is that this is total unexpected and unwanted behaviour. I don’t want to move the fields out of the form, because you don’t know about who it is about.

Re: how to disable keyfields on input

Hello,

Instead of setting the field as read only on the IDE, try using sc_field_display.

I will contact our bugs team also, to see if it is a bug.

regards,
Bernhard Bernsmann

Re: how to disable keyfields on input

I reported it to the support ticket system. Yes, using the macro does work if you put it in the on-load event. But I see this as a work-around as it should work from the configuration. It’s something I reported before that there where inconsistancies here. But to me it is a bug.