Warning in related empty field: expected behaviour?

I’m not sure it’s something new, but now (3.5.3) tabbing on an empty related field causes this message to appear:
“The relation ‘relationname’ does not allow you to create related records”

I guess this message is useful to avoid of letting related field editable while the relation doesn’t allow the creation of related records, but in my case those fields are calcs, so tabbing into the field not necessarily means that I want to create a new related record.

Should I check the whole solution making sure that no related calc field is set to editable or is there a quicker way?

Hi Ric,

Riccardino:
Should I check the whole solution making sure that no related calc field is set to editable or is there a quicker way?

I don’t think there is a quicker way so I believe the answer to your first question is Yes.

As for calcs not being editable, that’s not entirely true. You can use the trick that Marcel showed like 2 years ago by creating a (recursive) Calc with only “return myCalcName;” where myCalcName is the name of the calculation. This would act like in-memory columns. So yes you can edit calc fields, in some circumstances ;) .

Hope this helps.

ROCLASI:
As for calcs not being editable, that’s not entirely true. You can use the trick that Marcel showed like 2 years ago by creating a (recursive) Calc with only “return myCalcName;” where myCalcName is the name of the calculation. This would act like in-memory columns. So yes you can edit calc fields, in some circumstances ;) .

Yeah, true. :-)

Ok: I’ll make all the calcs field uneditable.
Strange I didn’t notice before: this solution was built with Servoy 1.2… :-)

Thanks, Robert.